LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::lal::Model Struct Reference

A composition snapshot (core.Model): agents in declaration order plus synchronisations. More...

#include <line/lang/lal/core.h>

Collaboration diagram for line::lal::Model:

Public Member Functions

std::size_t index_of (const std::string &name) const
bool has_agent (const std::string &name) const
const AgentRecord & agent (const std::string &name) const
AgentRecord & agent (const std::string &name)

Public Attributes

std::vector< AgentRecord > agents
std::vector< Sync > syncs
std::vector< MinSync > min_syncs
std::vector< ExtSync > ext_syncs
std::set< std::string > hidden
 labels removed from the action tables
std::vector< std::pair< std::string, RewardFn > > rewards
 declared state rewards, in order

Detailed Description

A composition snapshot (core.Model): agents in declaration order plus synchronisations.

Definition at line 310 of file core.h.

Member Function Documentation

◆ agent() [1/2]

AgentRecord & line::lal::Model::agent ( const std::string & name)
inline

Definition at line 329 of file core.h.

References agents, index_of(), and line::lal::value_error().

◆ agent() [2/2]

◆ has_agent()

bool line::lal::Model::has_agent ( const std::string & name) const
inline

◆ index_of()

Member Data Documentation

◆ agents

◆ ext_syncs

std::vector<ExtSync> line::lal::Model::ext_syncs

◆ hidden

std::set<std::string> line::lal::Model::hidden

labels removed from the action tables

Definition at line 315 of file core.h.

Referenced by line::lal::Composition::model(), and line::lal::signature().

◆ min_syncs

◆ rewards

std::vector<std::pair<std::string, RewardFn> > line::lal::Model::rewards

declared state rewards, in order

Definition at line 316 of file core.h.

Referenced by line::lal::Composition::model(), line::lal::reward_values(), and line::lal::signature().

◆ syncs


The documentation for this struct was generated from the following file:
  • include/line/lang/lal/core.h