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

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

#include <ROMAEdgeBuilder.h>

Inheritance diagram for ROMAEdgeBuilder:
ROAbstractEdgeBuilder

Public Member Functions

 ROMAEdgeBuilder (bool useBoundariesOnOverride, bool interpolate)
 Constructor. More...
 
 ~ROMAEdgeBuilder ()
 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

unsigned 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 57 of file ROMAEdgeBuilder.h.

Constructor & Destructor Documentation

ROMAEdgeBuilder::ROMAEdgeBuilder ( bool  useBoundariesOnOverride,
bool  interpolate 
)

Constructor.

Parameters
[in]useBoundariesOnOverrideWhether edges shall use a boundary value if the requested is beyond known time scale
[in]interpolateWhether edges shall interpolate at interval boundaries
Todo:
useBoundariesOnOverride should not be a member of the edges

Definition at line 44 of file ROMAEdgeBuilder.cpp.

References ROEdge::setTimeLineOptions().

ROMAEdgeBuilder::~ROMAEdgeBuilder ( )

Destructor.

Definition at line 49 of file ROMAEdgeBuilder.cpp.

Member Function Documentation

ROEdge * ROMAEdgeBuilder::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 ROMAEdgeBuilder.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 90 of file ROAbstractEdgeBuilder.h.

References ROAbstractEdgeBuilder::myCurrentIndex.

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


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