![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
A node of the model: the index it was given, and the model that owns it. More...
#include <line/lang/qn/nodes.h>
Public Member Functions | |
| std::size_t | get_index () const |
| get_index(): the 1-based node index the builder assigned. | |
| const std::string & | get_name () const |
| getName(). | |
| NetworkModel & | model () const |
| The model this node belongs to. | |
| operator std::size_t () const | |
| A handle IS its index wherever one is expected. | |
| void | set_routing (std::size_t cls, lang::RoutingStrategy rs) |
| setRouting(class, strategy). | |
| void | set_routing_weights (std::size_t cls, const std::map< std::size_t, double > &weights) |
| setRoutingWeight(class, weights): the WRROBIN share per destination. | |
Protected Member Functions | |
| Node (NetworkModel &m, std::size_t idx, const std::string &nm) | |
Protected Attributes | |
| NetworkModel * | model_ |
| std::size_t | idx_ |
| std::string | name_ |
A node of the model: the index it was given, and the model that owns it.
|
inlineprotected |
Definition at line 83 of file nodes.h.
References idx_, model_, and name_.
Referenced by line::Cache::Cache(), line::ClassSwitch::ClassSwitch(), line::Fork::Fork(), line::Join::Join(), line::Router::Router(), line::Sink::Sink(), line::Station::Station(), and line::Transition::Transition().
|
inline |
get_index(): the 1-based node index the builder assigned.
Definition at line 59 of file nodes.h.
References idx_.
|
inline |
|
inline |
|
inline |
|
inline |
setRouting(class, strategy).
Definition at line 74 of file nodes.h.
References idx_, model_, and line::qn::Network< T >::set_routing().
|
inline |
setRoutingWeight(class, weights): the WRROBIN share per destination.
Definition at line 78 of file nodes.h.
References idx_, model_, and line::qn::Network< T >::set_routing_weights().
|
protected |
Definition at line 86 of file nodes.h.
Referenced by line::Station::add_server_type(), line::ClassSwitch::ClassSwitch(), get_index(), line::Station::get_station_index(), Node(), operator std::size_t(), line::Source::set_arrival(), line::Source::set_arrival_batch(), line::Station::set_breakdown(), line::Station::set_capacity(), line::Station::set_class_capacity(), line::ClassSwitch::set_class_switching_matrix(), line::Station::set_drop_rule(), line::Place::set_initial_marking(), line::Cache::set_item_read_classes(), line::Station::set_load_dependence(), line::Station::set_number_of_servers(), line::Station::set_polling_type(), set_routing(), set_routing_weights(), line::Station::set_sched_param(), line::Station::set_service(), line::Join::set_strategy(), and line::Station::set_switchover().
|
protected |
Definition at line 85 of file nodes.h.
Referenced by line::Station::add_server_type(), line::Station::get_station_index(), model(), Node(), line::Source::set_arrival(), line::Source::set_arrival_batch(), line::Station::set_breakdown(), line::Station::set_capacity(), line::Station::set_class_capacity(), line::ClassSwitch::set_class_switching_matrix(), line::Station::set_drop_rule(), line::Place::set_initial_marking(), line::Cache::set_item_read_classes(), line::Station::set_load_dependence(), line::Station::set_number_of_servers(), line::Station::set_polling_type(), set_routing(), set_routing_weights(), line::Station::set_sched_param(), line::Station::set_service(), line::Join::set_strategy(), and line::Station::set_switchover().
|
protected |
Definition at line 87 of file nodes.h.
Referenced by get_name(), and Node().