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

A rate or weight of a guarded command: a number, a function f(v) of the agent's own variables, or a function f(v, view) that also reads other agents through the joint-state view (a functional rate). More...

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

Public Member Functions

template<class N, typename std::enable_if< std::is_arithmetic< N >::value, int >::type = 0>
 CommandValue (N v)
template<class F, typename std::enable_if<!std::is_arithmetic< F >::value &&std::is_invocable_r< double, F, const Vars &, const StateView & >::value, int >::type = 0>
 CommandValue (F f)
template<class F, typename std::enable_if<!std::is_arithmetic< F >::value &&!std::is_invocable_r< double, F, const Vars &, const StateView & >::value &&std::is_invocable_r< double, F, const Vars & >::value, int >::type = 0>
 CommandValue (F f)

Public Attributes

double constant = 0.0
std::function< double(const Vars &)> local
std::function< double(const Vars &, const StateView &)> joint

Detailed Description

A rate or weight of a guarded command: a number, a function f(v) of the agent's own variables, or a function f(v, view) that also reads other agents through the joint-state view (a functional rate).

Definition at line 216 of file builder.h.

Constructor & Destructor Documentation

◆ CommandValue() [1/3]

template<class N, typename std::enable_if< std::is_arithmetic< N >::value, int >::type = 0>
line::lal::CommandValue::CommandValue ( N v)
inline

Definition at line 222 of file builder.h.

References constant.

Referenced by line::lal::Agent::command().

◆ CommandValue() [2/3]

template<class F, typename std::enable_if<!std::is_arithmetic< F >::value &&std::is_invocable_r< double, F, const Vars &, const StateView & >::value, int >::type = 0>
line::lal::CommandValue::CommandValue ( F f)
inline

Definition at line 226 of file builder.h.

References joint.

◆ CommandValue() [3/3]

template<class F, typename std::enable_if<!std::is_arithmetic< F >::value &&!std::is_invocable_r< double, F, const Vars &, const StateView & >::value &&std::is_invocable_r< double, F, const Vars & >::value, int >::type = 0>
line::lal::CommandValue::CommandValue ( F f)
inline

Definition at line 231 of file builder.h.

References local.

Member Data Documentation

◆ constant

double line::lal::CommandValue::constant = 0.0

Definition at line 217 of file builder.h.

Referenced by CommandValue().

◆ joint

std::function<double(const Vars&, const StateView&)> line::lal::CommandValue::joint

Definition at line 219 of file builder.h.

Referenced by CommandValue().

◆ local

std::function<double(const Vars&)> line::lal::CommandValue::local

Definition at line 218 of file builder.h.

Referenced by CommandValue().


The documentation for this struct was generated from the following file: