SUMO - Simulation of Urban MObility
|
#include <RORouteDef_OrigDest.h>
Public Member Functions | |
void | addAlternative (SUMOAbstractRouter< ROEdge, ROVehicle > &router, const ROVehicle *const, RORoute *current, SUMOTime begin) |
Adds the build route to the container. | |
RORoute * | buildCurrentRoute (SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime begin, const ROVehicle &veh) const |
Triggers building of the complete route (via preComputeCurrentRoute) or returns precomputed route. | |
RORouteDef * | copy (const std::string &id) const |
Returns a copy of the route definition. | |
const RGBColor * | getColor () const |
Returns the color of the route. | |
const ROEdge * | getDestination () const |
const std::string & | getID () const |
Returns the id. | |
bool | isSaved () const |
Returns the information whether this item was already saved. | |
void | markSaved () |
Marks the item as saved. | |
void | preComputeCurrentRoute (SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime begin, const ROVehicle &veh) const |
Builds the current route from the given information (perform routing, here) | |
RORouteDef_OrigDest (const std::string &id, const RGBColor *const color, const ROEdge *from, const ROEdge *to, bool removeFirst=false) | |
Constructor. | |
void | setID (const std::string &newID) |
resets the id | |
virtual OutputDevice & | writeXMLDefinition (SUMOAbstractRouter< ROEdge, ROVehicle > &router, OutputDevice &dev, const ROVehicle *const veh, bool asAlternatives, bool withExitTimes) const |
Saves the built route / route alternatives. | |
virtual | ~RORouteDef_OrigDest () |
Destructor. | |
Protected Member Functions | |
const RGBColor * | copyColorIfGiven () const |
Protected Attributes | |
const RGBColor *const | myColor |
The color the route shall have. | |
RORoute * | myCurrent |
The complete route (after building) | |
const ROEdge * | myFrom |
The origin and the destination edge of the route. | |
std::string | myID |
The name of the object. | |
RORoute * | myPrecomputed |
precomputed route for out-of-order computation | |
bool | myRemoveFirst |
Information whether the first edge shall be removed. | |
SUMOTime | myStartTime |
The begin of the trip. | |
const ROEdge * | myTo |
Private Member Functions | |
RORouteDef_OrigDest & | operator= (const RORouteDef_OrigDest &src) |
Invalidated assignment operator. | |
RORouteDef_OrigDest (const RORouteDef_OrigDest &src) | |
Invalidated copy constructor. |
A route definition where only the begin and the end edge are given.
Definition at line 53 of file RORouteDef_OrigDest.h.
RORouteDef_OrigDest::RORouteDef_OrigDest | ( | const std::string & | id, |
const RGBColor *const | color, | ||
const ROEdge * | from, | ||
const ROEdge * | to, | ||
bool | removeFirst = false |
||
) |
RORouteDef_OrigDest::~RORouteDef_OrigDest | ( | ) | [virtual] |
RORouteDef_OrigDest::RORouteDef_OrigDest | ( | const RORouteDef_OrigDest & | src | ) | [private] |
Invalidated copy constructor.
void RORouteDef_OrigDest::addAlternative | ( | SUMOAbstractRouter< ROEdge, ROVehicle > & | router, |
const ROVehicle * const | veh, | ||
RORoute * | current, | ||
SUMOTime | begin | ||
) | [virtual] |
Adds the build route to the container.
Here, the currently new route is added
Implements RORouteDef.
Definition at line 81 of file RORouteDef_OrigDest.cpp.
References RORoute::getEdgeVector(), myCurrent, myStartTime, SUMOAbstractRouter< E, V >::recomputeCosts(), and RORoute::setCosts().
RORoute * RORouteDef::buildCurrentRoute | ( | SUMOAbstractRouter< ROEdge, ROVehicle > & | router, |
SUMOTime | begin, | ||
const ROVehicle & | veh | ||
) | const [inherited] |
Triggers building of the complete route (via preComputeCurrentRoute) or returns precomputed route.
Definition at line 77 of file RORouteDef.cpp.
References RORouteDef::myPrecomputed, and RORouteDef::preComputeCurrentRoute().
Referenced by RONet::computeRoute().
RORouteDef * RORouteDef_OrigDest::copy | ( | const std::string & | id | ) | const [virtual] |
Returns a copy of the route definition.
Implements RORouteDef.
Definition at line 90 of file RORouteDef_OrigDest.cpp.
References RORouteDef::copyColorIfGiven(), myFrom, myRemoveFirst, myTo, and RORouteDef_OrigDest().
const RGBColor * RORouteDef::copyColorIfGiven | ( | ) | const [protected, inherited] |
Definition at line 68 of file RORouteDef.cpp.
References RORouteDef::myColor.
Referenced by copy(), RORouteDef_Complete::copy(), preComputeCurrentRoute(), RORouteDef_Alternatives::preComputeCurrentRoute(), and RORouteDef_Complete::preComputeCurrentRoute().
const RGBColor* RORouteDef::getColor | ( | ) | const [inline, inherited] |
Returns the color of the route.
Definition at line 98 of file RORouteDef.h.
References RORouteDef::myColor.
const ROEdge * RORouteDef_OrigDest::getDestination | ( | ) | const [virtual] |
const std::string& Named::getID | ( | ) | const [inline, inherited] |
Returns the id.
Reimplemented in MS_E2_ZS_CollectorOverLanes.
Definition at line 61 of file Named.h.
References Named::myID.
Referenced by MSDetectorControl::add(), ShapeContainer::add(), RORouteDef_Alternatives::addAlternative(), MSNet::addBusStop(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), NIImporter_OpenDrive::addE2EConnectionsSecure(), RONet::addNode(), NIImporter_SUMO::addPhase(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), NIVisumTL::build(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), NBNodeCont::buildOffRamp(), NBNodeCont::buildOnRamp(), ODDistrictHandler::closeDistrict(), NBTrafficLightDefinition::collectEdges(), NBOwnTLDef::collectLinks(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NBEdge::connections_sorter(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSE3Collector::enter(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), MSNet::getBusStopID(), NIImporter_VISUM::getNamedEdgeContinuating(), NLTriggerBuilder::getPosition(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), NBEdgeCont::ignoreFilterMatch(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), NIImporter_OpenDrive::loadNetwork(), MSLane::moveCritical(), MSVehicle::MSVehicle(), RORDLoader_SUMOBase::myCharacters(), NBOwnTLDef::myCompute(), NBLoadedTLDef::myCompute(), NIXMLTrafficLightsHandler::myEndElement(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_Tripinfo::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBContHelper::same_connection_edge_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(), NBLoadedTLDef::SignalGroup::patchTYellow(), RORouteDef_Complete::preComputeCurrentRoute(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Vehicle::processGet(), NWWriter_SUMO::prohibitionConnection(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), MSLane::setCritical(), NIXMLEdgesHandler::setNodes(), NBOwnTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), RORDLoader_SUMOBase::startRoute(), NBEdge::startShapeAt(), NIXMLConnectionsHandler::validateLaneInfo(), MSInstantInductLoop::write(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeJunction(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), MSInductLoop::writeTypedXMLOutput(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
bool ReferencedItem::isSaved | ( | ) | const [inline, inherited] |
Returns the information whether this item was already saved.
Definition at line 59 of file ReferencedItem.h.
References ReferencedItem::myWasSaved.
Referenced by RONet::computeRoute(), and ROVehicle::saveAllAsXML().
void ReferencedItem::markSaved | ( | ) | [inline, inherited] |
Marks the item as saved.
Definition at line 66 of file ReferencedItem.h.
References ReferencedItem::myWasSaved.
RORouteDef_OrigDest& RORouteDef_OrigDest::operator= | ( | const RORouteDef_OrigDest & | src | ) | [private] |
Invalidated assignment operator.
void RORouteDef_OrigDest::preComputeCurrentRoute | ( | SUMOAbstractRouter< ROEdge, ROVehicle > & | router, |
SUMOTime | begin, | ||
const ROVehicle & | veh | ||
) | const [virtual] |
Builds the current route from the given information (perform routing, here)
Implements RORouteDef.
Definition at line 68 of file RORouteDef_OrigDest.cpp.
References SUMOAbstractRouter< E, V >::compute(), RORouteDef::copyColorIfGiven(), myFrom, Named::myID, RORouteDef::myPrecomputed, myRemoveFirst, and myTo.
void Named::setID | ( | const std::string & | newID | ) | [inline, inherited] |
resets the id
Definition at line 67 of file Named.h.
References Named::myID.
Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().
OutputDevice & RORouteDef_OrigDest::writeXMLDefinition | ( | SUMOAbstractRouter< ROEdge, ROVehicle > & | router, |
OutputDevice & | dev, | ||
const ROVehicle *const | veh, | ||
bool | asAlternatives, | ||
bool | withExitTimes | ||
) | const [virtual] |
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 |
Implements RORouteDef.
Definition at line 97 of file RORouteDef_OrigDest.cpp.
References myCurrent, and RORoute::writeXMLDefinition().
const RGBColor* const RORouteDef::myColor [protected, inherited] |
The color the route shall have.
Definition at line 121 of file RORouteDef.h.
Referenced by RORouteDef::copyColorIfGiven(), RORouteDef::getColor(), RORouteDef_Complete::writeXMLDefinition(), RORouteDef_Alternatives::writeXMLDefinition(), and RORouteDef::~RORouteDef().
RORoute* RORouteDef_OrigDest::myCurrent [protected] |
The complete route (after building)
Definition at line 88 of file RORouteDef_OrigDest.h.
Referenced by addAlternative(), writeXMLDefinition(), and ~RORouteDef_OrigDest().
const ROEdge* RORouteDef_OrigDest::myFrom [protected] |
The origin and the destination edge of the route.
Definition at line 85 of file RORouteDef_OrigDest.h.
Referenced by copy(), and preComputeCurrentRoute().
std::string Named::myID [protected, inherited] |
The name of the object.
Reimplemented in MS_E2_ZS_CollectorOverLanes.
Definition at line 83 of file Named.h.
Referenced by NLDetectorBuilder::addE3Entry(), NLDetectorBuilder::addE3Exit(), NBEdge::computeEdgeShape(), Named::getID(), NBEdge::getLaneID(), NBEdge::init(), preComputeCurrentRoute(), RORouteDef_Alternatives::preComputeCurrentRoute(), RORouteDef_Complete::preComputeCurrentRoute(), MSRoute::release(), Named::setID(), NBEdge::splitGeometry(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), MSE3Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().
RORoute* RORouteDef::myPrecomputed [mutable, protected, inherited] |
precomputed route for out-of-order computation
Definition at line 124 of file RORouteDef.h.
Referenced by RORouteDef::buildCurrentRoute(), preComputeCurrentRoute(), RORouteDef_Alternatives::preComputeCurrentRoute(), and RORouteDef_Complete::preComputeCurrentRoute().
bool RORouteDef_OrigDest::myRemoveFirst [protected] |
Information whether the first edge shall be removed.
Definition at line 95 of file RORouteDef_OrigDest.h.
Referenced by copy(), and preComputeCurrentRoute().
SUMOTime RORouteDef_OrigDest::myStartTime [protected] |
The begin of the trip.
Definition at line 91 of file RORouteDef_OrigDest.h.
Referenced by addAlternative().
const ROEdge * RORouteDef_OrigDest::myTo [protected] |
Definition at line 85 of file RORouteDef_OrigDest.h.
Referenced by copy(), getDestination(), and preComputeCurrentRoute().