OpenTTD Source
20241121-master-g67a0fccfad
|
Scale various things according to symmetric/asymmetric distribution. More...
Public Member Functions | |
void | SetDemands (LinkGraphJob &job, NodeID from, NodeID to, uint demand_forw) |
Set the demands between two nodes using the given base demand. More... | |
Scale various things according to symmetric/asymmetric distribution.
Definition at line 15 of file demands.cpp.
|
inline |
Set the demands between two nodes using the given base demand.
In asymmetric mode this only sets demand in the "forward" direction.
job | The link graph job. |
from_id | The supplying node. |
to_id | The receiving node. |
demand_forw | Demand calculated for the "forward" direction. |
Definition at line 154 of file demands.cpp.
Referenced by SymmetricScaler::SetDemands().