Eclipse SUMO - Simulation of Urban MObility
GNENetHelper::PathCalculator Class Reference

class used to calculate paths in nets More...

#include <GNENetHelper.h>

Collaboration diagram for GNENetHelper::PathCalculator:

Public Member Functions

bool busStopConnected (const GNEAdditional *busStop, const GNEEdge *edge) const
 check if exist a path between the given busStop and edge (Either a valid lane or an acces) for pedestrians More...
 
std::vector< GNEEdge * > calculatePath (const SUMOVehicleClass vClass, const std::vector< GNEEdge * > &partialEdges) const
 calculate Dijkstra path between a list of partial edges More...
 
void calculateReachability (const SUMOVehicleClass vClass, GNEEdge *originEdge)
 calculate reachability for given edge More...
 
bool consecutiveEdgesConnected (const SUMOVehicleClass vClass, const GNEEdge *from, const GNEEdge *to) const
 check if exist a path between the two given consecutives edges for the given VClass More...
 
 PathCalculator (const GNENet *net)
 constructor More...
 
void updatePathCalculator ()
 update path calculator (called when SuperModes Demand or Data is selected) More...
 
 ~PathCalculator ()
 destructor More...
 

Private Attributes

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

Detailed Description

class used to calculate paths in nets

Definition at line 431 of file GNENetHelper.h.

Constructor & Destructor Documentation

◆ PathCalculator()

GNENetHelper::PathCalculator::PathCalculator ( const GNENet net)

◆ ~PathCalculator()

GNENetHelper::PathCalculator::~PathCalculator ( )

destructor

Definition at line 1045 of file GNENetHelper.cpp.

Member Function Documentation

◆ busStopConnected()

bool GNENetHelper::PathCalculator::busStopConnected ( const GNEAdditional busStop,
const GNEEdge edge 
) const

◆ calculatePath()

std::vector< GNEEdge * > GNENetHelper::PathCalculator::calculatePath ( const SUMOVehicleClass  vClass,
const std::vector< GNEEdge * > &  partialEdges 
) const

calculate Dijkstra path between a list of partial edges

Definition at line 1063 of file GNENetHelper.cpp.

References GNENet::retrieveEdge().

Referenced by GNEPathElements::calculatePathLanes(), GNEVehicle::isDemandElementValid(), GNEWalk::isDemandElementValid(), GNEFrameModuls::PathCreator::Path::Path(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().

Here is the caller graph for this function:

◆ calculateReachability()

◆ consecutiveEdgesConnected()

bool GNENetHelper::PathCalculator::consecutiveEdgesConnected ( const SUMOVehicleClass  vClass,
const GNEEdge from,
const GNEEdge to 
) const

check if exist a path between the two given consecutives edges for the given VClass

Definition at line 1160 of file GNENetHelper.cpp.

References GNEEdge::getGNEConnections(), GNEEdge::getLanes(), NBEdge::getLaneStruct(), GNEEdge::getNBEdge(), NBEdge::Lane::permissions, and SVC_PEDESTRIAN.

Referenced by GNEPersonTrip::getDemandElementProblem(), GNERide::getDemandElementProblem(), GNEVehicle::getDemandElementProblem(), and GNEWalk::getDemandElementProblem().

Here is the caller graph for this function:

◆ updatePathCalculator()

void GNENetHelper::PathCalculator::updatePathCalculator ( )

update path calculator (called when SuperModes Demand or Data is selected)

Definition at line 1051 of file GNENetHelper.cpp.

References NBRouterEdge::getTravelTimeStatic().

Referenced by GNENet::computeDemandElements().

Here is the caller graph for this function:

Field Documentation

◆ myDijkstraRouter

SUMOAbstractRouter<NBRouterEdge, NBVehicle>* GNENetHelper::PathCalculator::myDijkstraRouter
private

SUMO Abstract myDijkstraRouter.

Definition at line 460 of file GNENetHelper.h.

Referenced by PathCalculator().

◆ myNet

const GNENet* GNENetHelper::PathCalculator::myNet
private

pointer to net

Definition at line 457 of file GNENetHelper.h.

Referenced by PathCalculator().


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