![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Place(model, name): a Petri-net place. More...
#include <line/lang/qn/nodes.h>
Public Member Functions | |
| Place (NetworkModel &m, const std::string &nm) | |
| Place (NetworkModel &m, const std::string &nm, lang::SchedStrategy sched) | |
| Place(model, name, schedStrategy): a place with an EMBEDDED QUEUE. | |
| void | set_departure_discipline (std::size_t cls, lang::DepartureDiscipline rule) |
| setDepartureDiscipline(class, rule): how a served token leaves the depository. | |
| void | set_initial_marking (const std::vector< double > &tokens) |
| setInitialMarking(tokens). | |
| void | set_fluid (bool flag=true) |
| setFluid(flag): a FLUID place of an FSPN, holding one real level instead of tokens. | |
| bool | is_fluid () const |
| isFluid(). | |
| void | set_fluid_capacity (double cap) |
| setFluidCapacity(B): the level ceiling, Inf when unbounded. | |
| double | get_fluid_capacity () const |
| getFluidCapacity(). | |
| void | set_fluid_level (double level) |
| setFluidLevel(x0): the initial level. | |
| double | get_fluid_level () const |
| getFluidLevel(). | |
| Public Member Functions inherited from line::Station | |
| void | set_service (std::size_t cls, const Dist &d) |
| setService(class, distribution). | |
| void | set_number_of_servers (double n) |
| setNumberOfServers(n). | |
| void | set_capacity (double k) |
| setCapacity(k), the K of Kendall's notation. | |
| void | set_class_capacity (std::size_t cls, double k) |
| setClassCapacity(class, k). | |
| void | set_drop_rule (std::size_t cls, lang::DropStrategy rule) |
| setDropRule(class, rule). | |
| void | set_sched_param (std::size_t cls, double weight) |
| setSchedParam(class, weight): the DPS/GPS share. | |
| void | set_load_dependence (const std::vector< double > &alpha) |
| setLoadDependence(alpha). | |
| void | set_polling_type (lang::PollingType rule, int par=0) |
| setPollingType(type, k). | |
| void | set_switchover (std::size_t cls, const Dist &so) |
| setSwitchover(class, distribution). | |
| void | set_switchover (std::size_t from_cls, std::size_t to_cls, const Dist &so) |
| setSwitchover(fromClass, toClass, distribution). | |
| void | set_breakdown (const Dist &failure, const Dist &repair) |
| setBreakdown(failure, repair). | |
| void | add_server_type (const qn::Station< double >::ServerType &stype) |
| addServerType(type): one pool of a heterogeneous station. | |
| std::size_t | get_station_index () const |
| getStationIndex(): the 1-based station index, distinct from the node one. | |
| Public Member Functions inherited from line::Node | |
| 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. | |
Additional Inherited Members | |
| Protected Member Functions inherited from line::Station | |
| Station (NetworkModel &m, std::size_t idx, const std::string &nm) | |
| Protected Member Functions inherited from line::Node | |
| Node (NetworkModel &m, std::size_t idx, const std::string &nm) | |
| Protected Attributes inherited from line::Node | |
| NetworkModel * | model_ |
| std::size_t | idx_ |
| std::string | name_ |
|
inline |
Definition at line 257 of file nodes.h.
References line::Station::Station().
|
inline |
Place(model, name, schedStrategy): a place with an EMBEDDED QUEUE.
The place becomes a queueing place once set_service gives it a law, as Place.setService does in MATLAB; until then the discipline is declared and unused and the place behaves as an ordinary one.
Definition at line 265 of file nodes.h.
References line::Station::Station().
|
inline |
getFluidCapacity().
Definition at line 282 of file nodes.h.
References line::qn::Network< T >::get_fluid_capacity(), line::Node::idx_, and line::Node::model_.
|
inline |
getFluidLevel().
Definition at line 286 of file nodes.h.
References line::qn::Network< T >::get_fluid_level(), line::Node::idx_, and line::Node::model_.
|
inline |
isFluid().
Definition at line 278 of file nodes.h.
References line::Node::idx_, line::qn::Network< T >::is_place_fluid(), and line::Node::model_.
|
inline |
setDepartureDiscipline(class, rule): how a served token leaves the depository.
Definition at line 268 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_departure_discipline().
|
inline |
setFluid(flag): a FLUID place of an FSPN, holding one real level instead of tokens.
Definition at line 276 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_place_fluid().
|
inline |
setFluidCapacity(B): the level ceiling, Inf when unbounded.
Definition at line 280 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_fluid_capacity().
|
inline |
setFluidLevel(x0): the initial level.
Definition at line 284 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_fluid_level().
|
inline |
setInitialMarking(tokens).
Definition at line 272 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_initial_marking().