LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
solver_node_tables.h File Reference

The NODE-indexed view of a station result, behind getAvgNodeTable. More...

#include <cstddef>
#include <map>
#include <string>
#include <vector>
#include "line/api/sn/sn_node_metrics.h"
#include "line/lang/qn/network_struct.h"
#include "line/num/number.h"
#include "line/solvers/cache_metrics.h"
#include "line/solvers/mva/solver_mva_runner.h"
#include "line/util/matrix.h"
Include dependency graph for solver_node_tables.h:

Go to the source code of this file.

Classes

struct  line::solvers::NodeMetrics< T >
 The station table scattered to the NODE index space, plus the two flow columns the reference recomputes there. More...

Namespaces

namespace  line
namespace  line::solvers

Functions

template<class T>
line::mva::AvgResult< T > line::solvers::avg_result_from_sim (const line::qn::NetworkStruct< T > &sn, const line::Matrix< double > &QN, const line::Matrix< double > &UN, const line::Matrix< double > &RN, const line::Matrix< double > &TN, const std::vector< double > &CN, const std::vector< double > &XN, const std::string &method)
 The station AvgResult of a solver whose runner returns its own solution type, i.e.
template<class T>
NodeMetrics< T > line::solvers::node_metrics (const line::qn::NetworkStruct< T > &sn, const line::mva::AvgResult< T > &r)

Detailed Description

The NODE-indexed view of a station result, behind getAvgNodeTable.

ONE DEFINITION, THREE CALLERS. line-cli -a node and -a nodechain were the first two, and the comment on node_metrics already said why they must not each build the scatter: "recomputing them in the second arm would be a second definition of the same scatter, free to disagree with the first". The third is the example corpus. Four cache_replc_* references call getAvgNodeTable() rather than getAvgTable() – a cache model's answer lives at the Cache and the ClassSwitch, neither of which is a station – and their C++ twins printed the station table instead, so every Cache and ClassSwitch row was absent and the goldens' 71 cells went unmeasured. This header is what lets a twin print the table its reference printed without a fourth copy of the rule.

ARITHMETIC: field. Sums, quotients and the two sn_* ports it delegates to.

Definition in file solver_node_tables.h.