SUMO - Simulation of Urban MObility
|
#include <MSRoute.h>
Public Member Functions | |
void | addParameter (const std::string &key, const std::string &value) |
Adds a parameter. More... | |
void | addParameter (const std::map< std::string, std::string > &mapArg) |
Adds all given parameter. More... | |
void | addParameter (const Parameterised &p) |
Adds all given parameter. More... | |
void | addReference () const |
increments the reference counter for the route More... | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
MSRouteIterator | begin () const |
Returns the begin of the list of edges to pass. More... | |
void | clearParameter () |
Clears the parameter map. More... | |
bool | contains (const MSEdge *const edge) const |
bool | containsAnyOf (const MSEdgeVector &edgelist) const |
MSRouteIterator | end () const |
Returns the end of the list of edges to pass. More... | |
const RGBColor & | getColor () const |
Returns the color. More... | |
SUMOReal | getCosts () const |
Returns the costs of the route. More... | |
SUMOReal | getDistanceBetween (SUMOReal fromPos, SUMOReal toPos, const MSEdge *fromEdge, const MSEdge *toEdge, bool includeInternal=true) const |
Compute the distance between 2 given edges on this route, including the length of internal lanes. Note, that for edges which contain loops: More... | |
SUMOReal | getDistanceBetween (SUMOReal fromPos, SUMOReal toPos, const MSRouteIterator &fromEdge, const MSRouteIterator &toEdge, bool includeInternal=true) const |
Compute the distance between 2 given edges on this route, including the length of internal lanes. This has the same semantics as above but uses iterators instead of edge points so looping routes are not an issue. More... | |
const ConstMSEdgeVector & | getEdges () const |
const std::string & | getID () const |
Returns the id. More... | |
const MSEdge * | getLastEdge () const |
returns the destination edge More... | |
const std::map< std::string, std::string > & | getMap () const |
Returns the inner key/value map. More... | |
const std::string & | getParameter (const std::string &key, const std::string &defaultValue) const |
Returns the value for a given key. More... | |
const std::vector < SUMOVehicleParameter::Stop > & | getStops () const |
Returns the stops. More... | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
MSRoute (const std::string &id, const ConstMSEdgeVector &edges, const bool isPermanent, const RGBColor *const c, const std::vector< SUMOVehicleParameter::Stop > &stops) | |
Constructor. More... | |
const MSEdge * | operator[] (int index) const |
void | release () const |
deletes the route if there are no further references to it More... | |
void | setCosts (SUMOReal costs) |
Sets the costs of the route. More... | |
void | setID (const std::string &newID) |
resets the id More... | |
int | size () const |
Returns the number of edges to pass. More... | |
int | writeEdgeIDs (OutputDevice &os, const MSEdge *const from, const MSEdge *const upTo=0) const |
Output the edge ids up to but not including the id of the given edge. More... | |
virtual | ~MSRoute () |
Destructor. More... | |
Static Public Member Functions | |
static void | checkDist (const std::string &id) |
Checks the distribution whether it is permanent and deletes it if not. More... | |
static void | clear () |
Clears the dictionary (delete all known routes, too) More... | |
static bool | dictionary (const std::string &id, const MSRoute *route) |
Adds a route to the dictionary. More... | |
static bool | dictionary (const std::string &id, RandomDistributor< const MSRoute * > *const routeDist, const bool permanent=true) |
Adds a route distribution to the dictionary. More... | |
static const MSRoute * | dictionary (const std::string &id, MTRand *rng=0) |
Returns the named route or a sample from the named distribution. More... | |
static RandomDistributor < const MSRoute * > * | distDictionary (const std::string &id) |
Returns the named route distribution. More... | |
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 | insertIDs (std::vector< std::string > &into) |
State I/O (mesosim only) | |
static void | dict_saveState (OutputDevice &out) |
Saves all known routes into the given stream. More... | |
Protected Attributes | |
std::string | myID |
The name of the object. More... | |
Private Types | |
typedef std::map< std::string, const MSRoute * > | RouteDict |
Definition of the dictionary container. More... | |
typedef std::map< std::string, std::pair< RandomDistributor < const MSRoute * > *, bool > > | RouteDistDict |
Definition of the dictionary container. More... | |
Private Member Functions | |
MSRoute & | operator= (const MSRoute &s) |
Private Attributes | |
const bool | myAmPermanent |
whether the route may be deleted after the last vehicle abandoned it More... | |
const RGBColor *const | myColor |
The color. More... | |
SUMOReal | myCosts |
The assigned or calculated costs. More... | |
ConstMSEdgeVector | myEdges |
The list of edges to pass. More... | |
int | myReferenceCounter |
Information by how many vehicles the route is used. More... | |
std::vector < SUMOVehicleParameter::Stop > | myStops |
List of the stops on the parsed route. More... | |
Static Private Attributes | |
static RouteDict | myDict |
The dictionary container. More... | |
static RouteDistDict | myDistDict |
The dictionary container. More... | |
|
private |
|
private |
MSRoute::MSRoute | ( | const std::string & | id, |
const ConstMSEdgeVector & | edges, | ||
const bool | isPermanent, | ||
const RGBColor *const | c, | ||
const std::vector< SUMOVehicleParameter::Stop > & | stops | ||
) |
Constructor.
Definition at line 63 of file MSRoute.cpp.
|
virtual |
|
inherited |
Adds a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 53 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by SUMORouteHandler::addParam(), NLHandler::addParam(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NBTrafficLightDefinition::compute(), NIImporter_OpenDrive::loadNetwork(), NIImporter_MATSim::EdgesHandler::myStartElement(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_POI::processSet(), TraCIServerAPI_TLS::processSet(), TraCIServerAPI_Polygon::processSet(), and TraCIServerAPI_Lane::processSet().
|
inherited |
Adds all given parameter.
[in] | mapArg | The keys/values to insert |
Definition at line 59 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Adds all given parameter.
[in] | p | The keys/values to insert |
Definition at line 67 of file Parameterised.cpp.
References Parameterised::myMap.
void MSRoute::addReference | ( | ) | const |
increments the reference counter for the route
Definition at line 103 of file MSRoute.cpp.
References myReferenceCounter.
Referenced by MSDevice_Vehroutes::addRoute(), MSRouteHandler::closeRoute(), MSRouteHandler::closeVehicle(), MSBaseVehicle::MSBaseVehicle(), MSDevice_Vehroutes::MSDevice_Vehroutes(), MSStateHandler::myStartElement(), MSRouteProbe::notifyEnter(), MSRouteHandler::openRouteDistribution(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), and MSBaseVehicle::replaceRouteEdges().
|
inlineinherited |
Adds this object to the given container.
in,filled] | cont The container to add this item to |
Definition at line 129 of file Named.h.
References Named::StoringVisitor::add().
MSRouteIterator MSRoute::begin | ( | ) | const |
Returns the begin of the list of edges to pass.
Definition at line 78 of file MSRoute.cpp.
References myEdges.
Referenced by MSRouteHandler::closeVehicle(), MSDevice_Tripinfo::computeLengthAndDuration(), GUIVehicle::drawRouteHelper(), GUIMEVehicle::drawRouteHelper(), MSCalibrator::execute(), MSDevice_Vehroutes::generateOutput(), MSEdge::getDepartLane(), MSVehicle::getRoutePosition(), MSBaseVehicle::hasValidRoute(), MSLane::isInsertionSuccess(), MSBaseVehicle::MSBaseVehicle(), MSVehicle::Influencer::postProcessVTD(), MSDevice_Routing::preInsertionReroute(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_Vehicle::processGet(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), MSBaseVehicle::replaceRouteEdges(), MSVehicle::resetRoutePosition(), MEVehicle::saveState(), MSVehicle::saveState(), MSBaseVehicle::succEdge(), MSRouteProbe::writeXMLOutput(), and MSDevice_Vehroutes::writeXMLRoute().
|
static |
Checks the distribution whether it is permanent and deletes it if not.
Definition at line 194 of file MSRoute.cpp.
References myDistDict.
Referenced by MSInsertionControl::determineCandidates(), MSRouteProbe::writeXMLOutput(), and MSBaseVehicle::~MSBaseVehicle().
|
static |
Clears the dictionary (delete all known routes, too)
Definition at line 178 of file MSRoute.cpp.
References myDict, and myDistDict.
Referenced by MSNet::clearAll().
|
inherited |
Clears the parameter map.
Definition at line 91 of file Parameterised.cpp.
References Parameterised::myMap.
|
inline |
Definition at line 110 of file MSRoute.h.
References myEdges.
Referenced by containsAnyOf(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSVehicle::replaceRoute(), and MEVehicle::replaceRoute().
bool MSRoute::containsAnyOf | ( | const MSEdgeVector & | edgelist | ) | const |
Definition at line 247 of file MSRoute.cpp.
References contains().
Referenced by MSTriggeredRerouter::getCurrentReroute(), and MSTriggeredRerouter::notifyEnter().
|
static |
Saves all known routes into the given stream.
[in] | os | The stream to write the routes into (binary) |
Definition at line 265 of file MSRoute.cpp.
References OutputDevice::closeTag(), myDict, myDistDict, OutputDevice::openTag(), SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_PROBS, SUMO_ATTR_ROUTES, SUMO_ATTR_STATE, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, and OutputDevice::writeAttr().
Referenced by MSStateHandler::saveState().
|
static |
Adds a route to the dictionary.
Returns true if the route could be added, false if a route (distribution) with the same name already exists.
[in] | id | the id for the new route |
[in] | route | pointer to the route object |
Definition at line 122 of file MSRoute.cpp.
References myDict, and myDistDict.
Referenced by MSRouteHandler::closeFlow(), MSRouteHandler::closeRoute(), MSRouteHandler::closeRouteDistribution(), MSRouteHandler::closeVehicle(), MSInsertionControl::determineCandidates(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSRouteProbe::MSRouteProbe(), MSStateHandler::myStartElement(), MSTriggeredRerouter::myStartElement(), MSRouteHandler::openRoute(), MSRouteHandler::openRouteDistribution(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_Route::processSet(), TraCIServerAPI_Vehicle::processSet(), MSBaseVehicle::replaceRouteEdges(), and MSRouteProbe::writeXMLOutput().
|
static |
Adds a route distribution to the dictionary.
Returns true if the distribution could be added, false if a route (distribution) with the same name already exists.
[in] | id | the id for the new route distribution |
[in] | routeDist | pointer to the distribution object |
[in] | permanent | whether the new route distribution survives more than one vehicle / flow |
Definition at line 135 of file MSRoute.cpp.
References myDict, and myDistDict.
Returns the named route or a sample from the named distribution.
Returns 0 if no route and no distribution with the given name exists or if the distribution exists and is empty.
[in] | id | the id of the route or the distribution |
Definition at line 148 of file MSRoute.cpp.
References myDict, and myDistDict.
|
static |
Returns the named route distribution.
Returns 0 if no route distribution with the given name exists.
[in] | id | the id of the route distribution |
Definition at line 165 of file MSRoute.cpp.
References myDistDict.
Referenced by MSDevice_Vehroutes::generateOutput(), and MSRouteProbe::MSRouteProbe().
MSRouteIterator MSRoute::end | ( | ) | const |
Returns the end of the list of edges to pass.
Definition at line 84 of file MSRoute.cpp.
References myEdges.
Referenced by MSVehicle::addStop(), GUIVehicle::drawRouteHelper(), GUIMEVehicle::drawRouteHelper(), MSCalibrator::execute(), MSVehicle::executeMove(), MSDevice_Tripinfo::generateOutput(), getDistanceBetween(), MSVehicle::getRerouteOrigin(), MEVehicle::hasArrived(), MSVehicle::hasArrived(), MSBaseVehicle::hasValidRoute(), MEVehicle::moveRoutePointer(), MSVehicle::planMoveInternal(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_Vehicle::processGet(), MSVehicle::resetRoutePosition(), MSVehicle::updateBestLanes(), MSVehicle::willPass(), and MSRouteProbe::writeXMLOutput().
const RGBColor & MSRoute::getColor | ( | ) | const |
Returns the color.
Definition at line 349 of file MSRoute.cpp.
References RGBColor::DEFAULT_COLOR, and myColor.
Referenced by MSBaseVehicle::replaceRouteEdges(), and GUIBaseVehicle::setFunctionalColor().
|
inline |
SUMOReal MSRoute::getDistanceBetween | ( | SUMOReal | fromPos, |
SUMOReal | toPos, | ||
const MSEdge * | fromEdge, | ||
const MSEdge * | toEdge, | ||
bool | includeInternal = true |
||
) | const |
Compute the distance between 2 given edges on this route, including the length of internal lanes. Note, that for edges which contain loops:
[in] | fromPos | position on the first edge, at wich the computed distance begins |
[in] | toPos | position on the last edge, at which the coumputed distance endsance |
[in] | fromEdge | edge at wich computation begins |
[in] | toEdge | edge at which distance computation shall stop |
[in] | includeInternal | Whether the lengths of internal edges shall be counted |
Definition at line 285 of file MSRoute.cpp.
Referenced by TraCIServerAPI_Vehicle::commandDistanceRequest(), TraCIServerAPI_Simulation::commandDistanceRequest(), MSDevice_Tripinfo::computeLengthAndDuration(), MSDevice_Vehroutes::generateOutput(), MSVehicle::getDistanceToPosition(), and TraCIServerAPI_Vehicle::processGet().
SUMOReal MSRoute::getDistanceBetween | ( | SUMOReal | fromPos, |
SUMOReal | toPos, | ||
const MSRouteIterator & | fromEdge, | ||
const MSRouteIterator & | toEdge, | ||
bool | includeInternal = true |
||
) | const |
Compute the distance between 2 given edges on this route, including the length of internal lanes. This has the same semantics as above but uses iterators instead of edge points so looping routes are not an issue.
[in] | fromPos | position on the first edge, at wich the computed distance begins |
[in] | toPos | position on the last edge, at which the coumputed distance endsance |
[in] | fromEdge | edge at wich computation begins |
[in] | toEdge | edge at which distance computation shall stop |
[in] | includeInternal | Whether the lengths of internal edges shall be counted |
Definition at line 307 of file MSRoute.cpp.
References end(), MSEdge::getLength(), max, SUMOReal, and UNUSED_PARAMETER.
|
inline |
Definition at line 128 of file MSRoute.h.
References myEdges.
Referenced by MSRouteHandler::closeVehicle(), TraCIServerAPI_Vehicle::processGet(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), MSBaseVehicle::replaceRouteEdges(), GUIBaseVehicle::setFunctionalColor(), TraCIServerAPI_Vehicle::vtdMap(), and TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition().
|
inlineinherited |
Returns the id.
Definition at line 66 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), PCPolyContainer::add(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), IntermodalRouter< E, L, N, V >::addAccess(), NLTriggerBuilder::addAccess(), RORouteDef::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(), NBEdge::addStraightConnections(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciBusOrContainerStop(), MSVehicle::addTraciStop(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::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(), GNETLSEditorFrame::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(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkRewindLinkLanes(), 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(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), NLDetectorBuilder::convUncontE2PosLength(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), GUINet::createTLWrapper(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), NIVissimDistrictConnection::dict_BuildDistricts(), NBEdge::divideOnEdges(), NBEdge::divideSelectedLanesOnEdges(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), METriggeredCalibrator::execute(), 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(), TraCIServerAPI_Vehicle::findCloserLane(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), GNEConnection::getAttribute(), MSVehicle::getBackPosition(), MSNet::getBusStopID(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSNet::getChargingStationID(), NBEdge::getConnection(), NBEdge::getConnectionRef(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), RODFNet::getDetectorEdge(), MSMeanData::getEdgeID(), MSE2Collector::getEstimateQueueLength(), NBEdge::getFirstNonPedestrianLane(), MSLane::getFollower(), MSLane::getFollowerOnConsecutive(), MSLane::getFollowersOnConsecutive(), GNEEdge::getGNEJunctionDest(), GNEEdge::getGNEJunctionSource(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), GUIVehicle::getParameterWindow(), GUILane::getParentName(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), NBEdgeCont::ignoreFilterMatch(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::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(), MSLane::isInsertionSuccess(), RODFNet::isSource(), MSSOTLTrafficLightLogic::isThresholdPassed(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), NBEdge::MainDirections::MainDirections(), ODDistrictCont::makeDistricts(), NBNodeCont::mapToNumericalIDs(), NBEdgeCont::mapToNumericalIDs(), GNEJunction::markAsModified(), 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(), MSCalibrator::VehicleRemover::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSE2Collector::notifyMove(), GUIViewTraffic::onGamingClick(), GNEViewNet::onLeftBtnPress(), 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_SL2015::patchSpeed(), MSLCM_LC2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSLane::planMovements(), MSRightOfWayJunction::postloadInit(), NBEdge::prepareEdgePriorities(), MSAbstractLaneChangeModel::primaryLaneChanged(), AGStreet::print(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_ArealDetector::processGet(), TraCIServerAPI_Lane::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNodeCont::removeIsolatedRoads(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), MSBaseVehicle::reroute(), MSLane::resetPartialOccupation(), NBEdge::restoreRestrictedLane(), GNEEdge::retrieveConnection(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), ROPerson::Ride::saveAsXML(), MSBaseVehicle::saveState(), MSLane::saveState(), MSDevice_Battery::setAirDragCoefficient(), NBNodeCont::setAsTLControlled(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), MSDevice_Battery::setConstantPowerIntake(), NBEdge::setControllingTLInformation(), MSChargingStation::setEfficency(), MSDevice_Battery::setFrontSurfaceArea(), MSDevice_Battery::setInternalMomentOfInertia(), GNEJunction::setLogicValid(), MSDevice_Battery::setMass(), MSDevice_Battery::setMaximumBatteryCapacity(), NIXMLEdgesHandler::setNodes(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSDevice_Battery::setPropulsionEfficiency(), MSDevice_Battery::setRadialDragCoefficient(), MSDevice_Battery::setRecuperationEfficiency(), MSLink::setRequestInformation(), MSDevice_Battery::setRollDragCoefficient(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSVehicle::updateBestLanes(), MSSOTLTrafficLightLogic::updateCTS(), GNETLSEditorFrame::updateDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSEmissionExport::write(), MSBatteryExport::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(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), MSE2Collector::writeXMLOutput(), MSInductLoop::writeXMLOutput(), and RONet::~RONet().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 59 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSLaneChanger::continueChange(), MSVehicle::getBackPositionOnLane(), MSVehicle::getCenterOnEdge(), MSLane::getFollowerOnConsecutive(), MSLane::getFollowersOnConsecutive(), MSVehicle::getLatOffset(), operator<<(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), toString(), MSCriticalFollowerDistanceInfo::toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().
const MSEdge * MSRoute::getLastEdge | ( | ) | const |
returns the destination edge
Definition at line 96 of file MSRoute.cpp.
References myEdges.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSBaseVehicle::calculateArrivalParams(), MSLane::isInsertionSuccess(), MSBaseVehicle::MSBaseVehicle(), MSTriggeredRerouter::notifyEnter(), MSDevice_Routing::preInsertionReroute(), and MSBaseVehicle::reroute().
|
inlineinherited |
Returns the inner key/value map.
Definition at line 107 of file Parameterised.h.
References Parameterised::myMap.
Referenced by NBTrafficLightDefinition::compute(), MSDevice_Vehroutes::generateOutput(), GUIPerson::getParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), TraCIServerAPI_TLS::processGet(), ROVehicle::saveAsXML(), ROPerson::saveAsXML(), SUMOVTypeParameter::write(), PointOfInterest::writeXML(), and SUMO::Polygon::writeXML().
|
inherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 81 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), MSSwarmTrafficLightLogic::getChangePlanProbability(), MSSOTLTrafficLightLogic::getDecayConstant(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Lane::processGet(), MSSOTLPolicyDesirability::readParameter(), and TraCIServerAPI_Vehicle::vtdMap().
const std::vector< SUMOVehicleParameter::Stop > & MSRoute::getStops | ( | ) | const |
Returns the stops.
Definition at line 358 of file MSRoute.cpp.
References myStops.
Referenced by MSBaseVehicle::addStops(), MSVehicle::replaceRoute(), and MSBaseVehicle::replaceRouteEdges().
|
static |
Definition at line 211 of file MSRoute.cpp.
References myDict, and myDistDict.
Referenced by TraCIServerAPI_Route::processGet().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 75 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Example::buildVehicleDevices(), and MSDevice::equippedByDefaultAssignmentOptions().
const MSEdge * MSRoute::operator[] | ( | int | index | ) | const |
Definition at line 259 of file MSRoute.cpp.
References myEdges.
void MSRoute::release | ( | ) | const |
deletes the route if there are no further references to it
Definition at line 109 of file MSRoute.cpp.
References myDict, Named::myID, and myReferenceCounter.
Referenced by MSDevice_Vehroutes::addRoute(), MSRouteHandler::closeVehicle(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), MSBaseVehicle::replaceRouteEdges(), MSBaseVehicle::~MSBaseVehicle(), and MSDevice_Vehroutes::~MSDevice_Vehroutes().
|
inline |
Sets the costs of the route.
[in] | costs | The new route costs |
Definition at line 174 of file MSRoute.h.
References myCosts.
Referenced by MSRouteHandler::closeRoute().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 74 of file Named.h.
References Named::myID.
Referenced by NBNodeCont::mapToNumericalIDs(), NBEdgeCont::mapToNumericalIDs(), NBNodeCont::rename(), and NBEdgeCont::rename().
int MSRoute::size | ( | ) | const |
Returns the number of edges to pass.
Definition at line 90 of file MSRoute.cpp.
References myEdges.
Referenced by GUIVehicle::drawRouteHelper(), MSEdge::getDepartLane(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_Vehicle::processGet(), MSBaseVehicle::replaceRouteEdges(), and MSDevice_Vehroutes::writeXMLRoute().
int MSRoute::writeEdgeIDs | ( | OutputDevice & | os, |
const MSEdge *const | from, | ||
const MSEdge *const | upTo = 0 |
||
) | const |
Output the edge ids up to but not including the id of the given edge.
[in] | os | The stream to write the routes into (binary) |
[in] | from | The first edge to be written |
[in] | upTo | The first edge that shall not be written |
Definition at line 226 of file MSRoute.cpp.
References myEdges.
Referenced by MSDevice_Vehroutes::writeXMLRoute().
|
private |
|
private |
|
private |
The assigned or calculated costs.
Definition at line 246 of file MSRoute.h.
Referenced by getCosts(), and setCosts().
|
staticprivate |
The dictionary container.
Definition at line 256 of file MSRoute.h.
Referenced by clear(), dict_saveState(), dictionary(), insertIDs(), and release().
|
staticprivate |
The dictionary container.
Definition at line 262 of file MSRoute.h.
Referenced by checkDist(), clear(), dict_saveState(), dictionary(), distDictionary(), and insertIDs().
|
private |
The list of edges to pass.
Definition at line 234 of file MSRoute.h.
Referenced by begin(), contains(), end(), getDistanceBetween(), getEdges(), getLastEdge(), operator[](), size(), and writeEdgeIDs().
|
protectedinherited |
The name of the object.
Definition at line 136 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(), MSCalibrator::init(), NBEdge::init(), MSLane::isInsertionSuccess(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), release(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
mutableprivate |
Information by how many vehicles the route is used.
Definition at line 240 of file MSRoute.h.
Referenced by addReference(), and release().
|
private |
List of the stops on the parsed route.
Definition at line 249 of file MSRoute.h.
Referenced by getStops().