![]() |
SUMO - Simulation of Urban MObility
|
Base class for a vehicle's route definition. More...
#include <RORouteDef.h>
Data Structures | |
struct | ComparatorProbability |
Public Member Functions | |
void | addAlternative (SUMOAbstractRouter< ROEdge, ROVehicle > &router, const ROVehicle *const, RORoute *current, SUMOTime begin) |
Adds an alternative to the list of routes. More... | |
void | addAlternativeDef (const RORouteDef *alternative) |
Adds an alternative loaded from the file. More... | |
void | addLoadedAlternative (RORoute *alternative) |
Adds a single alternative loaded from the file An alternative may also be generated during DUA. More... | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
RORoute * | buildCurrentRoute (SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime begin, const ROVehicle &veh) const |
Triggers building of the complete route (via preComputeCurrentRoute) or returns precomputed route. More... | |
RORouteDef * | copy (const std::string &id, const SUMOTime stopOffset) const |
Returns a deep copy of the route definition. More... | |
RORouteDef * | copyOrigDest (const std::string &id) const |
Returns a origin-destination copy of the route definition. More... | |
const ROEdge * | getDestination () const |
const RORoute * | getFirstRoute () const |
const std::string & | getID () const |
Returns the id. More... | |
SUMOReal | getOverallProb () const |
Returns the sum of the probablities of the contained routes. More... | |
void | preComputeCurrentRoute (SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime begin, const ROVehicle &veh) const |
Builds the complete route (or chooses her from the list of alternatives, when existing) More... | |
bool | repairCurrentRoute (SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime begin, const ROVehicle &veh, ConstROEdgeVector oldEdges, ConstROEdgeVector &newEdges) const |
Builds the complete route (or chooses her from the list of alternatives, when existing) More... | |
RORouteDef (const std::string &id, const unsigned int lastUsed, const bool tryRepair, const bool mayBeDisconnected) | |
Constructor. More... | |
void | setID (const std::string &newID) |
resets the id More... | |
OutputDevice & | writeXMLDefinition (OutputDevice &dev, const ROVehicle *const veh, bool asAlternatives, bool withExitTimes) const |
Saves the built route / route alternatives. More... | |
virtual | ~RORouteDef () |
Destructor. More... | |
Static Public Member Functions | |
template<class T > | |
static std::string | getIDSecure (const T *obj, const std::string &fallBack="NULL") |
get an identifier for Named-like object which may be Null More... | |
static void | setUsingJTRR () |
Protected Attributes | |
std::vector< RORoute * > | myAlternatives |
The alternatives. More... | |
std::string | myID |
The name of the object. More... | |
unsigned int | myLastUsed |
Index of the route used within the last step. More... | |
const bool | myMayBeDisconnected |
bool | myNewRoute |
Information whether a new route was generated. More... | |
RORoute * | myPrecomputed |
precomputed route for out-of-order computation More... | |
std::set< RORoute * > | myRouteRefs |
Routes which are deleted someplace else. More... | |
const bool | myTryRepair |
Static Protected Attributes | |
static bool | myUsingJTRR |
Private Member Functions | |
RORouteDef & | operator= (const RORouteDef &src) |
Invalidated assignment operator. More... | |
RORouteDef (const RORouteDef &src) | |
Invalidated copy constructor. More... | |
Base class for a vehicle's route definition.
This class resembles what a vehicle knows about his route when being loaded into a router. Whether it is just the origin and the destination, the whole route through the network or even a route with alternatives depends on the derived class.
Definition at line 63 of file RORouteDef.h.
RORouteDef::RORouteDef | ( | const std::string & | id, |
const unsigned int | lastUsed, | ||
const bool | tryRepair, | ||
const bool | mayBeDisconnected | ||
) |
Constructor.
[in] | id | The id of the route |
[in] | color | The color of the route |
Definition at line 63 of file RORouteDef.cpp.
Referenced by copy(), copyOrigDest(), and RORouteDef::ComparatorProbability::operator()().
|
virtual |
Destructor.
Definition at line 70 of file RORouteDef.cpp.
References myAlternatives, and myRouteRefs.
|
private |
Invalidated copy constructor.
void RORouteDef::addAlternative | ( | SUMOAbstractRouter< ROEdge, ROVehicle > & | router, |
const ROVehicle * const | veh, | ||
RORoute * | current, | ||
SUMOTime | begin | ||
) |
Adds an alternative to the list of routes.
(This may be the new route)
Definition at line 288 of file RORouteDef.cpp.
References RouteCostCalculator< R, E, V >::getCalculator(), ROVehicle::getDepartureTime(), RORoute::getEdgeVector(), Named::getID(), RORoutable::getID(), RORoute::getProbability(), RouteCostCalculator< R, E, V >::keepRoutes(), myAlternatives, myLastUsed, myNewRoute, myTryRepair, RandHelper::rand(), SUMOAbstractRouter< E, V >::recomputeCosts(), RORoute::setCosts(), RORoute::setProbability(), and SUMOReal.
Referenced by ROVehicle::computeRoute().
void RORouteDef::addAlternativeDef | ( | const RORouteDef * | alternative | ) |
Adds an alternative loaded from the file.
Definition at line 86 of file RORouteDef.cpp.
References myAlternatives, and myRouteRefs.
Referenced by RORouteHandler::closeRoute(), and RORouteHandler::openRouteDistribution().
void RORouteDef::addLoadedAlternative | ( | RORoute * | alternative | ) |
Adds a single alternative loaded from the file An alternative may also be generated during DUA.
Definition at line 80 of file RORouteDef.cpp.
References myAlternatives.
Referenced by RORouteHandler::closeRoute(), ROPerson::computeIntermodal(), copy(), and copyOrigDest().
|
inlineinherited |
Adds this object to the given container.
Definition at line 126 of file Named.h.
References Named::StoringVisitor::add().
RORoute * RORouteDef::buildCurrentRoute | ( | SUMOAbstractRouter< ROEdge, ROVehicle > & | router, |
SUMOTime | begin, | ||
const ROVehicle & | veh | ||
) | const |
Triggers building of the complete route (via preComputeCurrentRoute) or returns precomputed route.
Definition at line 95 of file RORouteDef.cpp.
References myPrecomputed, and preComputeCurrentRoute().
Referenced by ROVehicle::computeRoute().
RORouteDef * RORouteDef::copy | ( | const std::string & | id, |
const SUMOTime | stopOffset | ||
) | const |
Returns a deep copy of the route definition.
The resulting route definition contains copies of all routes contained in this one
[in] | id | The id for the new route definition |
[in] | stopOffset | The offset time for "until"-stops defined in the original route |
Definition at line 410 of file RORouteDef.cpp.
References addLoadedAlternative(), RORoute::addStopOffset(), RORoute::getColor(), RORoute::getEdgeVector(), RORoute::getStops(), myAlternatives, myMayBeDisconnected, myTryRepair, RORouteDef(), and SUMOReal.
Referenced by RONet::checkFlows(), RORouteHandler::closeVehicle(), and getFirstRoute().
RORouteDef * RORouteDef::copyOrigDest | ( | const std::string & | id | ) | const |
Returns a origin-destination copy of the route definition.
The resulting route definition contains only a single route with origin and destination edge copied from this one
[in] | id | The id for the new route definition |
Definition at line 397 of file RORouteDef.cpp.
References addLoadedAlternative(), RORoute::getColor(), RORoute::getFirst(), RORoute::getLast(), RORoute::getStops(), myAlternatives, and RORouteDef().
Referenced by getFirstRoute().
const ROEdge * RORouteDef::getDestination | ( | ) | const |
Definition at line 375 of file RORouteDef.cpp.
References myAlternatives.
|
inline |
Definition at line 108 of file RORouteDef.h.
References copy(), copyOrigDest(), getOverallProb(), myAlternatives, SUMOReal, and writeXMLDefinition().
Referenced by ROVehicle::addStop(), ROVehicle::getDepartEdge(), and ROVehicle::ROVehicle().
|
inlineinherited |
Returns the id.
Definition at line 65 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), IntermodalRouter< E, L, N, V >::addAccess(), NLTriggerBuilder::addAccess(), addAlternative(), MSLane::addApproachingLane(), MSNet::addBusStop(), MSNet::addChargingStation(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSNet::addContainerStop(), NIXMLConnectionsHandler::addCrossing(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), ROVehicle::addStop(), MSVehicle::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciBusOrContainerStop(), MSVehicle::addTraciStop(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNEConnector::buildIinternalLanes(), GNETLSEditor::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), MSSwarmTrafficLightLogic::choosePolicy(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), NLDetectorBuilder::convUncontE2PosLength(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), GUINet::createTLWrapper(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), NIVissimDistrictConnection::dict_BuildDistricts(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSE3Collector::enter(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), TraCIServerAPI_Vehicle::findCloserLane(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), MSNet::getChargingStationID(), NBEdge::getConnection(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), GNEEdge::getDest(), RODFNet::getDetectorEdge(), MSMeanData::getEdgeID(), MSE2Collector::getEstimateQueueLength(), NBEdge::getFirstNonPedestrianLane(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), GNEEdge::getSource(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollision(), NBEdgeCont::ignoreFilterMatch(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), IntermodalNetwork< E, L, N, V >::IntermodalNetwork(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), RODFNet::isSource(), MSSOTLTrafficLightLogic::isThresholdPassed(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), ODDistrictCont::makeDistricts(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_BTsender::notifyMove(), MSE2Collector::notifyMove(), GUIViewTraffic::onGamingClick(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSEdge::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(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_JE2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSRightOfWayJunction::postloadInit(), AGStreet::print(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_ArealDetector::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckPostProcessConnections(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNodeCont::removeIsolatedRoads(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), repairCurrentRoute(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), MSBaseVehicle::saveState(), MSLane::saveState(), MSDevice_Battery::setActualBatteryCapacity(), MSDevice_Battery::setAirDragCoefficient(), NBNodeCont::setAsTLControlled(), MSChargingStation::setChrgPower(), MSDevice_Battery::setConstantPowerIntake(), NBEdge::setControllingTLInformation(), MSChargingStation::setEfficency(), MSDevice_Battery::setFrontSurfaceArea(), MSDevice_Battery::setInternalMomentOfInertia(), GNEJunction::setLogicValid(), MSDevice_Battery::setMass(), MSDevice_Battery::setMaximumBatteryCapacity(), NIXMLEdgesHandler::setNodes(), MSDevice_Battery::setPowerMax(), MSDevice_Battery::setPropulsionEfficiency(), MSDevice_Battery::setRadialDragCoefficient(), MSDevice_Battery::setRecuperationEfficiency(), MSLink::setRequestInformation(), MSDevice_Battery::setRollDragCoefficient(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::updateCTS(), GNETLSEditor::updateDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSPModel_Striping::PState::walk(), MSLCM_JE2013::wantsChange(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::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(), writeInterval(), 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(), MSFCDExport::writeTransportable(), MSInductLoop::writeTypedXMLOutput(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 58 of file Named.h.
Referenced by operator<<(), and toString().
SUMOReal RORouteDef::getOverallProb | ( | ) | const |
Returns the sum of the probablities of the contained routes.
Definition at line 424 of file RORouteDef.cpp.
References myAlternatives, and SUMOReal.
Referenced by RORouteHandler::closeRouteDistribution(), and getFirstRoute().
|
private |
Invalidated assignment operator.
Referenced by RORouteDef::ComparatorProbability::operator()().
void RORouteDef::preComputeCurrentRoute | ( | SUMOAbstractRouter< ROEdge, ROVehicle > & | router, |
SUMOTime | begin, | ||
const ROVehicle & | veh | ||
) | const |
Builds the complete route (or chooses her from the list of alternatives, when existing)
Definition at line 105 of file RORouteDef.cpp.
References OptionsCont::getBool(), MsgHandler::getErrorInstance(), RORoutable::getID(), OptionsCont::getOptions(), MsgHandler::getWarningInstance(), MsgHandler::inform(), myAlternatives, Named::myID, myLastUsed, myMayBeDisconnected, myNewRoute, myPrecomputed, myTryRepair, repairCurrentRoute(), and WRITE_WARNING.
Referenced by buildCurrentRoute().
bool RORouteDef::repairCurrentRoute | ( | SUMOAbstractRouter< ROEdge, ROVehicle > & | router, |
SUMOTime | begin, | ||
const ROVehicle & | veh, | ||
ConstROEdgeVector | oldEdges, | ||
ConstROEdgeVector & | newEdges | ||
) | const |
Builds the complete route (or chooses her from the list of alternatives, when existing)
only ROJTRRouter is supposed to handle this type of input
Definition at line 173 of file RORouteDef.cpp.
References SUMOAbstractRouter< E, V >::compute(), OptionsCont::getBool(), MsgHandler::getErrorInstance(), Named::getID(), RORoutable::getID(), OptionsCont::getOptions(), ROVehicle::getStopEdges(), MsgHandler::getWarningInstance(), MsgHandler::inform(), myUsingJTRR, and WRITE_MESSAGE.
Referenced by preComputeCurrentRoute().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 73 of file Named.h.
References Named::myID.
Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().
|
inlinestatic |
OutputDevice & RORouteDef::writeXMLDefinition | ( | OutputDevice & | dev, |
const ROVehicle *const | veh, | ||
bool | asAlternatives, | ||
bool | withExitTimes | ||
) | const |
Saves the built route / route alternatives.
Writes the route into the given stream.
[in] | dev | The device to write the route into |
[in] | asAlternatives | Whether the route shall be saved as route alternatives |
Definition at line 381 of file RORouteDef.cpp.
References OutputDevice::closeTag(), myAlternatives, myLastUsed, OutputDevice::openTag(), SUMO_ATTR_LAST, SUMO_TAG_ROUTE_DISTRIBUTION, and OutputDevice::writeAttr().
Referenced by getFirstRoute(), and ROVehicle::saveAsXML().
|
protected |
The alternatives.
Definition at line 162 of file RORouteDef.h.
Referenced by addAlternative(), addAlternativeDef(), addLoadedAlternative(), copy(), copyOrigDest(), getDestination(), getFirstRoute(), getOverallProb(), preComputeCurrentRoute(), writeXMLDefinition(), and ~RORouteDef().
|
protectedinherited |
The name of the object.
Definition at line 133 of file Named.h.
Referenced by GUI_E2_ZS_CollectorOverLanes::buildCollector(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSActuatedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSCalibrator::init(), NBEdge::init(), MSCalibrator::myStartElement(), MSMeanData::openInterval(), preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
mutableprotected |
Index of the route used within the last step.
Definition at line 159 of file RORouteDef.h.
Referenced by addAlternative(), preComputeCurrentRoute(), and writeXMLDefinition().
|
protected |
Definition at line 171 of file RORouteDef.h.
Referenced by copy(), and preComputeCurrentRoute().
|
mutableprotected |
Information whether a new route was generated.
Definition at line 168 of file RORouteDef.h.
Referenced by addAlternative(), and preComputeCurrentRoute().
|
mutableprotected |
precomputed route for out-of-order computation
Definition at line 156 of file RORouteDef.h.
Referenced by buildCurrentRoute(), and preComputeCurrentRoute().
|
protected |
Routes which are deleted someplace else.
Definition at line 165 of file RORouteDef.h.
Referenced by addAlternativeDef(), and ~RORouteDef().
|
protected |
Definition at line 170 of file RORouteDef.h.
Referenced by addAlternative(), copy(), and preComputeCurrentRoute().
|
staticprotected |
Definition at line 173 of file RORouteDef.h.
Referenced by repairCurrentRoute(), and setUsingJTRR().