SUMO - Simulation of Urban MObility
|
the edge type that is given to the internal router (SUMOAbstractRouter) More...
#include <PedestrianRouter.h>
Public Member Functions | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. | |
const E * | getEdge () const |
SUMOReal | getEffort (const PedestrianTrip< E, N > *const trip, SUMOReal time) const |
const std::string & | getID () const |
Returns the id. | |
bool | includeInRoute (bool allEdges) const |
void | setID (const std::string &newID) |
resets the id |
Static Public Member Functions | |
static void | cleanup () |
static size_t | dictSize () |
static PedestrianEdge * | getArrivalEdge (const E *e) |
Returns the arriving Pedestrian edge. | |
static const EdgePair & | getBothDirections (const E *e) |
Returns the pair of forward and backward edge. | |
static PedestrianEdge * | getDepartEdge (const E *e) |
Returns the departing Pedestrian edge. | |
static void | initPedestrianNetwork (size_t noE) |
Protected Attributes | |
std::string | myID |
The name of the object. |
Private Types | |
typedef std::pair < PedestrianEdge *, PedestrianEdge * > | EdgePair |
Private Member Functions | |
PedestrianEdge (unsigned int numericalID, const E *edge, const L *lane, bool forward, bool connector=false) |
Private Attributes | |
bool | myAmConnector |
the direction of this edge | |
const E * | myEdge |
the original edge | |
std::vector< PedestrianEdge * > | myFollowingEdges |
List of edges that may be approached from this edge. | |
bool | myForward |
the direction of this edge | |
const L * | myLane |
the original edge | |
unsigned int | myNumericalID |
the index in myEdgeDict |
Static Private Attributes | |
static std::map< const E *, EdgePair > | myBidiLookup |
retrieve the forward and backward edge for the given input edge E | |
static std::vector < PedestrianEdge > | myEdgeDict |
the edge dictionary | |
static std::map< const E *, EdgePair > | myFromToLookup |
retrieve the depart and arrival edge for the given input edge E |
The interface as required by SUMOAbstractRouter routes | |
static const PedestrianEdge * | dictionary (size_t index) |
Returns the PedstrianEdge with the given numericalID. | |
unsigned int | getNumericalID () const |
unsigned int | getNoFollowing () const |
PedestrianEdge * | getFollower (unsigned int i) const |
bool | prohibits (const PedestrianTrip< E, N > *const trip) const |
the edge type that is given to the internal router (SUMOAbstractRouter)
Definition at line 99 of file PedestrianRouter.h.
|
private |
Definition at line 100 of file PedestrianRouter.h.
|
inlineprivate |
Definition at line 323 of file PedestrianRouter.h.
Referenced by PedestrianEdge< E, L, N >::initPedestrianNetwork().
|
inlineinherited |
Adds this object to the given container.
in,filled] | cont The container to add this item to |
Definition at line 121 of file Named.h.
References Named::StoringVisitor::add().
|
inlinestatic |
Definition at line 110 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myBidiLookup, PedestrianEdge< E, L, N >::myEdgeDict, and PedestrianEdge< E, L, N >::myFromToLookup.
|
inlinestatic |
Returns the PedstrianEdge with the given numericalID.
Definition at line 260 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myEdgeDict.
Referenced by PedestrianEdge< E, L, N >::initPedestrianNetwork().
|
inlinestatic |
Definition at line 106 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myEdgeDict.
|
inlinestatic |
Returns the arriving Pedestrian edge.
Definition at line 243 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myFromToLookup.
Referenced by PedestrianRouter< E, L, N, DijkstraRouterTT_Direct< PedestrianEdge< E, L, N >, PedestrianTrip< E, N >, prohibited_withRestrictions< PedestrianEdge< E, L, N >, PedestrianTrip< E, N > > > >::compute(), and PedestrianEdge< E, L, N >::initPedestrianNetwork().
|
inlinestatic |
Returns the pair of forward and backward edge.
Definition at line 223 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myBidiLookup.
Referenced by PedestrianEdge< E, L, N >::initPedestrianNetwork(), and PedestrianRouter< E, L, N, DijkstraRouterTT_Direct< PedestrianEdge< E, L, N >, PedestrianTrip< E, N >, prohibited_withRestrictions< PedestrianEdge< E, L, N >, PedestrianTrip< E, N > > > >::prohibit().
|
inlinestatic |
Returns the departing Pedestrian edge.
Definition at line 233 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myFromToLookup.
Referenced by PedestrianRouter< E, L, N, DijkstraRouterTT_Direct< PedestrianEdge< E, L, N >, PedestrianTrip< E, N >, prohibited_withRestrictions< PedestrianEdge< E, L, N >, PedestrianTrip< E, N > > > >::compute(), and PedestrianEdge< E, L, N >::initPedestrianNetwork().
|
inline |
Definition at line 218 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myEdge.
|
inline |
Definition at line 289 of file PedestrianRouter.h.
References PedestrianTrip< E, N >::arrivalPos, PedestrianTrip< E, N >::departPos, PedestrianTrip< E, N >::departTime, PedestrianTrip< E, N >::from, Named::getID(), LINKSTATE_TL_RED, MAX2(), PedestrianEdge< E, L, N >::myAmConnector, PedestrianEdge< E, L, N >::myEdge, PedestrianEdge< E, L, N >::myForward, PedestrianEdge< E, L, N >::myLane, POSITION_EPS, PedestrianTrip< E, N >::speed, SUMOReal, TL_RED_PENALTY, and PedestrianTrip< E, N >::to.
|
inline |
Definition at line 269 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myFollowingEdges.
|
inlineinherited |
Returns the id.
Definition at line 60 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), Named::StoringVisitor::add(), MSDetectorControl::add(), RORouteDef::addAlternative(), MSNet::addBusStop(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), NIXMLConnectionsHandler::addCrossing(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), NIImporter_SUMO::addPhase(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NBNode::buildCrossings(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), NBNode::buildInnerEdges(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNode::buildWalkingAreas(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBTrafficLightDefinition::collectEdges(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), NLDetectorBuilder::convUncontE2PosLength(), GUINet::createTLWrapper(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSE3Collector::enter(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), NBEdge::getCrossingAngle(), RODFNet::getDetectorEdge(), MSMeanData::getEdgeID(), PedestrianEdge< E, L, N >::getEffort(), NBEdge::getFirstNonPedestrianLane(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), AGStreet::getName(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPModel_Striping::getNextLane(), GUIVehicle::getParameterWindow(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), NBEdgeCont::ignoreFilterMatch(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), MSTrafficLightLogic::init(), PedestrianEdge< E, L, N >::initPedestrianNetwork(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), RODFNet::isDestination(), RODFNet::isFalseSource(), RODFNet::isSource(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), NIImporter_OpenDrive::loadNetwork(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting(), NBOwnTLDef::myCompute(), NBLoadedTLDef::myCompute(), NIXMLTrafficLightsHandler::myEndElement(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_BTreceiver::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Example::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Person::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), GUIViewTraffic::onGamingClick(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), MSEdge::by_id_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_JE2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSRightOfWayJunction::postloadInit(), AGStreet::print(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processSet(), NWWriter_SUMO::prohibitionConnection(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckPostProcessConnections(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), PCPolyContainer::save(), RONet::saveAndRemoveRoutesUntil(), MSBaseVehicle::saveState(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), NIXMLEdgesHandler::setNodes(), MSLink::setRequestInformation(), NBOwnTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap_matchingEdgeLane(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSLCM_JE2013::wantsChange(), MSFCDExport::write(), MSEmissionExport::write(), MSInstantInductLoop::write(), NBSign::writeAsPOI(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSInductLoop::writeTypedXMLOutput(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inline |
Definition at line 265 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myFollowingEdges.
|
inline |
Definition at line 255 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myNumericalID.
|
inline |
Definition at line 214 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myAmConnector, and PedestrianEdge< E, L, N >::myEdge.
|
inlinestatic |
Definition at line 116 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::dictionary(), PedestrianEdge< E, L, N >::getArrivalEdge(), PedestrianEdge< E, L, N >::getBothDirections(), PedestrianEdge< E, L, N >::getDepartEdge(), Named::getID(), PedestrianEdge< E, L, N >::myBidiLookup, PedestrianEdge< E, L, N >::myEdgeDict, PedestrianEdge< E, L, N >::myFollowingEdges, PedestrianEdge< E, L, N >::myFromToLookup, and PedestrianEdge< E, L, N >::PedestrianEdge().
|
inline |
Definition at line 273 of file PedestrianRouter.h.
References PedestrianEdge< E, L, N >::myEdge, and PedestrianTrip< E, N >::node.
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 68 of file Named.h.
References Named::myID.
Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().
|
private |
the direction of this edge
Definition at line 345 of file PedestrianRouter.h.
Referenced by PedestrianEdge< E, L, N >::getEffort(), and PedestrianEdge< E, L, N >::includeInRoute().
|
staticprivate |
retrieve the forward and backward edge for the given input edge E
Definition at line 354 of file PedestrianRouter.h.
Referenced by PedestrianEdge< E, L, N >::cleanup(), PedestrianEdge< E, L, N >::getBothDirections(), and PedestrianEdge< E, L, N >::initPedestrianNetwork().
|
private |
the original edge
Definition at line 336 of file PedestrianRouter.h.
Referenced by PedestrianEdge< E, L, N >::getEdge(), PedestrianEdge< E, L, N >::getEffort(), PedestrianEdge< E, L, N >::includeInRoute(), and PedestrianEdge< E, L, N >::prohibits().
|
staticprivate |
the edge dictionary
Definition at line 351 of file PedestrianRouter.h.
Referenced by PedestrianEdge< E, L, N >::cleanup(), PedestrianEdge< E, L, N >::dictionary(), PedestrianEdge< E, L, N >::dictSize(), and PedestrianEdge< E, L, N >::initPedestrianNetwork().
|
private |
List of edges that may be approached from this edge.
Definition at line 348 of file PedestrianRouter.h.
Referenced by PedestrianEdge< E, L, N >::getFollower(), PedestrianEdge< E, L, N >::getNoFollowing(), and PedestrianEdge< E, L, N >::initPedestrianNetwork().
|
private |
the direction of this edge
Definition at line 342 of file PedestrianRouter.h.
Referenced by PedestrianEdge< E, L, N >::getEffort().
|
staticprivate |
retrieve the depart and arrival edge for the given input edge E
Definition at line 357 of file PedestrianRouter.h.
Referenced by PedestrianEdge< E, L, N >::cleanup(), PedestrianEdge< E, L, N >::getArrivalEdge(), PedestrianEdge< E, L, N >::getDepartEdge(), and PedestrianEdge< E, L, N >::initPedestrianNetwork().
|
protectedinherited |
The name of the object.
Definition at line 128 of file Named.h.
Referenced by GUI_E2_ZS_CollectorOverLanes::buildCollector(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), NBNode::computeNodeShape(), MSCalibrator::execute(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), MSCalibrator::init(), NBEdge::init(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), RORouteDef::repairCurrentRoute(), Named::setID(), NBEdge::splitGeometry(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
private |
the original edge
Definition at line 339 of file PedestrianRouter.h.
Referenced by PedestrianEdge< E, L, N >::getEffort().
|
private |
the index in myEdgeDict
Definition at line 333 of file PedestrianRouter.h.
Referenced by PedestrianEdge< E, L, N >::getNumericalID().