LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::ldes::engine::PhaseTrace Struct Reference

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>

Collaboration diagram for line::ldes::engine::PhaseTrace:

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

Detailed Description

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.

Member Function Documentation

◆ add()

void line::ldes::engine::PhaseTrace::add ( int ph,
double holding )
inline

Definition at line 130 of file ldes_sampler.h.

References dt, and phase.

◆ clear()

void line::ldes::engine::PhaseTrace::clear ( )
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().

◆ set_exit_phase()

void line::ldes::engine::PhaseTrace::set_exit_phase ( int ph)
inline

Definition at line 134 of file ldes_sampler.h.

References exit_phase.

◆ size()

std::size_t line::ldes::engine::PhaseTrace::size ( ) const
inline

Definition at line 135 of file ldes_sampler.h.

References phase.

Referenced by line::ldes::engine::sp::Tracker::script_of().

◆ total()

double line::ldes::engine::PhaseTrace::total ( ) const
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().

Member Data Documentation

◆ dt

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().

◆ exit_phase

int line::ldes::engine::PhaseTrace::exit_phase = -1

Definition at line 124 of file ldes_sampler.h.

Referenced by clear(), and set_exit_phase().

◆ 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().


The documentation for this struct was generated from the following file: