LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::qn::RoutingMatrix< T > Class Template Reference

The routing matrix a model script fills in, MATLAB's P cell array. More...

#include <line/lang/qn/network_builder.h>

Inheritance diagram for line::qn::RoutingMatrix< T >:
Collaboration diagram for line::qn::RoutingMatrix< T >:

Classes

struct  Key

Public Member Functions

void set (std::size_t r, std::size_t s, std::size_t i, std::size_t j, const T &p)
void set (std::size_t i, std::size_t j, const T &p)
void set (std::size_t cls, const RoutingMatrix< T > &block)
 P.set(class, Network.serialRouting(...)): install a one-class block.
T get (std::size_t r, std::size_t s, std::size_t i, std::size_t j) const

Public Attributes

std::map< Key, T > entries

Detailed Description

template<class T>
class line::qn::RoutingMatrix< T >

The routing matrix a model script fills in, MATLAB's P cell array.

P{r,s}(i,j) is the probability that a job leaving node i in class r enters node j in class s. The single-class form set(i, j, p) is the shorthand a one-class model uses, and is exactly set(1, 1, i, j, p).

Definition at line 60 of file network_builder.h.

Member Function Documentation

◆ get()

template<class T>
T line::qn::RoutingMatrix< T >::get ( std::size_t r,
std::size_t s,
std::size_t i,
std::size_t j ) const
inline

Definition at line 79 of file network_builder.h.

Referenced by line::qn::Network< double >::link().

◆ set() [1/3]

template<class T>
void line::qn::RoutingMatrix< T >::set ( std::size_t cls,
const RoutingMatrix< T > & block )
inline

P.set(class, Network.serialRouting(...)): install a one-class block.

The source block's class coordinates are deliberately ignored. A serial routing matrix is a topology block; this call assigns that topology to the requested class, exactly as the MATLAB, JAR and Python APIs do.

Definition at line 74 of file network_builder.h.

◆ set() [2/3]

template<class T>
void line::qn::RoutingMatrix< T >::set ( std::size_t i,
std::size_t j,
const T & p )
inline

Definition at line 65 of file network_builder.h.

Referenced by line::qn::RoutingMatrix< double >::set().

◆ set() [3/3]

Member Data Documentation

◆ entries

template<class T>
std::map<Key, T> line::qn::RoutingMatrix< T >::entries

Definition at line 95 of file network_builder.h.

Referenced by line::qn::Network< double >::link().


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