Class AgentRecord

java.lang.Object
jline.lang.lal.AgentRecord
All Implemented Interfaces:
Serializable

public final class AgentRecord extends Object implements 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 Details

    • AgentRecord

      public AgentRecord(String name, List<String> states, String initial, List<Transition> transitions)
    • 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: stateValues and varNames describe a typed-variable agent (one value list per state, in state order), embedded an embedded LINE model (whose local states are global state indices), and discrete a discrete-time agent (an embedded MarkovChain).
    • AgentRecord

      public AgentRecord(String name, List<String> states, String initial, List<Transition> transitions, double[] initialDistribution, boolean unboundedQueue, Integer unboundedInitial, QueueInfo queueInfo)
  • Method Details

    • getName

      public String getName()
    • getStates

      public List<String> getStates()
    • getInitial

      public String getInitial()
    • getTransitions

      public List<Transition> getTransitions()
    • getInitialDistribution

      public double[] getInitialDistribution()
      Initial distribution over getStates(), or null for the point mass at getInitial().
    • isUnboundedQueue

      public boolean isUnboundedQueue()
    • getUnboundedInitial

      public Integer getUnboundedInitial()
    • getQueueInfo

      public QueueInfo getQueueInfo()
    • getStateValues

      public List<List<Object>> getStateValues()
      Variable values per state of a typed-variable agent, else null.
    • getVarNames

      public List<String> getVarNames()
      Variable names of a typed-variable agent, else null.
    • getEmbedded

      public EmbeddedPart getEmbedded()
      The embedded LINE model of this part, else null.
    • isDiscrete

      public boolean isDiscrete()
      True for a discrete-time agent (an embedded MarkovChain).
    • stateIndex

      public int stateIndex(String state)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object