![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Service-time descriptor, the C++ form of the MATLAB svc struct. More...
#include <line/api/qsys/qsys_mapg1k.h>
Static Public Member Functions | |
| static ServiceLaw | gamma (const T &shape, const T &scale) |
| Gamma(shape, scale). | |
| static ServiceLaw | deterministic (const T &d) |
| Constant service time d. | |
| static ServiceLaw | phase_type (const std::vector< T > &alpha, const Matrix< T > &Tmat) |
| Phase type (alpha, Tmat). | |
| static ServiceLaw | density (std::function< T(const T &)> f) |
| Arbitrary density on (0, inf), or on (0, tmax] when tmax is supplied. | |
| static ServiceLaw | density (std::function< T(const T &)> f, const T &tmax) |
Public Attributes | |
| ServiceKind | kind = ServiceKind::Deterministic |
| T | shape = num_traits<T>::from_int(1) |
| gamma shape alpha | |
| T | scale = num_traits<T>::from_int(1) |
| gamma scale theta | |
| T | det = num_traits<T>::from_int(1) |
| deterministic service time | |
| std::vector< T > | ph_alpha |
| PH initial probability row. | |
| Matrix< T > | ph_T |
| PH subgenerator. | |
| std::function< T(const T &)> | |
| density of the service time | |
| T | tmax = num_traits<T>::from_int(0) |
| upper support limit of the density | |
| bool | tmax_finite = false |
| whether tmax is used | |
Service-time descriptor, the C++ form of the MATLAB svc struct.
Build one with the static factories; the fields that a given kind does not use are left at their default and are never read.
Definition at line 108 of file qsys_mapg1k.h.
|
inlinestatic |
Arbitrary density on (0, inf), or on (0, tmax] when tmax is supplied.
Definition at line 143 of file qsys_mapg1k.h.
References line::qsys::Density, kind, and pdf.
Referenced by density().
|
inlinestatic |
Definition at line 149 of file qsys_mapg1k.h.
References density(), tmax, and tmax_finite.
|
inlinestatic |
Constant service time d.
Definition at line 128 of file qsys_mapg1k.h.
References det, line::qsys::Deterministic, and kind.
|
inlinestatic |
Gamma(shape, scale).
shape = 1 is the exponential, integer shape Erlang.
Definition at line 120 of file qsys_mapg1k.h.
References line::qsys::Gamma, kind, scale, and shape.
|
inlinestatic |
Phase type (alpha, Tmat).
Definition at line 135 of file qsys_mapg1k.h.
References kind, ph_alpha, ph_T, and line::qsys::PhaseType.
| T line::qsys::ServiceLaw< T >::det = num_traits<T>::from_int(1) |
deterministic service time
Definition at line 112 of file qsys_mapg1k.h.
Referenced by deterministic().
| ServiceKind line::qsys::ServiceLaw< T >::kind = ServiceKind::Deterministic |
Definition at line 109 of file qsys_mapg1k.h.
Referenced by density(), deterministic(), gamma(), and phase_type().
| std::function<T(const T&)> line::qsys::ServiceLaw< T >::pdf |
| std::vector<T> line::qsys::ServiceLaw< T >::ph_alpha |
PH initial probability row.
Definition at line 113 of file qsys_mapg1k.h.
Referenced by phase_type().
| Matrix<T> line::qsys::ServiceLaw< T >::ph_T |
| T line::qsys::ServiceLaw< T >::scale = num_traits<T>::from_int(1) |
| T line::qsys::ServiceLaw< T >::shape = num_traits<T>::from_int(1) |
| T line::qsys::ServiceLaw< T >::tmax = num_traits<T>::from_int(0) |
upper support limit of the density
Definition at line 116 of file qsys_mapg1k.h.
Referenced by density().
| bool line::qsys::ServiceLaw< T >::tmax_finite = false |