|
OpenTTD
|
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. | |
Scale various things according to symmetric/asymmetric distribution.
Definition at line 14 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. |
Reimplemented in SymmetricScaler.
Definition at line 154 of file demands.cpp.
1.8.1.2