# demands.h

Go to the documentation of this file.

    00001
    00003 #ifndef DEMANDS_H
    00004 #define DEMANDS_H
    00005
    00006 #include "linkgraphjob_base.h"
    00007
    00012 class DemandCalculator {
    00013 public:
    00014   DemandCalculator(LinkGraphJob &job);
    00015
    00016 private:
    00017   int32 max_distance;
    00018   int32 mod_dist;
    00019   int32 accuracy;
    00020
    00021   template<class Tscaler>
    00022   void CalcDemand(LinkGraphJob &job, Tscaler scaler);
    00023 };
    00024
    00028 class DemandHandler : public ComponentHandler {
    00029 public:
    00030
    00035   virtual void Run(LinkGraphJob &job) const { DemandCalculator c(job); }
    00036
    00040   virtual ~DemandHandler() {}
    00041 };
    00042
    00043 #endif /* DEMANDS_H */