Package jline.lang.lal
Class AgentRecord
java.lang.Object
jline.lang.lal.AgentRecord
- All Implemented Interfaces:
Serializable
Immutable snapshot of one agent (Python
core.Agent). Built by the
parser and by Agent.record(); the compiler and every solver read these.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAgentRecord(String name, List<String> states, String initial, List<Transition> transitions) AgentRecord(String name, List<String> states, String initial, List<Transition> transitions, double[] initialDistribution, boolean unboundedQueue, Integer unboundedInitial, QueueInfo queueInfo) AgentRecord(String name, List<String> states, String initial, List<Transition> transitions, double[] initialDistribution, boolean unboundedQueue, Integer unboundedInitial, QueueInfo queueInfo, List<List<Object>> stateValues, List<String> varNames, EmbeddedPart embedded, boolean discrete) Full record:stateValuesandvarNamesdescribe a typed-variable agent (one value list per state, in state order),embeddedan embedded LINE model (whose local states are global state indices), anddiscretea discrete-time agent (an embedded MarkovChain). -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe embedded LINE model of this part, elsenull.double[]getName()Variable values per state of a typed-variable agent, elsenull.Variable names of a typed-variable agent, elsenull.inthashCode()booleanTrue for a discrete-time agent (an embedded MarkovChain).booleanintstateIndex(String state) toString()
-
Constructor Details
-
AgentRecord
-
AgentRecord
public AgentRecord(String name, List<String> states, String initial, List<Transition> transitions, double[] initialDistribution, boolean unboundedQueue, Integer unboundedInitial, QueueInfo queueInfo, List<List<Object>> stateValues, List<String> varNames, EmbeddedPart embedded, boolean discrete) Full record:stateValuesandvarNamesdescribe a typed-variable agent (one value list per state, in state order),embeddedan embedded LINE model (whose local states are global state indices), anddiscretea discrete-time agent (an embedded MarkovChain). -
AgentRecord
-
-
Method Details
-
getName
-
getStates
-
getInitial
-
getTransitions
-
getInitialDistribution
public double[] getInitialDistribution() -
isUnboundedQueue
public boolean isUnboundedQueue() -
getUnboundedInitial
-
getQueueInfo
-
getStateValues
Variable values per state of a typed-variable agent, elsenull. -
getVarNames
Variable names of a typed-variable agent, elsenull. -
getEmbedded
The embedded LINE model of this part, elsenull. -
isDiscrete
public boolean isDiscrete()True for a discrete-time agent (an embedded MarkovChain). -
stateIndex
-
toString
-
equals
-
hashCode
public int hashCode()
-