Eclipse SUMO - Simulation of Urban MObility
GNEDemandElement::RouteCalculator Class Reference

class used to calculate routes in nets More...

#include <GNEDemandElement.h>

Collaboration diagram for GNEDemandElement::RouteCalculator:

Public Member Functions

bool areEdgesConsecutives (SUMOVehicleClass vClass, GNEEdge *from, GNEEdge *to) const
 check if exist a route between the two given consecutives edges More...
 
std::vector< GNEEdge * > calculateDijkstraRoute (GNENet *net, SUMOVehicleClass vClass, const std::vector< std::string > &partialEdgesStr) const
 calculate Dijkstra route between a list of partial edges (in string format) More...
 
std::vector< GNEEdge * > calculateDijkstraRoute (SUMOVehicleClass vClass, const std::vector< GNEEdge * > &partialEdges) const
 calculate Dijkstra route between a list of partial edges More...
 
 RouteCalculator (GNENet *net)
 constructor More...
 
void updateDijkstraRouter ()
 update DijkstraRoute (called when SuperMode Demand is selected) More...
 
 ~RouteCalculator ()
 destructor More...
 

Private Attributes

SUMOAbstractRouter< NBRouterEdge, NBVehicle > * myDijkstraRouter
 SUMO Abstract DijkstraRouter. More...
 
GNENetmyNet
 pointer to net More...
 

Detailed Description

class used to calculate routes in nets

Definition at line 170 of file GNEDemandElement.h.

Constructor & Destructor Documentation

◆ RouteCalculator()

GNEDemandElement::RouteCalculator::RouteCalculator ( GNENet net)

◆ ~RouteCalculator()

GNEDemandElement::RouteCalculator::~RouteCalculator ( )

destructor

Definition at line 207 of file GNEDemandElement.cpp.

Member Function Documentation

◆ areEdgesConsecutives()

◆ calculateDijkstraRoute() [1/2]

std::vector< GNEEdge * > GNEDemandElement::RouteCalculator::calculateDijkstraRoute ( GNENet net,
SUMOVehicleClass  vClass,
const std::vector< std::string > &  partialEdgesStr 
) const

calculate Dijkstra route between a list of partial edges (in string format)

Definition at line 268 of file GNEDemandElement.cpp.

References GNENet::retrieveEdge().

◆ calculateDijkstraRoute() [2/2]

◆ updateDijkstraRouter()

void GNEDemandElement::RouteCalculator::updateDijkstraRouter ( )

update DijkstraRoute (called when SuperMode Demand is selected)

Definition at line 213 of file GNEDemandElement.cpp.

References NBRouterEdge::getTravelTimeStatic().

Referenced by GNEViewNetHelper::EditModes::setDemandEditMode().

Field Documentation

◆ myDijkstraRouter

SUMOAbstractRouter<NBRouterEdge, NBVehicle>* GNEDemandElement::RouteCalculator::myDijkstraRouter
private

SUMO Abstract DijkstraRouter.

Definition at line 196 of file GNEDemandElement.h.

Referenced by RouteCalculator().

◆ myNet

GNENet* GNEDemandElement::RouteCalculator::myNet
private

pointer to net

Definition at line 193 of file GNEDemandElement.h.

Referenced by RouteCalculator().


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