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

Transcribes SamplePathRecorder: the rows and events of the path. More...

#include <line/solvers/ldes/ldes_samplepath.h>

Public Member Functions

 Recorder ()=default
 Recorder (std::size_t limit, const std::vector< std::size_t > &stateful_nodes, std::size_t nclasses, const std::vector< std::string > &refusal, const std::vector< bool > &refused)
bool is_full () const
std::size_t size () const
void add_row (double time, const std::vector< std::vector< double > > &state, const std::vector< std::vector< double > > &aggr, const std::vector< Ev > &evs)
void count_unbound_script ()
long long unbound_scripts () const
const std::vector< double > & times () const
const std::vector< std::vector< double > > & events () const
std::size_t num_stateful () const
std::size_t stateful_node (std::size_t isf) const
bool refused (std::size_t isf) const
const std::string & refusal (std::size_t isf) const
std::vector< std::vector< double > > state (std::size_t isf) const
 The detailed rows of node isf, LEFT-padded with zeros to the widest row.
std::vector< std::vector< double > > aggr (std::size_t isf) const

Detailed Description

Transcribes SamplePathRecorder: the rows and events of the path.

Definition at line 176 of file ldes_samplepath.h.

Constructor & Destructor Documentation

◆ Recorder() [1/2]

line::ldes::engine::sp::Recorder::Recorder ( )
default

◆ Recorder() [2/2]

line::ldes::engine::sp::Recorder::Recorder ( std::size_t limit,
const std::vector< std::size_t > & stateful_nodes,
std::size_t nclasses,
const std::vector< std::string > & refusal,
const std::vector< bool > & refused )
inline

Definition at line 179 of file ldes_samplepath.h.

References refusal(), refused(), and size().

Member Function Documentation

◆ add_row()

void line::ldes::engine::sp::Recorder::add_row ( double time,
const std::vector< std::vector< double > > & state,
const std::vector< std::vector< double > > & aggr,
const std::vector< Ev > & evs )
inline

Definition at line 187 of file ldes_samplepath.h.

References aggr(), and state().

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

◆ aggr()

std::vector< std::vector< double > > line::ldes::engine::sp::Recorder::aggr ( std::size_t isf) const
inline

Definition at line 224 of file ldes_samplepath.h.

References size().

Referenced by add_row().

◆ count_unbound_script()

void line::ldes::engine::sp::Recorder::count_unbound_script ( )
inline

Definition at line 204 of file ldes_samplepath.h.

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

◆ events()

const std::vector< std::vector< double > > & line::ldes::engine::sp::Recorder::events ( ) const
inline

Definition at line 208 of file ldes_samplepath.h.

◆ is_full()

bool line::ldes::engine::sp::Recorder::is_full ( ) const
inline

Definition at line 184 of file ldes_samplepath.h.

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

◆ num_stateful()

std::size_t line::ldes::engine::sp::Recorder::num_stateful ( ) const
inline

Definition at line 209 of file ldes_samplepath.h.

◆ refusal()

const std::string & line::ldes::engine::sp::Recorder::refusal ( std::size_t isf) const
inline

Definition at line 212 of file ldes_samplepath.h.

Referenced by Recorder().

◆ refused()

bool line::ldes::engine::sp::Recorder::refused ( std::size_t isf) const
inline

Definition at line 211 of file ldes_samplepath.h.

Referenced by Recorder().

◆ size()

std::size_t line::ldes::engine::sp::Recorder::size ( ) const
inline

Definition at line 185 of file ldes_samplepath.h.

Referenced by aggr(), Recorder(), and state().

◆ state()

std::vector< std::vector< double > > line::ldes::engine::sp::Recorder::state ( std::size_t isf) const
inline

The detailed rows of node isf, LEFT-padded with zeros to the widest row.

Definition at line 215 of file ldes_samplepath.h.

References size().

Referenced by add_row().

◆ stateful_node()

std::size_t line::ldes::engine::sp::Recorder::stateful_node ( std::size_t isf) const
inline

Definition at line 210 of file ldes_samplepath.h.

◆ times()

const std::vector< double > & line::ldes::engine::sp::Recorder::times ( ) const
inline

Definition at line 207 of file ldes_samplepath.h.

◆ unbound_scripts()

long long line::ldes::engine::sp::Recorder::unbound_scripts ( ) const
inline

Definition at line 205 of file ldes_samplepath.h.


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