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

One labelled local transition source --(action, value)--> target. More...

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

Collaboration diagram for line::lal::Transition:

Public Member Functions

bool functional () const
bool operator== (const Transition &o) const
 Value equality; two functional values compare equal by kind only (a std::function has no identity).
bool operator!= (const Transition &o) const

Public Attributes

std::string source
std::string action
Role role = Role::Active
double value = 0.0
std::string target
int priority = 0
std::vector< std::string > label
ValueFn fn
bool tuple_label = false
 The label is a TUPLE (python Transition.label given as a tuple), which marks a multi-label event even when it holds a single label: the Workflow embedding labels its moves so.

Detailed Description

One labelled local transition source --(action, value)--> target.

label is empty for the default label agent.action; one entry is a user alias; several entries credit one firing to each (a multi-label event, which only the embedding of a LINE Workflow creates). fn, when set, makes the value functional and value is then ignored. priority orders immediate actions (and the timed actions of one agent).

Definition at line 111 of file core.h.

Member Function Documentation

◆ functional()

bool line::lal::Transition::functional ( ) const
inline

Definition at line 127 of file core.h.

References fn.

Referenced by operator==().

◆ operator!=()

bool line::lal::Transition::operator!= ( const Transition & o) const
inline

Definition at line 135 of file core.h.

◆ operator==()

bool line::lal::Transition::operator== ( const Transition & o) const
inline

Value equality; two functional values compare equal by kind only (a std::function has no identity).

Definition at line 130 of file core.h.

References action, functional(), label, priority, role, source, target, tuple_label, and value.

Member Data Documentation

◆ action

◆ fn

◆ label

◆ priority

int line::lal::Transition::priority = 0

Definition at line 117 of file core.h.

Referenced by operator==(), line::lal::Events::outgoing(), and line::lal::signature().

◆ role

◆ source

◆ target

◆ tuple_label

bool line::lal::Transition::tuple_label = false

The label is a TUPLE (python Transition.label given as a tuple), which marks a multi-label event even when it holds a single label: the Workflow embedding labels its moves so.

Definition at line 125 of file core.h.

Referenced by line::lal::embed_detail::lph_agent(), line::lal::model_features(), and operator==().

◆ value


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