|  | Eclipse SUMO - Simulation of Urban MObility
    | 
class used to calculate paths in nets More...
#include <GNENetHelper.h>
| 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 GNENet * | myNet | 
| pointer to net  More... | |
class used to calculate paths in nets
Definition at line 431 of file GNENetHelper.h.
| GNENetHelper::PathCalculator::PathCalculator | ( | const GNENet * | net | ) | 
constructor
Definition at line 1035 of file GNENetHelper.cpp.
References NBEdgeCont::getAllRouterEdges(), NBNetBuilder::getEdgeCont(), GNENet::getNetBuilder(), NBRouterEdge::getTravelTimeStatic(), myDijkstraRouter, and myNet.
| GNENetHelper::PathCalculator::~PathCalculator | ( | ) | 
destructor
Definition at line 1045 of file GNENetHelper.cpp.
| bool GNENetHelper::PathCalculator::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
Definition at line 1196 of file GNENetHelper.cpp.
References GNEHierarchicalElement::getChildAdditionals(), GNEEdge::getLanes(), NBEdge::getLaneStruct(), GNEEdge::getNBEdge(), GNEHierarchicalElement::getParentLanes(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), NBEdge::Lane::permissions, SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, and SVC_PEDESTRIAN.
| 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(), GNEWalk::isDemandElementValid(), GNEVehicle::isDemandElementValid(), GNEFrameModuls::PathCreator::Path::Path(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().
| void GNENetHelper::PathCalculator::calculateReachability | ( | const SUMOVehicleClass | vClass, | 
| GNEEdge * | originEdge | ||
| ) | 
calculate reachability for given edge
Definition at line 1110 of file GNENetHelper.cpp.
References GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEEdge::getLanes(), NBEdge::getLaneStruct(), NBEdge::getLength(), GNEEdge::getNBEdge(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentJunctions(), NBEdge::getSpeed(), SUMOVTypeParameter::VClassDefaultValues::maxSpeed, MIN2(), NBEdge::Lane::permissions, and GNECandidateElement::setReachability().
Referenced by GNEViewNet::onCmdLaneReachability().
| 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(), GNEWalk::getDemandElementProblem(), and GNEVehicle::getDemandElementProblem().
| 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().
| 
 | private | 
SUMO Abstract myDijkstraRouter.
Definition at line 460 of file GNENetHelper.h.
Referenced by PathCalculator().
| 
 | private |