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

Classes

struct  Mode
struct  Net

Functions

std::string nm (const char *tag, std::size_t i, std::size_t r)
template<class T>
bool is_type (const qn::NetworkStruct< T > &sn, std::size_t i, qn::NodeType t)
template<class T>
std::string in_name (const qn::NetworkStruct< T > &sn, std::size_t i, std::size_t r)
template<class T>
std::string out_name (const qn::NetworkStruct< T > &sn, std::size_t i, std::size_t r)
template<class T>
std::vector< std::vector< bool > > component (const qn::NetworkStruct< T > &sn, std::size_t i0, std::size_t r0)
 States (node, class), 0-based, a parent token starting at (i0, r0) can occupy.
template<class T>
std::map< int, double > link_dist (const qn::NetworkStruct< T > &sn, std::size_t f, std::size_t r, std::size_t j)
 (ntasks, prob) pairs for the link Fork f -> node j in class r, ascending in ntasks.
std::string token_game (const Net &net, std::size_t startPlace, std::vector< double > *tput)
 Stationary place throughputs of the net, from its marking graph.
template<class T>
std::string solve_component (const qn::NetworkStruct< T > &sn, std::size_t i0, std::size_t r0, const std::vector< std::vector< bool > > &seen, std::size_t anchor, const std::vector< std::size_t > &inchain0, std::vector< double > *nv, std::vector< double > *dep)
 Build and solve the net of one component; nv/dep are I x K, row-major.

Function Documentation

◆ component()

template<class T>
std::vector< std::vector< bool > > line::api::fjtokdetail::component ( const qn::NetworkStruct< T > & sn,
std::size_t i0,
std::size_t r0 )

States (node, class), 0-based, a parent token starting at (i0, r0) can occupy.

Definition at line 384 of file sn_fj_visits_spn.h.

References component(), and is_type().

Referenced by component(), and line::api::sn_fj_visits_spn_chains().

◆ in_name()

template<class T>
std::string line::api::fjtokdetail::in_name ( const qn::NetworkStruct< T > & sn,
std::size_t i,
std::size_t r )

Definition at line 373 of file sn_fj_visits_spn.h.

References in_name(), is_type(), and nm().

Referenced by in_name(), and solve_component().

◆ is_type()

template<class T>
bool line::api::fjtokdetail::is_type ( const qn::NetworkStruct< T > & sn,
std::size_t i,
qn::NodeType t )

Definition at line 368 of file sn_fj_visits_spn.h.

References is_type().

Referenced by component(), in_name(), is_type(), out_name(), and solve_component().

◆ link_dist()

template<class T>
std::map< int, double > line::api::fjtokdetail::link_dist ( const qn::NetworkStruct< T > & sn,
std::size_t f,
std::size_t r,
std::size_t j )

◆ nm()

std::string line::api::fjtokdetail::nm ( const char * tag,
std::size_t i,
std::size_t r )
inline

Definition at line 363 of file sn_fj_visits_spn.h.

References nm().

Referenced by in_name(), nm(), out_name(), and solve_component().

◆ out_name()

template<class T>
std::string line::api::fjtokdetail::out_name ( const qn::NetworkStruct< T > & sn,
std::size_t i,
std::size_t r )

Definition at line 378 of file sn_fj_visits_spn.h.

References is_type(), nm(), and out_name().

Referenced by out_name(), and solve_component().

◆ solve_component()

template<class T>
std::string line::api::fjtokdetail::solve_component ( const qn::NetworkStruct< T > & sn,
std::size_t i0,
std::size_t r0,
const std::vector< std::vector< bool > > & seen,
std::size_t anchor,
const std::vector< std::size_t > & inchain0,
std::vector< double > * nv,
std::vector< double > * dep )

◆ token_game()

std::string line::api::fjtokdetail::token_game ( const Net & net,
std::size_t startPlace,
std::vector< double > * tput )
inline