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

Keyword arguments of Agent::command. More...

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

Collaboration diagram for line::lal::CommandOptions:

Public Attributes

Role role = Role::Active
std::optional< CommandValue > rate
 role Active: required
std::optional< CommandValue > weight
 role Passive or Immediate: default 1
std::function< bool(const Vars &)> guard
std::function< Vars(const Vars &)> update
 The variables the command changes; an empty function changes none.
int priority = 0
std::string label

Detailed Description

Keyword arguments of Agent::command.

Definition at line 235 of file builder.h.

Member Data Documentation

◆ guard

std::function<bool(const Vars&)> line::lal::CommandOptions::guard

Definition at line 239 of file builder.h.

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

◆ label

std::string line::lal::CommandOptions::label

Definition at line 243 of file builder.h.

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

◆ priority

int line::lal::CommandOptions::priority = 0

Definition at line 242 of file builder.h.

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

◆ rate

std::optional<CommandValue> line::lal::CommandOptions::rate

role Active: required

Definition at line 237 of file builder.h.

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

◆ role

Role line::lal::CommandOptions::role = Role::Active

Definition at line 236 of file builder.h.

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

◆ update

std::function<Vars(const Vars&)> line::lal::CommandOptions::update

The variables the command changes; an empty function changes none.

Definition at line 241 of file builder.h.

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

◆ weight

std::optional<CommandValue> line::lal::CommandOptions::weight

role Passive or Immediate: default 1

Definition at line 238 of file builder.h.

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


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