SUMO - Simulation of Urban MObility
|
An edge the jtr-router may route through. More...
#include <ROJTREdge.h>
Public Types | |
enum | EdgeType { ET_NORMAL, ET_DISTRICT, ET_SOURCE, ET_SINK, ET_INTERNAL } |
Possible types of edges. More... | |
Public Member Functions | |
void | addFollower (ROEdge *s, std::string dir="") |
Adds information about a connected edge. More... | |
void | addFollowerProbability (ROJTREdge *follower, SUMOTime begTime, SUMOTime endTime, SUMOReal probability) |
adds the information about the percentage of using a certain follower More... | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
ROJTREdge * | chooseNext (const ROVehicle *const veh, SUMOTime time) const |
Returns the next edge to use. More... | |
SUMOReal | getDistanceTo (const ROEdge *other) const |
optimistic distance heuristic for use in routing More... | |
const std::string & | getID () const |
Returns the id. More... | |
int | getPriority () const |
get edge priority (road class) More... | |
ROJTREdge (const std::string &id, RONode *from, RONode *to, unsigned int index, const int priority) | |
Constructor. More... | |
void | setID (const std::string &newID) |
resets the id More... | |
void | setTurnDefaults (const std::vector< SUMOReal > &defs) |
Sets the turning definition defaults. More... | |
~ROJTREdge () | |
Destructor. More... | |
Set-up methods | |
virtual void | addLane (ROLane *lane) |
Adds a lane to the edge while loading. More... | |
void | setType (EdgeType type) |
Sets the type of te edge. More... | |
void | buildTimeLines (const std::string &measure) |
Builds the internal representation of the travel time/effort. More... | |
Getter methods | |
EdgeType | getType () const |
Returns the type of the edge. More... | |
SUMOReal | getLength () const |
Returns the length of the edge. More... | |
unsigned int | getNumericalID () const |
Returns the index (numeric id) of the edge. More... | |
SUMOReal | getSpeed () const |
Returns the speed allowed on this edge. More... | |
unsigned int | getLaneNo () const |
Returns the number of lanes this edge has. More... | |
RONode * | getFromNode () const |
Returns the node this edge starts at. More... | |
RONode * | getToNode () const |
Returns the node this edge ends at. More... | |
bool | isConnectedTo (const ROEdge *const e) const |
returns the information whether this edge is directly connected to the given More... | |
bool | prohibits (const ROVehicle *const vehicle) const |
Returns whether this edge prohibits the given vehicle to pass it. More... | |
SVCPermissions | getPermissions () const |
bool | allFollowersProhibit (const ROVehicle *const vehicle) const |
Returns whether this edge succeding edges prohibit the given vehicle to pass them. More... | |
Methods for getting/setting travel time and cost information | |
void | addEffort (SUMOReal value, SUMOReal timeBegin, SUMOReal timeEnd) |
Adds a weight value. More... | |
void | addTravelTime (SUMOReal value, SUMOReal timeBegin, SUMOReal timeEnd) |
Adds a travel time value. More... | |
unsigned int | getNoFollowing () const |
Returns the number of edges this edge is connected to. More... | |
ROEdge * | getFollower (unsigned int pos) const |
Returns the edge at the given position from the list of reachable edges. More... | |
unsigned int | getNumApproaching () const |
Returns the number of edges this edge is connected to. More... | |
ROEdge * | getApproaching (unsigned int pos) const |
Returns the edge at the given position from the list of reachable edges. More... | |
SUMOReal | getEffort (const ROVehicle *const veh, SUMOReal time) const |
Returns the effort for this edge. More... | |
SUMOReal | getTravelTime (const ROVehicle *const veh, SUMOReal time) const |
Returns the travel time for this edge. More... | |
SUMOReal | getTravelTime (const SUMOReal maxSpeed, SUMOReal time) const |
Returns the travel time for this edge. More... | |
SUMOReal | getMinimumTravelTime (const ROVehicle *const veh) const |
Returns the travel time for this edge without using any stored timeLine. More... | |
SUMOReal | getCOEffort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getCO2Effort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getPMxEffort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getHCEffort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getNOxEffort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getFuelEffort (const ROVehicle *const veh, SUMOReal time) const |
SUMOReal | getNoiseEffort (const ROVehicle *const veh, SUMOReal time) const |
Static Public Member Functions | |
static ROEdge * | dictionary (size_t index) |
Returns the ROEdge at the index. More... | |
static size_t | dictSize () |
Returns the number of edges. More... | |
static void | setTimeLineOptions (bool useBoundariesOnOverrideTT, bool useBoundariesOnOverrideE, bool interpolate) |
Protected Member Functions | |
bool | getStoredEffort (SUMOReal time, SUMOReal &ret) const |
Retrieves the stored effort. More... | |
Protected Attributes | |
std::vector< ROEdge * > | myApproachingEdges |
List of edges that approached this edge. More... | |
SVCPermissions | myCombinedPermissions |
The list of allowed vehicle classes combined across lanes. More... | |
ValueTimeLine< SUMOReal > | myEfforts |
Container storing passing time varying over time for the edge. More... | |
std::vector< ROEdge * > | myFollowingEdges |
List of edges that may be approached from this edge. More... | |
RONode *const | myFromNode |
The nodes this edge is connecting. More... | |
std::string | myID |
The name of the object. More... | |
const unsigned int | myIndex |
The index (numeric id) of the edge. More... | |
std::vector< ROLane * > | myLanes |
This edge's lanes. More... | |
SUMOReal | myLength |
The length of the edge. More... | |
const int | myPriority |
The edge priority (road class) More... | |
SUMOReal | mySpeed |
The maximum speed allowed on this edge. More... | |
RONode *const *const | myToNode |
ValueTimeLine< SUMOReal > | myTravelTimes |
Container storing passing time varying over time for the edge. More... | |
EdgeType | myType |
The type of the edge. More... | |
bool | myUsingETimeLine |
Information whether the time line shall be used instead of the length value. More... | |
bool | myUsingTTTimeLine |
Information whether the time line shall be used instead of the length value. More... | |
Static Protected Attributes | |
static std::vector< ROEdge * > | myEdges |
static bool | myHaveEWarned = false |
Information whether the edge has reported missing weights. More... | |
static bool | myHaveTTWarned = false |
Information whether the edge has reported missing weights. More... | |
static bool | myInterpolate = false |
Information whether to interpolate at interval boundaries. More... | |
static bool | myUseBoundariesOnOverrideE = false |
Whether overriding weight boundaries shall be reported. More... | |
static bool | myUseBoundariesOnOverrideTT = false |
Whether overriding weight boundaries shall be reported. More... | |
Private Types | |
typedef std::map< ROJTREdge *, ValueTimeLine< SUMOReal > *, Named::ComparatorIdLess > | FollowerUsageCont |
Definition of a map that stores the probabilities of using a certain follower over time. More... | |
Private Member Functions | |
ROJTREdge & | operator= (const ROJTREdge &src) |
invalidated assignment operator More... | |
ROJTREdge (const ROJTREdge &src) | |
invalidated copy constructor More... | |
Private Attributes | |
FollowerUsageCont | myFollowingDefs |
Storage for the probabilities of using a certain follower over time. More... | |
std::vector< SUMOReal > | myParsedTurnings |
The defaults for turnings. More... | |
An edge the jtr-router may route through.
A router edge extended by the definition about the probability a vehicle chooses a certain following edge over time.
Definition at line 57 of file ROJTREdge.h.
|
private |
Definition of a map that stores the probabilities of using a certain follower over time.
Definition at line 113 of file ROJTREdge.h.
|
inherited |
Possible types of edges.
ROJTREdge::ROJTREdge | ( | const std::string & | id, |
RONode * | from, | ||
RONode * | to, | ||
unsigned int | index, | ||
const int | priority | ||
) |
Constructor.
[in] | id | The id of the edge |
[in] | from | The node the edge begins at |
[in] | to | The node the edge ends at |
[in] | index | The numeric id of the edge |
Definition at line 48 of file ROJTREdge.cpp.
ROJTREdge::~ROJTREdge | ( | ) |
|
private |
invalidated copy constructor
Adds a weight value.
[in] | value | The value to add |
[in] | timeBegin | The begin time of the interval the given value is valid for [s] |
[in] | timeEnd | The end time of the interval the given value is valid for [s] |
Definition at line 109 of file ROEdge.cpp.
References ValueTimeLine< T >::add(), ROEdge::myEfforts, and ROEdge::myUsingETimeLine.
Referenced by ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::addEdgeWeight().
|
virtual |
Adds information about a connected edge.
Makes this edge know the given following edge. Calls ROEdge::addFollower.
Additionally it generates the entry for the given following edge in myFollowingDefs.
[in] | s | The following edge |
Reimplemented from ROEdge.
Definition at line 60 of file ROJTREdge.cpp.
References ROEdge::addFollower(), and myFollowingDefs.
void ROJTREdge::addFollowerProbability | ( | ROJTREdge * | follower, |
SUMOTime | begTime, | ||
SUMOTime | endTime, | ||
SUMOReal | probability | ||
) |
adds the information about the percentage of using a certain follower
[in] | follower | The following edge |
[in] | begTime | Time begin for which this probability is valid |
[in] | endTime | Time end for which this probability is valid |
[in] | probability | The probability to use the given follower |
Definition at line 70 of file ROJTREdge.cpp.
References Named::getID(), myFollowingDefs, and WRITE_ERROR.
Referenced by ROJTRTurnDefLoader::addToEdge().
|
virtualinherited |
Adds a lane to the edge while loading.
The lane's length is adapted. Additionally, the information about allowed/disallowed vehicle classes is patched using the information stored in the lane.
[in] | lane | The lane to add |
Definition at line 86 of file ROEdge.cpp.
References ROLane::getLength(), ROLane::getPermissions(), ROLane::getSpeed(), ROEdge::myCombinedPermissions, ROEdge::myLanes, ROEdge::myLength, ROEdge::mySpeed, and SUMOReal.
Referenced by RONetHandler::parseLane().
|
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().
Adds a travel time value.
[in] | value | The value to add |
[in] | timeBegin | The begin time of the interval the given value is valid for [s] |
[in] | timeEnd | The end time of the interval the given value is valid for [s] |
Definition at line 116 of file ROEdge.cpp.
References ValueTimeLine< T >::add(), ROEdge::myTravelTimes, and ROEdge::myUsingTTTimeLine.
Referenced by ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight().
Returns whether this edge succeding edges prohibit the given vehicle to pass them.
[in] | vehicle | The vehicle for which the information has to be returned |
Definition at line 345 of file ROEdge.cpp.
References ROEdge::myFollowingEdges.
Referenced by chooseNext().
|
inherited |
Builds the internal representation of the travel time/effort.
Should be called after weights / travel times have been loaded.
In the case "weight-attribute" is one of "CO", "CO2", "HC", "NOx", "PMx", or "fuel" the proper value (departs/s) is computed and multiplied with the travel time.
[in] | measure | The name of the measure to use. |
Definition at line 314 of file ROEdge.cpp.
References PollutantsInterface::computeCO(), PollutantsInterface::computeCO2(), PollutantsInterface::computeFuel(), PollutantsInterface::computeHC(), PollutantsInterface::computeNOx(), PollutantsInterface::computePMx(), ValueTimeLine< T >::fillGaps(), ROEdge::myEfforts, ROEdge::myLength, ROEdge::mySpeed, ROEdge::myTravelTimes, ROEdge::myUseBoundariesOnOverrideE, ROEdge::myUseBoundariesOnOverrideTT, ROEdge::myUsingETimeLine, ROEdge::myUsingTTTimeLine, SUMOReal, and SVE_UNKNOWN.
Returns the next edge to use.
[in] | veh | The vehicle to choose the next edge for |
[in] | time | The time at which the next edge shall be entered |
Definition at line 82 of file ROJTREdge.cpp.
References RandomDistributor< T >::add(), ROEdge::allFollowersProhibit(), RandomDistributor< T >::get(), RandomDistributor< T >::getOverallProb(), myFollowingDefs, ROEdge::myFollowingEdges, myParsedTurnings, and ROEdge::prohibits().
Referenced by ROJTRRouter::compute().
|
staticinherited |
Returns the ROEdge at the index.
Definition at line 356 of file ROEdge.cpp.
References ROEdge::myEdges.
|
inlinestaticinherited |
Returns the edge at the given position from the list of reachable edges.
[in] | pos | The position of the list within the list of approached |
Definition at line 291 of file ROEdge.h.
References ROEdge::myApproachingEdges.
Referenced by RODFDetector::computeSplitProbabilities().
Definition at line 194 of file ROEdge.cpp.
References PollutantsInterface::computeDefaultCO2(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
Definition at line 182 of file ROEdge.cpp.
References PollutantsInterface::computeDefaultCO(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
optimistic distance heuristic for use in routing
Definition at line 133 of file ROEdge.cpp.
References Position::distanceTo2D(), ROEdge::getFromNode(), RONode::getPosition(), and ROEdge::getToNode().
Returns the effort for this edge.
[in] | veh | The vehicle for which the effort on this edge shall be retrieved |
[in] | time | The tim for which the effort shall be returned [s] |
Definition at line 123 of file ROEdge.cpp.
References ROEdge::getStoredEffort(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::myLength, ROEdge::mySpeed, and SUMOReal.
Returns the edge at the given position from the list of reachable edges.
[in] | pos | The position of the list within the list of following |
Definition at line 272 of file ROEdge.h.
References ROEdge::myFollowingEdges.
Referenced by RODFRouteCont::addAllEndFollower(), and RODFNet::buildApproachList().
|
inlineinherited |
Returns the node this edge starts at.
Definition at line 191 of file ROEdge.h.
References ROEdge::myFromNode.
Referenced by RODFNet::buildApproachList(), AGPosition::compute2dPosition(), and ROEdge::getDistanceTo().
Definition at line 242 of file ROEdge.cpp.
References PollutantsInterface::computeDefaultFuel(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
Definition at line 218 of file ROEdge.cpp.
References PollutantsInterface::computeDefaultHC(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
|
inlineinherited |
Returns the id.
Definition at line 60 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), TraCIServerAPI_Lane::StoringVisitor::add(), Named::StoringVisitor::add(), MSDetectorControl::add(), RORouteDef::addAlternative(), MSNet::addBusStop(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), RODFDetectorCon::addDetector(), RONet::addEdge(), 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(), MSVehicleTransfer::addVeh(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), 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(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), RODFNet::getDetectorEdge(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), AGStreet::getName(), NIImporter_VISUM::getNamedEdgeContinuating(), GUIVehicle::getParameterWindow(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), RODFDetectorCon::guessEmptyFlows(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), NBEdgeCont::ignoreFilterMatch(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), MSTrafficLightLogic::init(), 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(), MSCalibrator::MSCalibrator(), MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting(), MSVehicle::MSVehicle(), 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()(), 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(), MSLCM_JE2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), AGStreet::print(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processSet(), NWWriter_SUMO::prohibitionConnection(), 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(), 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().
|
inlineinherited |
Returns the number of lanes this edge has.
Definition at line 183 of file ROEdge.h.
References ROEdge::myLanes.
Referenced by RODFDetectorHandler::myStartElement().
|
inlineinherited |
Returns the length of the edge.
Definition at line 160 of file ROEdge.h.
References ROEdge::myLength.
Referenced by RORouteHandler::addStop(), AGStreet::AGStreet(), RODFNet::buildRoutes(), RODFNet::getAbsPos(), AGStreet::getLength(), RONetHandler::parseBusStop(), and AGStreet::print().
Returns the travel time for this edge without using any stored timeLine.
[in] | veh | The vehicle for which the effort on this edge shall be retrieved |
[in] | time | The time for which the effort shall be returned [s] |
Definition at line 176 of file ROEdge.cpp.
References ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::myLength, ROEdge::mySpeed, and SUMOReal.
Referenced by computeRoutes().
|
inherited |
Returns the number of edges this edge is connected to.
If this edge's type is set to "sink", 0 is returned, otherwise the number of edges stored in "myFollowingEdges".
Definition at line 290 of file ROEdge.cpp.
References ROEdge::ET_SINK, ROEdge::getType(), and ROEdge::myFollowingEdges.
Referenced by RODFRouteCont::addAllEndFollower(), RODFNet::buildApproachList(), RODFDetector::computeSplitProbabilities(), and RORouteHandler::parseFromTo().
Definition at line 254 of file ROEdge.cpp.
References HelpersHarmonoise::computeNoise(), SUMOVTypeParameter::emissionClass, ROEdge::getStoredEffort(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, and SUMOReal.
Referenced by computeRoutes().
Definition at line 230 of file ROEdge.cpp.
References PollutantsInterface::computeDefaultNOx(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
|
inherited |
Returns the number of edges this edge is connected to.
If this edge's type is set to "source", 0 is returned, otherwise the number of edges stored in "myApproachingEdges".
Definition at line 299 of file ROEdge.cpp.
References ROEdge::ET_SOURCE, ROEdge::getType(), and ROEdge::myApproachingEdges.
Referenced by RODFDetector::computeSplitProbabilities().
|
inlineinherited |
Returns the index (numeric id) of the edge.
Definition at line 167 of file ROEdge.h.
References ROEdge::myIndex.
|
inlineinherited |
Definition at line 223 of file ROEdge.h.
References ROEdge::myCombinedPermissions.
Definition at line 206 of file ROEdge.cpp.
References PollutantsInterface::computeDefaultPMx(), DEFAULT_VEH_ACCEL, DEFAULT_VEH_SIGMA, SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOReal.
Referenced by computeRoutes().
|
inlineinherited |
get edge priority (road class)
Definition at line 364 of file ROEdge.h.
References ROEdge::myPriority.
|
inlineinherited |
Returns the speed allowed on this edge.
Definition at line 175 of file ROEdge.h.
References ROEdge::mySpeed.
Referenced by RODFNet::buildEdgeFlowMap(), RODFNet::buildRoutes(), RODFNet::computeRoutesFor(), RODFNet::isDestination(), RODFNet::isFalseSource(), and RODFNet::isSource().
Retrieves the stored effort.
[in] | veh | The vehicle for which the effort on this edge shall be retrieved |
[in] | time | The tim for which the effort shall be returned |
Definition at line 265 of file ROEdge.cpp.
References ValueTimeLine< T >::describesTime(), ValueTimeLine< T >::getSplitTime(), ValueTimeLine< T >::getValue(), ROEdge::myEfforts, ROEdge::myHaveEWarned, Named::myID, ROEdge::myInterpolate, ROEdge::myTravelTimes, ROEdge::myUsingETimeLine, SUMOReal, toString(), and WRITE_WARNING.
Referenced by ROEdge::getCO2Effort(), ROEdge::getCOEffort(), ROEdge::getEffort(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), ROEdge::getNoiseEffort(), ROEdge::getNOxEffort(), and ROEdge::getPMxEffort().
|
inlineinherited |
Returns the node this edge ends at.
Definition at line 199 of file ROEdge.h.
References ROEdge::myToNode.
Referenced by RODFNet::buildApproachList(), AGPosition::compute2dPosition(), and ROEdge::getDistanceTo().
Returns the travel time for this edge.
[in] | veh | The vehicle for which the effort on this edge shall be retrieved |
[in] | time | The time for which the effort shall be returned [s] |
Definition at line 144 of file ROEdge.cpp.
References ROVehicle::getType(), and SUMOVTypeParameter::maxSpeed.
Referenced by ROJTRRouter::compute(), computeRoutes(), ROEdge::getCO2Effort(), ROEdge::getCOEffort(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), ROEdge::getNOxEffort(), ROEdge::getPMxEffort(), and ROEdge::getTravelTime().
Returns the travel time for this edge.
[in] | maxSpeed | The maximum speed to assume if no travel times are stored |
[in] | time | The time in seconds(!) for which the traveltime shall be returned |
Definition at line 150 of file ROEdge.cpp.
References ROEdge::getTravelTime(), MAX2(), and ROEdge::myLength.
|
inlineinherited |
Returns the type of the edge.
Definition at line 152 of file ROEdge.h.
References ROEdge::myType.
Referenced by RONet::addEdge(), ROJTRRouter::compute(), ROEdge::getNoFollowing(), and ROEdge::getNumApproaching().
returns the information whether this edge is directly connected to the given
[in] | e | The edge which may be connected |
Definition at line 209 of file ROEdge.h.
References ROEdge::myFollowingEdges.
Returns whether this edge prohibits the given vehicle to pass it.
[in] | vehicle | The vehicle for which the information has to be returned |
Definition at line 218 of file ROEdge.h.
References ROVehicle::getVClass(), and ROEdge::myCombinedPermissions.
Referenced by chooseNext(), and ROJTRRouter::compute().
|
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().
|
inlinestaticinherited |
Definition at line 354 of file ROEdge.h.
References ROEdge::myInterpolate, ROEdge::myUseBoundariesOnOverrideE, and ROEdge::myUseBoundariesOnOverrideTT.
Referenced by RODUAEdgeBuilder::RODUAEdgeBuilder().
void ROJTREdge::setTurnDefaults | ( | const std::vector< SUMOReal > & | defs | ) |
Sets the turning definition defaults.
[in] | def | The turning percentage defaults |
Definition at line 114 of file ROJTREdge.cpp.
References ROEdge::myFollowingEdges, myParsedTurnings, and SUMOReal.
|
inherited |
Sets the type of te edge.
[in] | type | The new type for the edge |
Definition at line 308 of file ROEdge.cpp.
References ROEdge::myType.
Referenced by loadJTRDefinitions(), ROJTRTurnDefLoader::myStartElement(), RONetHandler::parseDistrict(), and RONetHandler::parseEdge().
|
protectedinherited |
List of edges that approached this edge.
Definition at line 422 of file ROEdge.h.
Referenced by ROEdge::addFollower(), ROEdge::getApproaching(), and ROEdge::getNumApproaching().
|
protectedinherited |
The list of allowed vehicle classes combined across lanes.
Definition at line 431 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::getPermissions(), and ROEdge::prohibits().
|
staticprotectedinherited |
Definition at line 433 of file ROEdge.h.
Referenced by ROEdge::dictionary(), ROEdge::dictSize(), and ROEdge::ROEdge().
|
mutableprotectedinherited |
Container storing passing time varying over time for the edge.
Definition at line 404 of file ROEdge.h.
Referenced by ROEdge::addEffort(), ROEdge::buildTimeLines(), and ROEdge::getStoredEffort().
|
private |
Storage for the probabilities of using a certain follower over time.
Definition at line 116 of file ROJTREdge.h.
Referenced by addFollower(), addFollowerProbability(), chooseNext(), and ~ROJTREdge().
|
protectedinherited |
List of edges that may be approached from this edge.
Definition at line 419 of file ROEdge.h.
Referenced by ROEdge::addFollower(), ROEdge::allFollowersProhibit(), chooseNext(), ROEdge::getFollower(), ROEdge::getNoFollowing(), ROEdge::isConnectedTo(), and setTurnDefaults().
|
protectedinherited |
The nodes this edge is connecting.
Definition at line 381 of file ROEdge.h.
Referenced by ROEdge::getFromNode().
|
staticprotectedinherited |
Information whether the edge has reported missing weights.
Definition at line 414 of file ROEdge.h.
Referenced by ROEdge::getStoredEffort().
|
staticprotectedinherited |
Information whether the edge has reported missing weights.
Definition at line 416 of file ROEdge.h.
Referenced by ROEdge::getTravelTime().
|
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(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), RORouteDef::repairCurrentRoute(), Named::setID(), NBEdge::splitGeometry(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MSCalibrator::writeXMLOutput(), MSE3Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().
|
protectedinherited |
The index (numeric id) of the edge.
Definition at line 384 of file ROEdge.h.
Referenced by ROEdge::getNumericalID().
|
staticprotectedinherited |
Information whether to interpolate at interval boundaries.
Definition at line 411 of file ROEdge.h.
Referenced by ROEdge::getStoredEffort(), ROEdge::getTravelTime(), and ROEdge::setTimeLineOptions().
|
protectedinherited |
This edge's lanes.
Definition at line 428 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::getLaneNo(), and ROEdge::~ROEdge().
|
protectedinherited |
The length of the edge.
Definition at line 393 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::buildTimeLines(), ROEdge::getEffort(), ROEdge::getLength(), ROEdge::getMinimumTravelTime(), and ROEdge::getTravelTime().
|
private |
The defaults for turnings.
Definition at line 119 of file ROJTREdge.h.
Referenced by chooseNext(), and setTurnDefaults().
|
protectedinherited |
The edge priority (road class)
Definition at line 387 of file ROEdge.h.
Referenced by ROEdge::getPriority().
|
protectedinherited |
The maximum speed allowed on this edge.
Definition at line 390 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::buildTimeLines(), ROEdge::getCO2Effort(), ROEdge::getCOEffort(), ROEdge::getEffort(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getNOxEffort(), ROEdge::getPMxEffort(), ROEdge::getSpeed(), and ROEdge::getTravelTime().
|
protectedinherited |
Definition at line 381 of file ROEdge.h.
Referenced by ROEdge::getToNode().
|
mutableprotectedinherited |
Container storing passing time varying over time for the edge.
Definition at line 397 of file ROEdge.h.
Referenced by ROEdge::addTravelTime(), ROEdge::buildTimeLines(), ROEdge::getStoredEffort(), and ROEdge::getTravelTime().
|
protectedinherited |
The type of the edge.
Definition at line 425 of file ROEdge.h.
Referenced by ROEdge::getType(), and ROEdge::setType().
|
staticprotectedinherited |
Whether overriding weight boundaries shall be reported.
Definition at line 408 of file ROEdge.h.
Referenced by ROEdge::buildTimeLines(), and ROEdge::setTimeLineOptions().
|
staticprotectedinherited |
Whether overriding weight boundaries shall be reported.
Definition at line 401 of file ROEdge.h.
Referenced by ROEdge::buildTimeLines(), and ROEdge::setTimeLineOptions().
|
protectedinherited |
Information whether the time line shall be used instead of the length value.
Definition at line 406 of file ROEdge.h.
Referenced by ROEdge::addEffort(), ROEdge::buildTimeLines(), and ROEdge::getStoredEffort().
|
protectedinherited |
Information whether the time line shall be used instead of the length value.
Definition at line 399 of file ROEdge.h.
Referenced by ROEdge::addTravelTime(), ROEdge::buildTimeLines(), and ROEdge::getTravelTime().