![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Cache(model, name, params). More...
#include <line/lang/qn/nodes.h>
Public Member Functions | |
| Cache (NetworkModel &m, const std::string &nm, const qn::CacheParam< double > &par) | |
| void | set_item_read_classes (const std::vector< std::size_t > &read_classes, const std::vector< std::size_t > &hit_classes) |
| setItemReadClasses(read_classes, hit_classes), one entry per item. | |
| void | set_read (std::size_t cls, const std::vector< double > &pmf) |
| setRead(jobclass, popularity): a pmf over the item ranks 1..nitems. | |
| void | set_read (std::size_t cls, const lang::Distrib< double > &d) |
| setRead(jobclass, Zipf(s, n)) or setRead(jobclass, DiscreteSampler(p)). | |
| void | set_hit_class (std::size_t cls, std::size_t hit) |
| setHitClass(jobclass, hitclass). | |
| void | set_miss_class (std::size_t cls, std::size_t miss) |
| setMissClass(jobclass, missclass). | |
| 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::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 237 of file nodes.h.
References line::Node::Node().
|
inline |
setHitClass(jobclass, hitclass).
Definition at line 249 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_cache_hit_class().
|
inline |
setItemReadClasses(read_classes, hit_classes), one entry per item.
Definition at line 240 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_item_read_classes().
|
inline |
setMissClass(jobclass, missclass).
Definition at line 251 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_cache_miss_class().
|
inline |
setRead(jobclass, Zipf(s, n)) or setRead(jobclass, DiscreteSampler(p)).
Definition at line 247 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_cache_read().
|
inline |
setRead(jobclass, popularity): a pmf over the item ranks 1..nitems.
Definition at line 245 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_cache_read().