![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
The phases one walked interval visited and how long it held each, filled by a sampler only while the sample-path export hands it one (Sampler::set_trace). More...
#include <line/solvers/ldes/ldes_sampler.h>
Public Member Functions | |
| void | clear () |
| void | add (int ph, double holding) |
| void | set_exit_phase (int ph) |
| std::size_t | size () const |
| double | total () const |
| Sum of the holdings, in order, as the reference adds them. | |
Public Attributes | |
| std::vector< int > | phase |
| std::vector< double > | dt |
| int | exit_phase = -1 |
The phases one walked interval visited and how long it held each, filled by a sampler only while the sample-path export hands it one (Sampler::set_trace).
Transcribes the reference's jline.api.mam.PhaseTrace. Recording reads the draws a walk already takes and consumes none, so a traced walk returns the same interval, bit for bit, as an untraced one.
Definition at line 121 of file ldes_sampler.h.
|
inline |
Definition at line 130 of file ldes_sampler.h.
|
inline |
Definition at line 125 of file ldes_sampler.h.
References dt, exit_phase, and phase.
Referenced by line::ldes::engine::sp::Tracker::trace_fill().
|
inline |
Definition at line 134 of file ldes_sampler.h.
References exit_phase.
|
inline |
Definition at line 135 of file ldes_sampler.h.
References phase.
Referenced by line::ldes::engine::sp::Tracker::script_of().
|
inline |
Sum of the holdings, in order, as the reference adds them.
Definition at line 137 of file ldes_sampler.h.
References dt.
Referenced by line::ldes::engine::sp::Tracker::script_of().
| std::vector<double> line::ldes::engine::PhaseTrace::dt |
Definition at line 123 of file ldes_sampler.h.
Referenced by add(), clear(), line::ldes::engine::sp::Tracker::script_of(), and total().
| int line::ldes::engine::PhaseTrace::exit_phase = -1 |
Definition at line 124 of file ldes_sampler.h.
Referenced by clear(), and set_exit_phase().
| std::vector<int> line::ldes::engine::PhaseTrace::phase |
Definition at line 122 of file ldes_sampler.h.
Referenced by add(), clear(), line::ldes::engine::sp::Tracker::script_of(), and size().