A scaler for asymmetric distribution. More...
Public Member Functions | |
void | AddNode (const Node &) |
Nothing to do here. | |
void | SetDemandPerNode (uint) |
Nothing to do here. | |
uint | EffectiveSupply (const Node &from, const Node &) |
Get the effective supply of one node towards another one. | |
bool | HasDemandLeft (const Node &to) |
Check if there is any acceptance left for this node. |
A scaler for asymmetric distribution.
Definition at line 84 of file demands.cpp.
void AsymmetricScaler::AddNode | ( | const Node & | ) | [inline] |
Get the effective supply of one node towards another one.
from | The supplying node. | |
unused. |
Definition at line 107 of file demands.cpp.
References LinkGraph::NodeWrapper< Tnode, Tedge >::Supply().
bool AsymmetricScaler::HasDemandLeft | ( | const Node & | to | ) | [inline] |
Check if there is any acceptance left for this node.
In asymmetric distribution nodes always accept as long as their demand > 0.
to | The node to be checked. | |
to_anno | Unused. |
Definition at line 118 of file demands.cpp.
References LinkGraph::NodeWrapper< Tnode, Tedge >::Demand().
void AsymmetricScaler::SetDemandPerNode | ( | uint | ) | [inline] |