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)
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 67 of file network_builder.h.

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

◆ set() [1/2]

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() [2/2]

Member Data Documentation

◆ entries

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

Definition at line 83 of file network_builder.h.

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


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