Eclipse SUMO - Simulation of Urban MObility
|
Interface for building instances of router-edges. More...
#include <ROAbstractEdgeBuilder.h>
Public Member Functions | |
ROAbstractEdgeBuilder () | |
Constructor. | |
virtual | ~ROAbstractEdgeBuilder () |
Destructor. | |
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. | |
Protected Member Functions | |
int | getNextIndex () |
Returns the index of the edge to built. | |
Private Member Functions | |
ROAbstractEdgeBuilder & | operator= (const ROAbstractEdgeBuilder &src) |
Invalidated assignment operator. | |
ROAbstractEdgeBuilder (const ROAbstractEdgeBuilder &src) | |
Invalidated copy constructor. | |
Private Attributes | |
int | myCurrentIndex |
The next edge's index. | |
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 51 of file ROAbstractEdgeBuilder.h.
|
inline |
Constructor.
Definition at line 54 of file ROAbstractEdgeBuilder.h.
|
inlinevirtual |
Destructor.
Definition at line 58 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 AGStreet::Builder, RODFEdgeBuilder, RODUAEdgeBuilder, ROJTREdgeBuilder, and ROMAEdgeBuilder.
Referenced by RONet::addJunctionTaz(), RONetHandler::parseDistrict(), and RONetHandler::parseEdge().
|
inlineprotected |
Returns the index of the edge to built.
Definition at line 80 of file ROAbstractEdgeBuilder.h.
References myCurrentIndex.
Referenced by AGStreet::Builder::buildEdge(), RODFEdgeBuilder::buildEdge(), RODUAEdgeBuilder::buildEdge(), ROJTREdgeBuilder::buildEdge(), and ROMAEdgeBuilder::buildEdge().
|
private |
Invalidated assignment operator.
|
private |
The next edge's index.
Definition at line 87 of file ROAbstractEdgeBuilder.h.
Referenced by getNextIndex().