SUMO - Simulation of Urban MObility

RORouteDef_OrigDest Class Reference

#include <RORouteDef_OrigDest.h>

Inheritance diagram for RORouteDef_OrigDest:
RORouteDef ReferencedItem Named

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
 Builds the current route from the given information (perform routing, here)
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 std::string & getID () const
 Returns the id.
bool isSaved () const throw ()
 Returns the information whether this item was already saved.
void markSaved () throw ()
 Marks the item as saved.
 RORouteDef_OrigDest (const std::string &id, const RGBColor *const color, const ROEdge *from, const ROEdge *to, bool removeFirst=false) throw ()
 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 () throw ()
 Destructor.

Protected Member Functions

const RGBColor * copyColorIfGiven () const throw ()

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.
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.

Detailed Description

A route definition where only the begin and the end edge are given.

Definition at line 51 of file RORouteDef_OrigDest.h.


Constructor & Destructor Documentation

RORouteDef_OrigDest::RORouteDef_OrigDest ( const std::string &  id,
const RGBColor *const  color,
const ROEdge *  from,
const ROEdge *  to,
bool  removeFirst = false 
) throw ()

Constructor.

Definition at line 51 of file RORouteDef_OrigDest.cpp.

Referenced by copy().

RORouteDef_OrigDest::~RORouteDef_OrigDest ( ) throw () [virtual]

Destructor.

Definition at line 60 of file RORouteDef_OrigDest.cpp.

References myCurrent.

RORouteDef_OrigDest::RORouteDef_OrigDest ( const RORouteDef_OrigDest &  src) [private]

Invalidated copy constructor.


Member Function Documentation

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 79 of file RORouteDef_OrigDest.cpp.

References RORoute::getEdgeVector(), myCurrent, myStartTime, SUMOAbstractRouter< E, V >::recomputeCosts(), and RORoute::setCosts().

RORoute * RORouteDef_OrigDest::buildCurrentRoute ( 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 66 of file RORouteDef_OrigDest.cpp.

References SUMOAbstractRouter< E, V >::compute(), RORouteDef::copyColorIfGiven(), myFrom, Named::myID, myRemoveFirst, and myTo.

RORouteDef * RORouteDef_OrigDest::copy ( const std::string &  id) const [virtual]

Returns a copy of the route definition.

Implements RORouteDef.

Definition at line 88 of file RORouteDef_OrigDest.cpp.

References RORouteDef::copyColorIfGiven(), myFrom, myRemoveFirst, myTo, and RORouteDef_OrigDest().

const RGBColor * RORouteDef::copyColorIfGiven ( ) const throw () [protected, inherited]
const RGBColor* RORouteDef::getColor ( ) const [inline, inherited]

Returns the color of the route.

Definition at line 92 of file RORouteDef.h.

References RORouteDef::myColor.

const std::string& Named::getID ( ) const [inline, inherited]

Returns the id.

Returns:
The stored id

Reimplemented in MS_E2_ZS_CollectorOverLanes.

Definition at line 59 of file Named.h.

References Named::myID.

Referenced by RORouteDef_Alternatives::addAlternative(), MSNet::addBusStop(), NLHandler::addConnection(), NBLoadedSUMOTLDef::addConnection(), NIImporter_OpenDrive::addE2EConnectionsSecure(), NIImporter_SUMO::addPhase(), NBDistrict::addSink(), NBDistrict::addSource(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), NIVisumTL::build(), RORouteDef_Complete::buildCurrentRoute(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), NBNodeCont::buildOffRamp(), NBNodeCont::buildOnRamp(), ODDistrictHandler::closeDistrict(), NBTrafficLightDefinition::collectEdges(), NBOwnTLDef::collectLinks(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), NBTrafficLightLogicCont::computeSingleLogic(), NBEdge::connections_sorter(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSVTypeProbe::execute(), Command_SaveTLSSwitches::execute(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), MSNet::getBusStopID(), NIImporter_VISUM::getNamedEdgeContinuating(), NLTriggerBuilder::getPosition(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), MSUnboundActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), NIImporter_OpenDrive::loadNetwork(), MSLane::moveCritical(), MSVehicle::MSVehicle(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), Named::ComparatorIdLess::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(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_InductionLoop::processGet(), NWWriter_SUMO::prohibitionConnection(), NBNodeCont::remapEdge(), NBLoadedSUMOTLDef::removeConnection(), NBNode::removeDummyEdges(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBConnection::replaceFrom(), NBConnection::replaceTo(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), MSLane::setCritical(), NBOwnTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), RORDLoader_SUMOBase::startRoute(), 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(), and MSRouteProbe::writeXMLOutput().

bool ReferencedItem::isSaved ( ) const throw () [inline, inherited]

Returns the information whether this item was already saved.

Returns:
Whether this item was saved

Definition at line 58 of file ReferencedItem.h.

References ReferencedItem::myWasSaved.

Referenced by RONet::computeRoute().

void ReferencedItem::markSaved ( ) throw () [inline, inherited]

Marks the item as saved.

Definition at line 65 of file ReferencedItem.h.

References ReferencedItem::myWasSaved.

RORouteDef_OrigDest& RORouteDef_OrigDest::operator= ( const RORouteDef_OrigDest &  src) [private]

Invalidated assignment operator.

void Named::setID ( const std::string &  newID) [inline, inherited]

resets the id

Definition at line 65 of file Named.h.

References Named::myID.

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.

Parameters:
[in]devThe device to write the route into
[in]asAlternativesWhether the route shall be saved as route alternatives
Returns:
The same device for further usage

Implements RORouteDef.

Definition at line 95 of file RORouteDef_OrigDest.cpp.

References myCurrent, and RORoute::writeXMLDefinition().


Field Documentation

The complete route (after building)

Definition at line 82 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 79 of file RORouteDef_OrigDest.h.

Referenced by buildCurrentRoute(), and copy().

Information whether the first edge shall be removed.

Definition at line 89 of file RORouteDef_OrigDest.h.

Referenced by buildCurrentRoute(), and copy().

The begin of the trip.

Definition at line 85 of file RORouteDef_OrigDest.h.

Referenced by addAlternative().

const ROEdge * RORouteDef_OrigDest::myTo [protected]

Definition at line 79 of file RORouteDef_OrigDest.h.

Referenced by buildCurrentRoute(), and copy().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines