OpenTTD Source
20241108-master-g80f628063a
|
A scaler for asymmetric distribution. More...
Public Member Functions | |
void | AddNode (const Node &) |
Nothing to do here. More... | |
void | SetDemandPerNode (uint) |
Nothing to do here. More... | |
uint | EffectiveSupply (const Node &from, const Node &) |
Get the effective supply of one node towards another one. More... | |
bool | HasDemandLeft (const Node &to) |
Check if there is any acceptance left for this node. More... | |
Public Member Functions inherited from Scaler | |
void | SetDemands (LinkGraphJob &job, NodeID from, NodeID to, uint demand_forw) |
Set the demands between two nodes using the given base demand. More... | |
A scaler for asymmetric distribution.
Definition at line 87 of file demands.cpp.
|
inline |
Get the effective supply of one node towards another one.
from | The supplying node. |
unused. |
Definition at line 110 of file demands.cpp.
References LinkGraph::BaseNode::supply.
|
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. |
Definition at line 120 of file demands.cpp.
References LinkGraph::BaseNode::demand.
|
inline |