29 template <
class Tscaler>
A handler doing "something" on a link graph component.
void CalcDemand(LinkGraphJob &job, Tscaler scaler)
Do the actual demand calculation, called from constructor.
DemandCalculator(LinkGraphJob &job)
Create the DemandCalculator and immediately do the calculation.
int32_t base_distance
Base distance for scaling purposes.
int32_t mod_dist
Distance modifier, determines how much demands decrease with distance.
int32_t accuracy
Accuracy of the calculation.
Stateless, thread safe demand handler.
void Run(LinkGraphJob &job) const override
Call the demand calculator on the given component.
~DemandHandler() override=default
Virtual destructor has to be defined because of virtual Run().
Class for calculation jobs to be run on link graphs.
Declaration of link graph job classes used for cargo distribution.
Declaration of link graph schedule used for cargo distribution.