|
@@ -20,15 +20,28 @@
|
|
|
* reconnecting to other paths. The flows show how much cargo from which nodes
|
|
|
* is to be routed in which direction at a given node. This is what we need in
|
|
|
* the end.
|
|
|
*/
|
|
|
class FlowMapper : public ComponentHandler {
|
|
|
public:
|
|
|
|
|
|
/**
|
|
|
* Create a flow mapper.
|
|
|
* @param scale Whether the flow mapper should scale all flows to monthly
|
|
|
* values. Only do that on the very last flow mapping.
|
|
|
*/
|
|
|
FlowMapper(bool scale) : scale(scale) {}
|
|
|
virtual void Run(LinkGraphJob &job) const;
|
|
|
|
|
|
/**
|
|
|
* Virtual destructor has to be defined because of virtual Run().
|
|
|
*/
|
|
|
virtual ~FlowMapper() {}
|
|
|
private:
|
|
|
|
|
|
/**
|
|
|
* Whether the flow mapper should scale all flows to monthly values.
|
|
|
*/
|
|
|
const bool scale;
|
|
|
};
|
|
|
|
|
|
#endif /* FLOWMAPPER_H_ */
|