![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
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. | |
| 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().
| 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().
| 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().
| 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 ) |
(ntasks, prob) pairs for the link Fork f -> node j in class r, ascending in ntasks.
Definition at line 406 of file sn_fj_visits_spn.h.
References line::qn::ForkParam< T >::fan_out_dist, line::qn::ForkParam< T >::fan_out_link, line::qn::ForkParam< T >::fan_out_prob, link_dist(), line::lang::Distrib< T >::params, and line::lang::Distrib< T >::trace.
Referenced by link_dist(), and solve_component().
|
inline |
Definition at line 363 of file sn_fj_visits_spn.h.
References nm().
Referenced by in_name(), nm(), out_name(), and solve_component().
| 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().
| 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 ) |
Build and solve the net of one component; nv/dep are I x K, row-major.
Definition at line 502 of file sn_fj_visits_spn.h.
References in_name(), line::api::fjtokdetail::Mode::inh, line::api::fjtokdetail::Mode::ins, is_type(), link_dist(), line::api::fjtokdetail::Net::modes, nm(), out_name(), line::api::fjtokdetail::Mode::outs, line::api::fjtokdetail::Net::place(), line::api::fjtokdetail::Mode::rate, solve_component(), line::lang::STD, and token_game().
Referenced by line::api::sn_fj_visits_spn_chains(), and solve_component().
|
inline |
Stationary place throughputs of the net, from its marking graph.
Definition at line 436 of file sn_fj_visits_spn.h.
References line::mc::ctmc_solve(), line::api::fjtokdetail::Mode::inh, line::api::fjtokdetail::Mode::ins, line::api::fjtokdetail::Net::modes, line::api::fjtokdetail::Mode::outs, line::api::fjtokdetail::Net::places, line::api::fjtokdetail::Mode::rate, and token_game().
Referenced by solve_component(), and token_game().