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

LINE Agent Language (LAL): the Markovian admission check. More...

Include dependency graph for markov.h:

Go to the source code of this file.

Namespaces

namespace  line
 Conservation laws of a layered queueing network, enumerated from its structure.
namespace  line::lal
namespace  line::lal::markov_detail

Enumerations

enum class  line::lal::LawClass { line::lal::Timed , line::lal::Immediate , line::lal::Disabled }
 How a Markovian law is interpreted: a timed holding time, a zero-time step or no transition. More...

Functions

const char * line::lal::nonmarkovian_kind ()
 The error kind of a refusal: LINE:unsupported:NonMarkovian.
const char * line::lal::law_class_name (LawClass c)
const lang::Distrib< double > & line::lal::declared_law (const lang::Distrib< double > &d)
 The declared law of a distribution (the original when a solver fitted a surrogate).
std::string line::lal::law_name (const lang::Distrib< double > &d)
 A short readable name of a law for refusal messages (law_name).
UnsupportedError line::lal::markov_detail::refusal (const lang::Distrib< double > &d, const std::string &where)
bool line::lal::markov_detail::is_discrete_law (lang::ProcessType t)
 The discrete laws, accepted only as a cache popularity or a fork task count.
LawClass line::lal::classify (const lang::Distrib< double > &dist)
 Classify one law as timed, immediate or disabled (classify).
LawClass line::lal::check_markovian (const lang::Distrib< double > &dist, const std::string &where)
 Classify dist and name where in the refusal when it is refused (check_markovian).
void line::lal::check_network (const qn::NetworkStruct< double > &sn, const std::string &where=std::string())
 Refuse a network holding any non-Markovian specification (check_network).
void line::lal::check_layered (const lqn::LqnStruct< double > &lsn, const std::string &name)
 Refuse a LayeredNetwork with a non-Markovian demand, think time, setup or arrival (check_layered).
void line::lal::check_environment (const env::Environment< double > &e)
 Refuse an Environment with a non-Markovian holding law or stage model (check_environment).
void line::lal::check_workflow (const workflow::Workflow< double > &wf)
 Refuse a Workflow with a non-Markovian activity law.

Detailed Description

LINE Agent Language (LAL): the Markovian admission check.

Port of python/line_solver/lal/markov.py.

LAL captures the MARKOVIAN models LINE can declare, and nothing else. Every law that reaches a composition, declared by hand or carried by an embedded LINE object, is classified here, and anything outside the accepted set is refused with LINE:unsupported:NonMarkovian rather than fitted.

The accepted set is EXPLICIT and deliberately narrower than lang::process_is_markovian, which also admits ME and RAP (matrix-exponential laws with no CTMC representation in general), DMAP (discrete time) and the time-inhomogeneous marked schedules.

Classification reads the DECLARED law: Distrib::declared when a solver fitted a surrogate over it, else the law's own type, never a surrogate's matrices. C++ has no reflection, so check_network walks the struct fields of a network that carry a distribution explicitly: service and arrival, switchover, polling tables and timers, quantum, patience, orbit impatience, heterogeneous-server service, retrial, setup and delay-off, breakdown and repair, Petri-net mode firing laws and fork task-count laws.

Definition in file markov.h.