SUMO - Simulation of Urban MObility
|
Interface for building instances of jtrrouter-edges. More...
#include <ROJTREdgeBuilder.h>
Public Member Functions | |
ROJTREdgeBuilder () | |
Constructor. | |
~ROJTREdgeBuilder () | |
Destructor. | |
Methods inherited from ROAbstractEdgeBuilder | |
ROEdge * | buildEdge (const std::string &name, RONode *from, RONode *to) |
Builds an edge with the given name. | |
Protected Member Functions | |
unsigned int | getNextIndex () |
Returns the index of the edge to built. |
Interface for building instances of jtrrouter-edges.
This ROAbstractEdgeBuilder implementation builds edges for the jtrrouter (instances of ROJTREdge).
Definition at line 55 of file ROJTREdgeBuilder.h.
Constructor.
Definition at line 43 of file ROJTREdgeBuilder.cpp.
Destructor.
Definition at line 46 of file ROJTREdgeBuilder.cpp.
ROEdge * ROJTREdgeBuilder::buildEdge | ( | const std::string & | name, |
RONode * | from, | ||
RONode * | to | ||
) | [virtual] |
Builds an edge with the given name.
This implementation builds a ROJTREdge.
[in] | name | The name of the edge |
[in] | from | The node the edge begins at |
[in] | to | The node the edge ends at |
Implements ROAbstractEdgeBuilder.
Definition at line 50 of file ROJTREdgeBuilder.cpp.
References ROAbstractEdgeBuilder::getNextIndex().
unsigned int ROAbstractEdgeBuilder::getNextIndex | ( | ) | [inline, protected, inherited] |
Returns the index of the edge to built.
Definition at line 88 of file ROAbstractEdgeBuilder.h.
References ROAbstractEdgeBuilder::myCurrentIndex.
Referenced by buildEdge(), RODFEdgeBuilder::buildEdge(), and RODUAEdgeBuilder::buildEdge().