SUMO - Simulation of Urban MObility
ROJTREdgeBuilder Class Reference

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

#include <ROJTREdgeBuilder.h>

Inheritance diagram for ROJTREdgeBuilder:
Inheritance graph
Collaboration diagram for ROJTREdgeBuilder:
Collaboration graph

Public Member Functions

 ROJTREdgeBuilder ()
 Constructor. More...
 
 ~ROJTREdgeBuilder ()
 Destructor. More...
 
Methods 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 jtrrouter-edges.

This ROAbstractEdgeBuilder implementation builds edges for the jtrrouter (instances of ROJTREdge).

See also
ROJTREdge

Definition at line 55 of file ROJTREdgeBuilder.h.

Constructor & Destructor Documentation

◆ ROJTREdgeBuilder()

ROJTREdgeBuilder::ROJTREdgeBuilder ( )

Constructor.

Definition at line 39 of file ROJTREdgeBuilder.cpp.

◆ ~ROJTREdgeBuilder()

ROJTREdgeBuilder::~ROJTREdgeBuilder ( )

Destructor.

Definition at line 42 of file ROJTREdgeBuilder.cpp.

Member Function Documentation

◆ buildEdge()

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

Builds an edge with the given name.

This implementation builds a ROJTREdge.

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
ROJTREdge

Implements ROAbstractEdgeBuilder.

Definition at line 46 of file ROJTREdgeBuilder.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 89 of file ROAbstractEdgeBuilder.h.

References ROAbstractEdgeBuilder::myCurrentIndex.

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


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