![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Read-only view of a joint state, for functional rates and rewards (StateView). More...
#include <line/lang/lal/core.h>
Public Member Functions | |
| StateView (const Model &model, const std::vector< std::size_t > &state) | |
| bool | contains (const std::string &agent) const |
| std::string | operator[] (const std::string &agent) const |
| std::size_t | index (const std::string &agent) const |
| long | var (const std::string &agent, const std::string &variable) const |
| std::vector< double > | node (const std::string &agent, const std::string &node) const |
| double | jobs (const std::string &agent, const std::string &node, const std::string &jobclass=std::string()) const |
| const Model & | model () const |
| const std::vector< std::size_t > & | state () const |
Read-only view of a joint state, for functional rates and rewards (StateView).
view[agent] is the local state name of a hand agent (the decimal global state index of an embedded one); index(agent) the local index; var(agent, v) the value of a typed variable; node(agent, node) the state row of a stateful node of an embedded LINE model, as in LINE's state space; and jobs(agent, node[, class]) the jobs at one of its stations.
|
inline |
Definition at line 347 of file core.h.
References model(), and state().
Referenced by line::lal::reward_values().
|
inline |
|
inline |
|
inline |
Definition at line 375 of file core.h.
References line::lal::AgentRecord::embedded, node(), and line::lal::value_error().
|
inline |
Definition at line 382 of file core.h.
Referenced by StateView().
|
inline |
Definition at line 368 of file core.h.
References line::lal::AgentRecord::embedded, node(), and line::lal::value_error().
|
inline |
Definition at line 351 of file core.h.
References line::lal::AgentRecord::embedded, and line::lal::AgentRecord::states.
|
inline |
Definition at line 383 of file core.h.
Referenced by StateView().
|
inline |
Definition at line 360 of file core.h.
References line::lal::value_error(), line::lal::AgentRecord::var_names, and line::lal::AgentRecord::var_values.