21 template<
class Tscaler>
virtual ~DemandHandler()
Virtual destructor has to be defined because of virtual Run().
void CalcDemand(LinkGraphJob &job, Tscaler scaler)
Do the actual demand calculation, called from constructor.
int32 mod_dist
Distance modifier, determines how much demands decrease with distance.
DemandCalculator(LinkGraphJob &job)
Create the DemandCalculator and immediately do the calculation.
int32 max_distance
Maximum distance possible on the map.
virtual void Run(LinkGraphJob &job) const
Call the demand calculator on the given component.
int32 accuracy
Accuracy of the calculation.
A handler doing "something" on a link graph component.
Stateless, thread safe demand hander.
Some typedefs for component handlers.
Class for calculation jobs to be run on link graphs.