LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
builder.h File Reference

LINE Agent Language (LAL): programmatic construction of finite agents and their composition, plus the .lal text parser. More...

#include <cmath>
#include <fstream>
#include <functional>
#include <limits>
#include <map>
#include <memory>
#include <optional>
#include <regex>
#include <set>
#include <sstream>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#include "line/lang/lal/core.h"
#include "line/lang/qn/network_builder.h"
#include "line/util/lu.h"
#include "line/lang/lal/records.h"
#include "line/lang/lal/tables.h"
#include "line/lang/lal/embed.h"
Include dependency graph for builder.h:

Go to the source code of this file.

Classes

struct  line::lal::CommandValue
 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...
struct  line::lal::CommandOptions
 Keyword arguments of Agent::command. More...
class  line::lal::Agent
 A finite-state agent with active, weighted passive and immediate transitions (handle semantics). More...
struct  line::lal::ActionRef
struct  line::lal::NodeRef
 An action of a node of an embedded LINE model (NodeRef): key is the (node, EventType, class | mode) key, part the name of the embedded part that owns the node. More...
struct  line::lal::AddOptions
 Keyword arguments of Composition::add for an embedded LINE model. More...
class  line::lal::Composition
 A collection of agents and embedded LINE models with atomic synchronisations (Composition). More...

Namespaces

namespace  line
 Conservation laws of a layered queueing network, enumerated from its structure.
namespace  line::env
namespace  line::lqn
namespace  line::lang
namespace  line::lang::processes
namespace  line::workflow
namespace  line::lal

Typedefs

typedef std::vector< std::pair< std::string, Matrix< double > > > line::lal::NamedMatrices
typedef std::vector< std::pair< std::string, double > > line::lal::NamedWeights
typedef std::map< std::string, long > line::lal::Vars
 The valuation of the typed variables of an agent (v in a guard, update or rate).

Functions

Model line::lal::parse (const std::string &source)
 Parse a .lal source into a validated model record (core.parse).

Detailed Description

LINE Agent Language (LAL): programmatic construction of finite agents and their composition, plus the .lal text parser.

Port of python/line_solver/lal/builder.py and the Parser of core.py. Agent is a HANDLE (shared ownership) so that, as in Python, an agent added to a Composition can still be modified and the change is seen by the next get_struct(); ActionRef compares agents by identity.

An agent is declared action by action: by named states with active, passive and immediate, or by typed variables (Agent::with_vars) with guarded commands. A Composition holds such agents and EMBEDDED LINE models (add): a Network, Environment, LayeredNetwork (LQN2QN), MarkovProcess, MarkovChain or Workflow, each node of a network being an agent whose actions are named Node.EVENT[class] (action). The embedding itself lives in embed.h, which this header includes at its foot.

The family factories of earlier releases (queue, MMAP, PH service, MAP and generator agents, LINE-object adapters) are not public any more; LAL's own matrix-analytic lowering builds those agents through detail::Records (records.h).

Definition in file builder.h.