Stateless, thread safe initialization hander. More...
#include <init.h>
Public Member Functions | |
virtual void | Run (LinkGraphJob *job) |
Set up the node and edge annotations on the given job. | |
virtual | ~InitHandler () |
Virtual destructor has to be defined because of virtual Run(). |
Stateless, thread safe initialization hander.
Initializes node and edge annotations.
Definition at line 12 of file init.h.
void InitHandler::Run | ( | LinkGraphJob * | job | ) | [virtual] |
Set up the node and edge annotations on the given job.
job | Job to initialize. |
Implements ComponentHandler.
Definition at line 10 of file init.cpp.
References EdgeAnnotation::demand, EdgeAnnotation::flow, NodeAnnotation::flows, LinkGraphJob::GetEdge(), LinkGraph::GetNode(), LinkGraphJob::GetNode(), LinkGraph::GetSize(), LinkGraphJob::Graph(), NodeAnnotation::paths, Node::supply, NodeAnnotation::undelivered_supply, and EdgeAnnotation::unsatisfied_demand.