SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RODFEdgeBuilder Class Reference

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

#include <RODFEdgeBuilder.h>

Inheritance diagram for RODFEdgeBuilder:
ROAbstractEdgeBuilder

Public Member Functions

 RODFEdgeBuilder ()
 Constructor.
 ~RODFEdgeBuilder ()
 Destructor.
Methods to be implemented, inherited from ROAbstractEdgeBuilder
ROEdgebuildEdge (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.

Detailed Description

Interface for building instances of dfrouter-edges.

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

See also:
RODFEdge

Definition at line 56 of file RODFEdgeBuilder.h.


Constructor & Destructor Documentation

RODFEdgeBuilder::RODFEdgeBuilder ( )

Constructor.

Definition at line 43 of file RODFEdgeBuilder.cpp.

RODFEdgeBuilder::~RODFEdgeBuilder ( )

Destructor.

Definition at line 46 of file RODFEdgeBuilder.cpp.


Member Function Documentation

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

Builds an edge with the given name.

This implementation builds a RODFEdge.

Parameters:
[in]nameThe name of the edge
[in]fromThe node the edge begins at
[in]toThe node the edge ends at
Returns:
A proper instance of the named edge
See also:
RODFEdge

Implements ROAbstractEdgeBuilder.

Definition at line 50 of file RODFEdgeBuilder.cpp.

References ROAbstractEdgeBuilder::getNextIndex().

unsigned int ROAbstractEdgeBuilder::getNextIndex ( )
inlineprotectedinherited

Returns the index of the edge to built.

Returns:
Next valid edge index

Definition at line 88 of file ROAbstractEdgeBuilder.h.

References ROAbstractEdgeBuilder::myCurrentIndex.

Referenced by ROJTREdgeBuilder::buildEdge(), buildEdge(), and RODUAEdgeBuilder::buildEdge().


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