21 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.
virtual ~DemandHandler()=default
Virtual destructor has to be defined because of virtual Run().
void Run(LinkGraphJob &job) const override
Call the demand calculator on the given component.
Class for calculation jobs to be run on link graphs.
Some typedefs for component handlers.