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

Phase script of one drawn interval: segment j ends at cum[j] and is spent in ph[j] (0-based). More...

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

Collaboration diagram for line::ldes::engine::sp::Script:

Public Member Functions

int seg_at (double a, int from) const
 Segment holding attained amount a, never below from.

Static Public Member Functions

static std::shared_ptr< Script > single (double total)

Public Attributes

std::vector< double > cum
std::vector< int > ph

Detailed Description

Phase script of one drawn interval: segment j ends at cum[j] and is spent in ph[j] (0-based).

Definition at line 114 of file ldes_samplepath.h.

Member Function Documentation

◆ seg_at()

int line::ldes::engine::sp::Script::seg_at ( double a,
int from ) const
inline

Segment holding attained amount a, never below from.

Definition at line 126 of file ldes_samplepath.h.

References cum.

◆ single()

std::shared_ptr< Script > line::ldes::engine::sp::Script::single ( double total)
inlinestatic

Member Data Documentation

◆ cum

std::vector<double> line::ldes::engine::sp::Script::cum

Definition at line 115 of file ldes_samplepath.h.

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

◆ ph

std::vector<int> line::ldes::engine::sp::Script::ph

Definition at line 116 of file ldes_samplepath.h.


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