Class StateView

java.lang.Object
jline.lang.lal.StateView

public final class StateView extends Object
Read-only view of a joint state, the argument of functional rates, weights and rewards (Python core.StateView).

get(String) returns the local state of an agent: its state name for an agent declared by states, the list of variable values for a typed-variable agent, and the global state index of an embedded LINE model. node(java.lang.String, java.lang.Object) and jobs(java.lang.String, java.lang.Object) read a node of an embedded model.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    True when the composition has an agent of this name.
    get(String agent)
    Local state of an agent: a state name, the list of variable values of a typed-variable agent, or the global state index (an Integer) of an embedded LINE model.
    double
    jobs(String agent, Object node)
    Jobs at a node of an embedded LINE model, over every class.
    double
    jobs(String agent, Object node, Object jobclass)
    Jobs of one class (object or name) at a node of an embedded LINE model; all classes when null.
    int
    local(String agent)
    Local state index of an agent (the global state index for an embedded model).
    node(String agent, Object node)
    State row of a stateful node of an embedded LINE model, as in LINE's state space.
    state(String agent)
    Local state name of an agent (the rendered valuation of a typed-variable agent).
    var(String agent, String var)
    Value of variable var of a typed-variable agent.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • contains

      public boolean contains(String agent)
      True when the composition has an agent of this name.
    • local

      public int local(String agent)
      Local state index of an agent (the global state index for an embedded model).
    • get

      public Object get(String agent)
      Local state of an agent: a state name, the list of variable values of a typed-variable agent, or the global state index (an Integer) of an embedded LINE model.
    • state

      public String state(String agent)
      Local state name of an agent (the rendered valuation of a typed-variable agent).
    • var

      public Object var(String agent, String var)
      Value of variable var of a typed-variable agent.
    • node

      public Matrix node(String agent, Object node)
      State row of a stateful node of an embedded LINE model, as in LINE's state space.
    • jobs

      public double jobs(String agent, Object node)
      Jobs at a node of an embedded LINE model, over every class.
    • jobs

      public double jobs(String agent, Object node, Object jobclass)
      Jobs of one class (object or name) at a node of an embedded LINE model; all classes when null.