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

getAvgTable, one row per (station, class) that carries a metric. More...

#include <line/solvers/avg_table.h>

Collaboration diagram for line::AvgTable:

Public Member Functions

bool has_ci () const
 Whether the half-width columns are filled.
double get (const std::string &column, const std::string &station, const std::string &jobclass) const
 One cell of the table, by station and class NAME; NaN when absent.
std::vector< double > column (const std::string &column) const
 A complete metric column.
AvgTable filter_by (const std::string &name) const
 Rows whose station or class has name, MATLAB's one-argument filterBy.
AvgTable filter_by (const std::string &station, const std::string &jobclass) const
 Rows at one station for one class, MATLAB's two-argument filterBy.
AvgTable filter_by (const Node &node) const
AvgTable filter_by (const ::line::JobClass &jobclass) const
AvgTable filter_by (const Node &node, const ::line::JobClass &jobclass) const
AvgTable filter_by (const ::line::JobClass &jobclass, const Node &node) const
AvgTable get (const Node &node) const
 MATLAB-compatible filtering aliases, preserving C++ snake-case naming.
AvgTable get (const ::line::JobClass &jobclass) const
AvgTable get (const Node &node, const ::line::JobClass &jobclass) const
AvgTable get (const ::line::JobClass &jobclass, const Node &node) const
AvgTable tget (const Node &node) const
AvgTable tget (const ::line::JobClass &jobclass) const
AvgTable tget (const Node &node, const ::line::JobClass &jobclass) const
AvgTable tget (const ::line::JobClass &jobclass, const Node &node) const
AvgTable operator() (const Node &node) const
 Direct object indexing: table(queue, jobs).
AvgTable operator() (const ::line::JobClass &jobclass) const
AvgTable operator() (const Node &node, const ::line::JobClass &jobclass) const
AvgTable operator() (const ::line::JobClass &jobclass, const Node &node) const
void print (std::ostream &out) const
 Print the labelled station-class table.
void print () const
std::size_t size () const
 The number of rows the table carries.
bool empty () const

Public Attributes

std::vector< std::string > Station
std::vector< std::string > JobClass
std::vector< double > QLen
std::vector< double > Util
std::vector< double > RespT
std::vector< double > ResidT
std::vector< double > ArvR
std::vector< double > Tput
std::vector< std::string > SysClass
 getAvgSysTable: system response time and throughput, per class.
std::vector< double > SysRespT
std::vector< double > SysTput
std::string solver
std::string method
int iter = 0
bool has_lognormconst = false
double lognormconst = 0.0
std::vector< double > ListCost
 getAvgCacheTable's ListCost column; empty on a model without item sizes.
std::string warning
 The reference's own warning text, empty when it did not warn.
std::vector< double > QLenCI
 Confidence half-widths of the six metric columns, row for row; EMPTY unless SolverOptions::confint asked for them and the engine reports them (JMT, LDES).
std::vector< double > UtilCI
std::vector< double > RespTCI
std::vector< double > ResidTCI
std::vector< double > ArvRCI
std::vector< double > TputCI

Detailed Description

getAvgTable, one row per (station, class) that carries a metric.

Definition at line 38 of file avg_table.h.

Member Function Documentation

◆ column()

std::vector< double > line::AvgTable::column ( const std::string & column) const

A complete metric column.

Definition at line 87 of file solver_facade.cpp.

References ArvR, ArvRCI, line::InputError::InputError(), QLen, QLenCI, ResidT, ResidTCI, RespT, RespTCI, Tput, TputCI, Util, and UtilCI.

Referenced by get().

◆ empty()

bool line::AvgTable::empty ( ) const
inline

Definition at line 96 of file avg_table.h.

References Station.

◆ filter_by() [1/6]

AvgTable line::AvgTable::filter_by ( const ::line::JobClass & jobclass) const

Definition at line 159 of file solver_facade.cpp.

References JobClass.

◆ filter_by() [2/6]

AvgTable line::AvgTable::filter_by ( const ::line::JobClass & jobclass,
const Node & node ) const

Definition at line 169 of file solver_facade.cpp.

References filter_by().

◆ filter_by() [3/6]

AvgTable line::AvgTable::filter_by ( const Node & node) const

Definition at line 153 of file solver_facade.cpp.

References line::Node::get_name(), and Station.

◆ filter_by() [4/6]

AvgTable line::AvgTable::filter_by ( const Node & node,
const ::line::JobClass & jobclass ) const

Definition at line 165 of file solver_facade.cpp.

References filter_by(), and line::Node::get_name().

◆ filter_by() [5/6]

AvgTable line::AvgTable::filter_by ( const std::string & name) const

Rows whose station or class has name, MATLAB's one-argument filterBy.

Definition at line 141 of file solver_facade.cpp.

References JobClass, and Station.

Referenced by filter_by(), filter_by(), get(), get(), get(), get(), operator()(), operator()(), operator()(), operator()(), tget(), tget(), tget(), and tget().

◆ filter_by() [6/6]

AvgTable line::AvgTable::filter_by ( const std::string & station,
const std::string & jobclass ) const

Rows at one station for one class, MATLAB's two-argument filterBy.

Definition at line 147 of file solver_facade.cpp.

References JobClass, and Station.

◆ get() [1/5]

AvgTable line::AvgTable::get ( const ::line::JobClass & jobclass) const

Definition at line 174 of file solver_facade.cpp.

References filter_by().

◆ get() [2/5]

AvgTable line::AvgTable::get ( const ::line::JobClass & jobclass,
const Node & node ) const

Definition at line 178 of file solver_facade.cpp.

References filter_by().

◆ get() [3/5]

AvgTable line::AvgTable::get ( const Node & node) const

MATLAB-compatible filtering aliases, preserving C++ snake-case naming.

Definition at line 173 of file solver_facade.cpp.

References filter_by().

◆ get() [4/5]

AvgTable line::AvgTable::get ( const Node & node,
const ::line::JobClass & jobclass ) const

Definition at line 175 of file solver_facade.cpp.

References filter_by().

◆ get() [5/5]

double line::AvgTable::get ( const std::string & column,
const std::string & station,
const std::string & jobclass ) const

One cell of the table, by station and class NAME; NaN when absent.

Definition at line 71 of file solver_facade.cpp.

References ArvR, column(), JobClass, QLen, ResidT, RespT, Station, Tput, and Util.

◆ has_ci()

bool line::AvgTable::has_ci ( ) const
inline

Whether the half-width columns are filled.

Definition at line 58 of file avg_table.h.

References QLenCI.

Referenced by print().

◆ operator()() [1/4]

AvgTable line::AvgTable::operator() ( const ::line::JobClass & jobclass) const

Definition at line 190 of file solver_facade.cpp.

References filter_by().

◆ operator()() [2/4]

AvgTable line::AvgTable::operator() ( const ::line::JobClass & jobclass,
const Node & node ) const

Definition at line 196 of file solver_facade.cpp.

References filter_by().

◆ operator()() [3/4]

AvgTable line::AvgTable::operator() ( const Node & node) const

Direct object indexing: table(queue, jobs).

Definition at line 189 of file solver_facade.cpp.

References filter_by().

◆ operator()() [4/4]

AvgTable line::AvgTable::operator() ( const Node & node,
const ::line::JobClass & jobclass ) const

Definition at line 193 of file solver_facade.cpp.

References filter_by().

◆ print() [1/2]

void line::AvgTable::print ( ) const

Definition at line 236 of file solver_facade.cpp.

References print().

◆ print() [2/2]

void line::AvgTable::print ( std::ostream & out) const

Print the labelled station-class table.

Definition at line 200 of file solver_facade.cpp.

References ArvR, ArvRCI, has_ci(), JobClass, QLen, QLenCI, ResidT, ResidTCI, RespT, RespTCI, Station, Tput, TputCI, Util, and UtilCI.

Referenced by print().

◆ size()

std::size_t line::AvgTable::size ( ) const
inline

The number of rows the table carries.

Definition at line 95 of file avg_table.h.

References Station.

◆ tget() [1/4]

AvgTable line::AvgTable::tget ( const ::line::JobClass & jobclass) const

Definition at line 182 of file solver_facade.cpp.

References filter_by().

◆ tget() [2/4]

AvgTable line::AvgTable::tget ( const ::line::JobClass & jobclass,
const Node & node ) const

Definition at line 186 of file solver_facade.cpp.

References filter_by().

◆ tget() [3/4]

AvgTable line::AvgTable::tget ( const Node & node) const

Definition at line 181 of file solver_facade.cpp.

References filter_by().

◆ tget() [4/4]

AvgTable line::AvgTable::tget ( const Node & node,
const ::line::JobClass & jobclass ) const

Definition at line 183 of file solver_facade.cpp.

References filter_by().

Member Data Documentation

◆ ArvR

std::vector<double> line::AvgTable::ArvR

Definition at line 40 of file avg_table.h.

Referenced by column(), get(), and print().

◆ ArvRCI

std::vector<double> line::AvgTable::ArvRCI

Definition at line 56 of file avg_table.h.

Referenced by column(), and print().

◆ has_lognormconst

bool line::AvgTable::has_lognormconst = false

Definition at line 46 of file avg_table.h.

◆ iter

int line::AvgTable::iter = 0

Definition at line 45 of file avg_table.h.

◆ JobClass

std::vector<std::string> line::AvgTable::JobClass

◆ ListCost

std::vector<double> line::AvgTable::ListCost

getAvgCacheTable's ListCost column; empty on a model without item sizes.

Definition at line 49 of file avg_table.h.

◆ lognormconst

double line::AvgTable::lognormconst = 0.0

Definition at line 47 of file avg_table.h.

◆ method

std::string line::AvgTable::method

◆ QLen

std::vector<double> line::AvgTable::QLen

◆ QLenCI

std::vector<double> line::AvgTable::QLenCI

Confidence half-widths of the six metric columns, row for row; EMPTY unless SolverOptions::confint asked for them and the engine reports them (JMT, LDES).

Definition at line 56 of file avg_table.h.

Referenced by column(), has_ci(), and print().

◆ ResidT

std::vector<double> line::AvgTable::ResidT

Definition at line 40 of file avg_table.h.

Referenced by column(), get(), and print().

◆ ResidTCI

std::vector<double> line::AvgTable::ResidTCI

Definition at line 56 of file avg_table.h.

Referenced by column(), and print().

◆ RespT

std::vector<double> line::AvgTable::RespT

Definition at line 40 of file avg_table.h.

Referenced by column(), get(), line::wfn::WorkflowNet::get_case_metrics(), and print().

◆ RespTCI

std::vector<double> line::AvgTable::RespTCI

Definition at line 56 of file avg_table.h.

Referenced by column(), and print().

◆ solver

std::string line::AvgTable::solver

◆ Station

std::vector<std::string> line::AvgTable::Station

◆ SysClass

std::vector<std::string> line::AvgTable::SysClass

getAvgSysTable: system response time and throughput, per class.

Definition at line 42 of file avg_table.h.

◆ SysRespT

std::vector<double> line::AvgTable::SysRespT

Definition at line 43 of file avg_table.h.

◆ SysTput

std::vector<double> line::AvgTable::SysTput

Definition at line 43 of file avg_table.h.

◆ Tput

std::vector<double> line::AvgTable::Tput

Definition at line 40 of file avg_table.h.

Referenced by column(), get(), line::wfn::WorkflowNet::get_case_metrics(), and print().

◆ TputCI

std::vector<double> line::AvgTable::TputCI

Definition at line 56 of file avg_table.h.

Referenced by column(), and print().

◆ Util

std::vector<double> line::AvgTable::Util

Definition at line 40 of file avg_table.h.

Referenced by column(), get(), line::wfn::WorkflowNet::get_case_metrics(), and print().

◆ UtilCI

std::vector<double> line::AvgTable::UtilCI

Definition at line 56 of file avg_table.h.

Referenced by column(), and print().

◆ warning

std::string line::AvgTable::warning

The reference's own warning text, empty when it did not warn.

Definition at line 51 of file avg_table.h.


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