Eclipse SUMO - Simulation of Urban MObility
ROMAEdgeBuilder Class Reference

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

#include <ROMAEdgeBuilder.h>

Inheritance diagram for ROMAEdgeBuilder:
[legend]
Collaboration diagram for ROMAEdgeBuilder:
[legend]

Public Member Functions

 ROMAEdgeBuilder ()
 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

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

Private Attributes

int myCurrentIndex
 The next edge's index. 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 47 of file ROMAEdgeBuilder.h.

Constructor & Destructor Documentation

◆ ROMAEdgeBuilder()

ROMAEdgeBuilder::ROMAEdgeBuilder ( )

Constructor.

Definition at line 31 of file ROMAEdgeBuilder.cpp.

◆ ~ROMAEdgeBuilder()

ROMAEdgeBuilder::~ROMAEdgeBuilder ( )

Destructor.

Definition at line 35 of file ROMAEdgeBuilder.cpp.

Member Function Documentation

◆ buildEdge()

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 39 of file ROMAEdgeBuilder.cpp.

References ROAbstractEdgeBuilder::getNextIndex().

◆ getNextIndex()

int ROAbstractEdgeBuilder::getNextIndex ( )
inlineprotectedinherited

Returns the index of the edge to built.

Returns
Next valid edge index

Definition at line 80 of file ROAbstractEdgeBuilder.h.

References ROAbstractEdgeBuilder::myCurrentIndex.

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

Here is the caller graph for this function:

Field Documentation

◆ myCurrentIndex

int ROAbstractEdgeBuilder::myCurrentIndex
privateinherited

The next edge's index.

Definition at line 87 of file ROAbstractEdgeBuilder.h.

Referenced by ROAbstractEdgeBuilder::getNextIndex().


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