SUMO - Simulation of Urban MObility
|
Interface for building instances of router-edges. More...
#include <ROAbstractEdgeBuilder.h>
Public Member Functions | |
ROAbstractEdgeBuilder () | |
Constructor. More... | |
virtual | ~ROAbstractEdgeBuilder () |
Destructor. More... | |
Methods to be implemented | |
virtual ROEdge * | buildEdge (const std::string &name, RONode *from, RONode *to, const int priority)=0 |
Builds an edge with the given name. More... | |
Protected Member Functions | |
unsigned int | getNextIndex () |
Returns the index of the edge to built. More... | |
Private Member Functions | |
ROAbstractEdgeBuilder & | operator= (const ROAbstractEdgeBuilder &src) |
Invalidated assignment operator. More... | |
ROAbstractEdgeBuilder (const ROAbstractEdgeBuilder &src) | |
Invalidated copy constructor. More... | |
Private Attributes | |
unsigned int | myCurrentIndex |
The next edge's index. More... | |
Interface for building instances of router-edges.
As the different routing algorithms may need certain types of edges, edges are build via a factory object derived from this class.
The only method to be implemented is "buildEdge" which builds an edge of the needed ROEdge-subtype.
The built edges are numbered in the order they are built, the current number (index) is stored in "myCurrentIndex" and the next to use may be obtained via "getNextIndex".
Definition at line 60 of file ROAbstractEdgeBuilder.h.
|
inline |
Constructor.
Definition at line 63 of file ROAbstractEdgeBuilder.h.
|
inlinevirtual |
Destructor.
Definition at line 67 of file ROAbstractEdgeBuilder.h.
|
private |
Invalidated copy constructor.
|
pure virtual |
Builds an edge with the given name.
[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) |
Implemented in RODUAEdgeBuilder, RODFEdgeBuilder, and ROJTREdgeBuilder.
Referenced by RONetHandler::parseDistrict(), and RONetHandler::parseEdge().
|
inlineprotected |
Returns the index of the edge to built.
Definition at line 89 of file ROAbstractEdgeBuilder.h.
References myCurrentIndex.
Referenced by ROJTREdgeBuilder::buildEdge(), RODFEdgeBuilder::buildEdge(), and RODUAEdgeBuilder::buildEdge().
|
private |
Invalidated assignment operator.
|
private |
The next edge's index.
Definition at line 96 of file ROAbstractEdgeBuilder.h.
Referenced by getNextIndex().