Eclipse 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, const int priority) |
Builds an edge with the given name. | |
Protected Member Functions | |
int | getNextIndex () |
Returns the index of the edge to built. | |
Private Attributes | |
int | myCurrentIndex |
The next edge's index. | |
Interface for building instances of jtrrouter-edges.
This ROAbstractEdgeBuilder implementation builds edges for the jtrrouter (instances of ROJTREdge).
Definition at line 46 of file ROJTREdgeBuilder.h.
ROJTREdgeBuilder::ROJTREdgeBuilder | ( | ) |
Constructor.
Definition at line 31 of file ROJTREdgeBuilder.cpp.
ROJTREdgeBuilder::~ROJTREdgeBuilder | ( | ) |
Destructor.
Definition at line 34 of file ROJTREdgeBuilder.cpp.
|
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 |
[in] | priority | The edge priority (road class) |
Implements ROAbstractEdgeBuilder.
Definition at line 38 of file ROJTREdgeBuilder.cpp.
References ROAbstractEdgeBuilder::getNextIndex().
|
inlineprotectedinherited |
Returns the index of the edge to built.
Definition at line 80 of file ROAbstractEdgeBuilder.h.
References ROAbstractEdgeBuilder::myCurrentIndex.
Referenced by AGStreet::Builder::buildEdge(), RODFEdgeBuilder::buildEdge(), RODUAEdgeBuilder::buildEdge(), buildEdge(), and ROMAEdgeBuilder::buildEdge().
|
privateinherited |
The next edge's index.
Definition at line 87 of file ROAbstractEdgeBuilder.h.
Referenced by ROAbstractEdgeBuilder::getNextIndex().