![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
LINE Agent Language (LAL): embedding of LINE model objects into a LAL composition. More...
#include "line/lang/lal/builder.h"#include <algorithm>#include <cstdio>#include <map>#include <memory>#include <optional>#include <set>#include <string>#include <utility>#include <vector>#include "line/api/mam/map_moment.h"#include "line/io/lqn2qn.h"#include "line/lang/distribution.h"#include "line/lang/lal/core.h"#include "line/lang/lal/markov.h"#include "line/lang/lqn/lqn_reader.h"#include "line/lang/processes/markov_chain.h"#include "line/lang/qn/environment.h"#include "line/lang/qn/network_builder.h"#include "line/lang/qn/state.h"#include "line/lang/qn/state_events.h"#include "line/lang/workflow/workflow.h"#include "line/solvers/ctmc/solver_ctmc.h"#include "line/solvers/ctmc/solver_ctmc_analyzer.h"#include "line/solvers/ctmc/solver_ctmc_waitq.h"Go to the source code of this file.
Classes | |
| struct | line::lal::embed_detail::Hop |
| One step of a routing path: a node key, or the marker of a Sink crossing. More... | |
| class | line::lal::EmbeddedNetwork |
| A LINE Network embedded as one agent per node (EmbeddedNetwork). More... | |
| class | line::lal::EmbeddedEnvironment |
| A LINE Environment embedded as a stage agent plus its stage networks (EmbeddedEnvironment). More... | |
| struct | line::lal::embed_detail::LphMove |
| (i, j, rate, labels, immediate) and (i, rate, labels, immediate) of a labelled phase-type automaton. More... | |
| struct | line::lal::embed_detail::LphExit |
| struct | line::lal::embed_detail::Lph |
| A labelled absorbing phase-type automaton, for the Workflow embedding (_LPH): internal moves, absorptions, the initial law and the zero-time states. More... | |
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::lal |
| namespace | line::lal::embed_detail |
Functions | |
| std::string | line::lal::embed_detail::identifier_from (const std::string &name, const std::string &fallback) |
| std::string | line::lal::embed_detail::fmt_g (double v) |
| g of a double. | |
| qn::Marginal< double > | line::lal::embed_detail::station_marginal (const qn::NetworkStruct< double > &sn, std::size_t ist, const std::vector< double > &row) |
| The queue-length / phase marginal of a station row (toMarginal). | |
| std::vector< double > | line::lal::embed_detail::init_prob (const lang::Distrib< double > &d) |
| The initial vector of a Markovian law with a (D0, D1) pair (getInitProb). | |
| Agent | line::lal::embed_detail::lph_agent (const std::string &name, const Lph &lph) |
| Renewal agent of a labelled phase-type automaton: absorption restarts it (_lph_agent). | |
| std::vector< std::string > | line::lal::embed_detail::state_tags (const Matrix< double > &space, std::size_t n) |
| Agent | line::lal::markov_process_agent (const lang::processes::MarkovChainModel< double > &mp, const std::string &prefix) |
| One agent for a MarkovProcess: a timed action per generator entry (_markov_process_agent). | |
| Agent | line::lal::markov_chain_agent (const lang::processes::MarkovChainModel< double > &mc, const std::string &prefix) |
| One discrete-time agent for a MarkovChain (_markov_chain_agent). | |
| Agent | line::lal::workflow_agent (workflow::Workflow< double > &wf, const std::string &prefix) |
| One renewal agent for a Workflow, labelled by activity (_workflow_agent). | |
LINE Agent Language (LAL): embedding of LINE model objects into a LAL composition.
Port of python/line_solver/lal/embed.py.
An embedded Network contributes ONE AGENT PER NODE. Its joint behaviour is not re-derived here: SolverCTMC's own state-space preparation and generator builder run on the network, and their per-event arcs are collected before any solve (ctmc::LalCollect). The embedded agents therefore reproduce LINE's generator exactly, including vanishing states, true BAS blocking, Petri-net mode firings (gsync) and fork firings (fjsync).
Node actions are named with LINE's own event vocabulary. A key is the triple a synchronization record carries, (node, EventType, class | mode), rendered for tables as Node.EVENT[index]. Each event of the network carries the keys of ALL its participants, so getAct* reports a departure at its source node and the matching arrival at its destination as two rows of the same rate. A departure whose route crosses non-stateful nodes (ClassSwitch, Sink, a stateless Router) is split over those paths (sn.rtnodes), each sub-event carrying the keys of the nodes it crosses.
Hand-declared agents interact with the embedded nodes in two ways only:
Also here: the Environment embedding (a stage agent plus its stage networks), the LayeredNetwork embedding (LQN2QN), and the agents of a MarkovProcess, a MarkovChain (discrete time) and a Workflow (labelled by activity through its series-parallel tree).
Definition in file embed.h.