SUMO - Simulation of Urban MObility
RODUAEdgeBuilder Class Reference

Interface for building instances of duarouter-edges. More...

#include <RODUAEdgeBuilder.h>

Inheritance diagram for RODUAEdgeBuilder:
Inheritance graph
Collaboration diagram for RODUAEdgeBuilder:
Collaboration graph

Public Member Functions

 RODUAEdgeBuilder ()
 Constructor. More...
 
 ~RODUAEdgeBuilder ()
 Destructor. More...
 
Methods to be implemented, inherited from ROAbstractEdgeBuilder
ROEdgebuildEdge (const std::string &name, RONode *from, RONode *to, const int priority)
 Builds an edge with the given name. More...
 

Protected Member Functions

int getNextIndex ()
 Returns the index of the edge to built. More...
 

Detailed Description

Interface for building instances of duarouter-edges.

This ROAbstractEdgeBuilder implementation builds edges for the duarouter (instances of ROEdge).

See also
ROEdge

Definition at line 58 of file RODUAEdgeBuilder.h.

Constructor & Destructor Documentation

RODUAEdgeBuilder::RODUAEdgeBuilder ( )

Constructor.

Definition at line 45 of file RODUAEdgeBuilder.cpp.

RODUAEdgeBuilder::~RODUAEdgeBuilder ( )

Destructor.

Definition at line 49 of file RODUAEdgeBuilder.cpp.

Member Function Documentation

ROEdge * RODUAEdgeBuilder::buildEdge ( const std::string &  name,
RONode from,
RONode to,
const int  priority 
)
virtual

Builds an edge with the given name.

This implementation builds a ROEdge.

Parameters
[in]nameThe name of the edge
[in]fromThe node the edge begins at
[in]toThe node the edge ends at
[in]priorityThe edge priority (road class)
Returns
A proper instance of the named edge
See also
ROEdge

Implements ROAbstractEdgeBuilder.

Definition at line 53 of file RODUAEdgeBuilder.cpp.

References ROAbstractEdgeBuilder::getNextIndex().

int ROAbstractEdgeBuilder::getNextIndex ( )
inlineprotectedinherited

Returns the index of the edge to built.

Returns
Next valid edge index

Definition at line 90 of file ROAbstractEdgeBuilder.h.

References ROAbstractEdgeBuilder::myCurrentIndex.

Referenced by AGStreet::Builder::buildEdge(), ROJTREdgeBuilder::buildEdge(), RODFEdgeBuilder::buildEdge(), ROMAEdgeBuilder::buildEdge(), and buildEdge().


The documentation for this class was generated from the following files: