SUMO - Simulation of Urban MObility

RODUAEdgeBuilder Class Reference

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

#include <RODUAEdgeBuilder.h>

Inheritance diagram for RODUAEdgeBuilder:
ROAbstractEdgeBuilder

Public Member Functions

 RODUAEdgeBuilder (bool useBoundariesOnOverride, bool interpolate) throw ()
 Constructor.
 ~RODUAEdgeBuilder () throw ()
 Destructor.
Methods to be implemented, inherited from ROAbstractEdgeBuilder
ROEdge * buildEdge (const std::string &name, RONode *from, RONode *to) throw ()
 Builds an edge with the given name.

Protected Member Functions

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

Protected Attributes

bool myInterpolate
 Information whether to interpolate at interval boundaries.
bool myUseBoundariesOnOverride
 Information whether to use the first/last entry of the time in case it is too short.

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 54 of file RODUAEdgeBuilder.h.


Constructor & Destructor Documentation

RODUAEdgeBuilder::RODUAEdgeBuilder ( bool  useBoundariesOnOverride,
bool  interpolate 
) throw ()

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 41 of file RODUAEdgeBuilder.cpp.

RODUAEdgeBuilder::~RODUAEdgeBuilder ( ) throw ()

Destructor.

Definition at line 45 of file RODUAEdgeBuilder.cpp.


Member Function Documentation

ROEdge * RODUAEdgeBuilder::buildEdge ( const std::string &  name,
RONode *  from,
RONode *  to 
) throw () [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
Returns:
A proper instance of the named edge
See also:
ROEdge

Implements ROAbstractEdgeBuilder.

Definition at line 49 of file RODUAEdgeBuilder.cpp.

unsigned int ROAbstractEdgeBuilder::getNextIndex ( ) throw () [inline, protected, inherited]

Returns the index of the edge to built.

Returns:
Next valid edge index

Definition at line 87 of file ROAbstractEdgeBuilder.h.

References ROAbstractEdgeBuilder::myCurrentIndex.


Field Documentation

Information whether to interpolate at interval boundaries.

Definition at line 91 of file RODUAEdgeBuilder.h.

Information whether to use the first/last entry of the time in case it is too short.

Definition at line 88 of file RODUAEdgeBuilder.h.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines