![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A basic edge for routing applications. More...
#include <ROEdge.h>
Public Member Functions | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
double | getDistanceTo (const ROEdge *other, const bool doBoundaryEstimate=false) const |
optimistic distance heuristic for use in routing More... | |
const RONode * | getFromJunction () const |
const std::string & | getID () const |
Returns the id. More... | |
const std::vector< ROLane * > & | getLanes () const |
Returns this edge's lanes. More... | |
int | getPriority () const |
get edge priority (road class) More... | |
const RONode * | getToJunction () const |
ROEdge (const std::string &id, RONode *from, RONode *to, int index, const int priority) | |
Constructor. More... | |
void | setID (const std::string &newID) |
resets the id More... | |
virtual | ~ROEdge () |
Destructor. More... | |
Set-up methods | |
virtual void | addLane (ROLane *lane) |
Adds a lane to the edge while loading. More... | |
virtual void | addSuccessor (ROEdge *s, ROEdge *via=nullptr, std::string dir="") |
Adds information about a connected edge. More... | |
void | setFunction (SumoXMLEdgeFunc func) |
Sets the function of the edge. More... | |
void | setSource (const bool isSource=true) |
Sets whether the edge is a source. More... | |
void | setSink (const bool isSink=true) |
Sets whether the edge is a sink. More... | |
void | setRestrictions (const std::map< SUMOVehicleClass, double > *restrictions) |
Sets the vehicle class specific speed limits of the edge. More... | |
void | setTimePenalty (double value) |
bool | isInternal () const |
return whether this edge is an internal edge More... | |
bool | isCrossing () const |
return whether this edge is a pedestrian crossing More... | |
bool | isWalkingArea () const |
return whether this edge is walking area More... | |
bool | isTazConnector () const |
void | buildTimeLines (const std::string &measure, const bool boundariesOverride) |
Builds the internal representation of the travel time/effort. More... | |
Getter methods | |
SumoXMLEdgeFunc | getFunction () const |
Returns the function of the edge. More... | |
bool | isSink () const |
Returns whether the edge acts as a sink. More... | |
double | getLength () const |
Returns the length of the edge. More... | |
int | getNumericalID () const |
Returns the index (numeric id) of the edge. More... | |
double | getSpeedLimit () const |
Returns the speed allowed on this edge. More... | |
double | getLengthGeometryFactor () const |
return a lower bound on shape.length() / myLength that is More... | |
double | getVClassMaxSpeed (SUMOVehicleClass vclass) const |
Returns the lane's maximum speed, given a vehicle's speed limit adaptation. More... | |
int | getNumLanes () const |
Returns the number of lanes this edge has. More... | |
bool | isConnectedTo (const ROEdge *const e, const ROVehicle *const vehicle) 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 succeeding edges prohibit the given vehicle to pass them. More... | |
Static Public Member Functions | |
static int | dictSize () |
Returns the number of edges. More... | |
static const ROEdgeVector & | getAllEdges () |
Returns all ROEdges. 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 const Position | getStopPosition (const SUMOVehicleParameter::Stop &stop) |
return the coordinates of the center of the given stop More... | |
static void | setGlobalOptions (const bool interpolate) |
Protected Member Functions | |
bool | getStoredEffort (double time, double &ret) const |
Retrieves the stored effort. More... | |
Protected Attributes | |
bool | myAmSink |
whether the edge is a source or a sink More... | |
bool | myAmSource |
ROEdgeVector | myApproachingEdges |
List of edges that approached this edge. More... | |
Boundary | myBoundary |
The bounding rectangle of end nodes incoming or outgoing edges for taz connectors or of my own start and end node for normal edges. More... | |
std::map< SUMOVehicleClass, ROEdgeVector > | myClassesSuccessorMap |
The successors available for a given vClass. More... | |
std::map< SUMOVehicleClass, ROConstEdgePairVector > | myClassesViaSuccessorMap |
The successors with vias available for a given vClass. More... | |
SVCPermissions | myCombinedPermissions |
The list of allowed vehicle classes combined across lanes. More... | |
ValueTimeLine< double > | myEfforts |
Container storing passing time varying over time for the edge. More... | |
ROEdgeVector | myFollowingEdges |
List of edges that may be approached from this edge. More... | |
ROConstEdgePairVector | myFollowingViaEdges |
RONode * | myFromJunction |
the junctions for this edge More... | |
SumoXMLEdgeFunc | myFunction |
The function of the edge. More... | |
std::string | myID |
The name of the object. More... | |
const int | myIndex |
The index (numeric id) of the edge. More... | |
std::vector< ROLane * > | myLanes |
This edge's lanes. More... | |
double | myLength |
The length of the edge. More... | |
const int | myPriority |
The edge priority (road class) More... | |
const std::map< SUMOVehicleClass, double > * | myRestrictions |
The vClass speed restrictions for this edge. More... | |
double | mySpeed |
The maximum speed allowed on this edge. More... | |
double | myTimePenalty |
flat penalty when computing traveltime More... | |
RONode * | myToJunction |
ValueTimeLine< double > | myTravelTimes |
Container storing passing time varying over time for 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 ROEdgeVector | 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... | |
Private Member Functions | |
ROEdge & | operator= (const ROEdge &src) |
Invalidated assignment operator. More... | |
ROEdge (const ROEdge &src) | |
Invalidated copy constructor. More... | |
Methods for getting/setting travel time and cost information | |
void | addEffort (double value, double timeBegin, double timeEnd) |
Adds a weight value. More... | |
void | addTravelTime (double value, double timeBegin, double timeEnd) |
Adds a travel time value. More... | |
int | getNumSuccessors () const |
Returns the number of edges this edge is connected to. More... | |
const ROEdgeVector & | getSuccessors (SUMOVehicleClass vClass=SVC_IGNORING) const |
Returns the following edges, restricted by vClass. More... | |
const ROConstEdgePairVector & | getViaSuccessors (SUMOVehicleClass vClass=SVC_IGNORING) const |
Returns the following edges including vias, restricted by vClass. More... | |
int | getNumPredecessors () const |
Returns the number of edges connected to this edge. More... | |
const ROEdgeVector & | getPredecessors () const |
Returns the edge at the given position from the list of incoming edges. More... | |
const ROEdge * | getNormalBefore () const |
if this edge is an internal edge, return its first normal predecessor, otherwise the edge itself More... | |
const ROEdge * | getNormalAfter () const |
if this edge is an internal edge, return its first normal successor, otherwise the edge itself More... | |
double | getEffort (const ROVehicle *const veh, double time) const |
Returns the effort for this edge. More... | |
bool | hasLoadedTravelTime (double time) const |
Returns whether a travel time for this edge was loaded. More... | |
double | getTravelTime (const ROVehicle *const veh, double time) const |
Returns the travel time for this edge. More... | |
double | getMinimumTravelTime (const ROVehicle *const veh) const |
Returns a lower bound for the travel time on this edge without using any stored timeLine. More... | |
static double | getEffortStatic (const ROEdge *const edge, const ROVehicle *const veh, double time) |
Returns the effort for the given edge. More... | |
static double | getTravelTimeStatic (const ROEdge *const edge, const ROVehicle *const veh, double time) |
Returns the travel time for the given edge. More... | |
static double | getTravelTimeStaticRandomized (const ROEdge *const edge, const ROVehicle *const veh, double time) |
template<PollutantsInterface::EmissionType ET> | |
static double | getEmissionEffort (const ROEdge *const edge, const ROVehicle *const veh, double time) |
static double | getNoiseEffort (const ROEdge *const edge, const ROVehicle *const veh, double time) |
A basic edge for routing applications.
The edge contains two time lines, one for the travel time and one for a second measure which may be used for computing the costs of a route. After loading the weights, it is needed to call "buildTimeLines" in order to initialise these time lines.
ROEdge::ROEdge | ( | const std::string & | id, |
RONode * | from, | ||
RONode * | to, | ||
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 55 of file ROEdge.cpp.
References Boundary::add(), RONode::getPosition(), myBoundary, myCombinedPermissions, myEdges, and SVCAll.
|
virtual |
|
private |
Invalidated copy constructor.
void ROEdge::addEffort | ( | double | value, |
double | timeBegin, | ||
double | timeEnd | ||
) |
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 134 of file ROEdge.cpp.
References ValueTimeLine< T >::add(), myEfforts, and myUsingETimeLine.
Referenced by ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::addEdgeWeight(), and getPermissions().
|
virtual |
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 92 of file ROEdge.cpp.
References ROLane::getLength(), ROLane::getPermissions(), ROLane::getSpeed(), myCombinedPermissions, myLanes, myLength, and mySpeed.
Referenced by RONetHandler::parseLane().
Adds information about a connected edge.
The edge s is added to "myFollowingEdges" and this edge is added as predecessor to s.
[in] | s | The edge to add |
Reimplemented in ROMAEdge, and ROJTREdge.
Definition at line 105 of file ROEdge.cpp.
References Boundary::add(), getFromJunction(), RONode::getPosition(), getToJunction(), isInternal(), isTazConnector(), myApproachingEdges, myBoundary, myFollowingEdges, and myFollowingViaEdges.
Referenced by RONet::addDistrictEdge(), ROJTREdge::addSuccessor(), ROMAEdge::addSuccessor(), and RONetHandler::parseConnection().
|
inlineinherited |
Adds this object to the given container.
Definition at line 127 of file Named.h.
References Named::StoringVisitor::add().
void ROEdge::addTravelTime | ( | double | value, |
double | timeBegin, | ||
double | timeEnd | ||
) |
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 141 of file ROEdge.cpp.
References ValueTimeLine< T >::add(), myTravelTimes, and myUsingTTTimeLine.
Referenced by ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), getPermissions(), ROMAAssignments::incremental(), and ROMAAssignments::sue().
bool ROEdge::allFollowersProhibit | ( | const ROVehicle *const | vehicle | ) | const |
Returns whether this edge succeeding edges prohibit the given vehicle to pass them.
[in] | vehicle | The vehicle for which the information has to be returned |
Definition at line 325 of file ROEdge.cpp.
References myFollowingEdges.
Referenced by ROJTREdge::chooseNext(), and getPermissions().
void ROEdge::buildTimeLines | ( | const std::string & | measure, |
const bool | boundariesOverride | ||
) |
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", "fuel", or "electricity" 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 285 of file ROEdge.cpp.
References PollutantsInterface::CO, PollutantsInterface::CO2, PollutantsInterface::compute(), PollutantsInterface::ELEC, ValueTimeLine< T >::fillGaps(), PollutantsInterface::FUEL, PollutantsInterface::getClassByName(), PollutantsInterface::HC, myEfforts, myLength, mySpeed, myTimePenalty, myTravelTimes, myUsingETimeLine, myUsingTTTimeLine, PollutantsInterface::NO_X, and PollutantsInterface::PM_X.
Referenced by isTazConnector().
|
inlinestatic |
|
static |
Returns all ROEdges.
Definition at line 336 of file ROEdge.cpp.
References myEdges.
Referenced by computeAllPairs(), computeRoutes(), and getEmissionEffort().
double ROEdge::getDistanceTo | ( | const ROEdge * | other, |
const bool | doBoundaryEstimate = false |
||
) | const |
optimistic distance heuristic for use in routing
Definition at line 158 of file ROEdge.cpp.
References Boundary::distanceTo2D(), getFromJunction(), getLanes(), RONode::getPosition(), getToJunction(), isTazConnector(), and myBoundary.
Referenced by getEmissionEffort().
double ROEdge::getEffort | ( | const ROVehicle *const | veh, |
double | time | ||
) | const |
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 148 of file ROEdge.cpp.
References getStoredEffort(), RORoutable::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), myLength, mySpeed, and myTimePenalty.
Referenced by getEffortStatic(), ROMAAssignments::getPenalizedEffort(), and getPredecessors().
|
inlinestatic |
Returns the effort for the given edge.
[in] | edge | The edge for which the effort shall be retrieved |
[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 384 of file ROEdge.h.
References getEffort().
|
inlinestatic |
Definition at line 422 of file ROEdge.h.
References PollutantsInterface::computeDefault(), SUMOVTypeParameter::emissionClass, getAllEdges(), SUMOVTypeParameter::getCFParam(), SUMOVTypeParameter::getDefaultAccel(), SUMOVTypeParameter::getDefaultImperfection(), getDistanceTo(), getNoiseEffort(), getStoredEffort(), getTravelTime(), RORoutable::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, and SUMOVTypeParameter::vehicleClass.
|
inline |
Definition at line 462 of file ROEdge.h.
References myFromJunction.
Referenced by addSuccessor(), RODFNet::buildApproachList(), AGPosition::compute2dPosition(), getDistanceTo(), and getStopPosition().
|
inline |
Returns the function of the edge.
Definition at line 187 of file ROEdge.h.
References myFunction.
Referenced by writeInterval().
|
inlineinherited |
Returns the id.
Definition at line 77 of file Named.h.
Referenced by MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), MSPModel_Remote::add(), MSPModel_Striping::add(), LaneStoringVisitor::add(), MSVehicleTransfer::add(), PCPolyContainer::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSPModel_Striping::addCrossingVehs(), RODFDetectorCon::addDetector(), RONet::addEdge(), NBParkingCont::addEdges2Keep(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), MSLane::addNeigh(), RONet::addNode(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), RONet::addRouteDef(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), ROVehicle::addStop(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSNet::addStoppingPlace(), MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), AGActivityTripWriter::addTrip(), NIXMLConnectionsHandler::addWalkingArea(), libsumo::Helper::applySubscriptionFilters(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), MSPModel_Striping::blockedAtDist(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NLDetectorBuilder::buildE2Detector(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSRailSignal::DriveWay::buildRoute(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSVehicle::canReverse(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSEdge::checkAndRegisterBiDirEdge(), MSRailSignal::DriveWay::checkCrossingFlanks(), MSLane::checkForPedestrians(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), MSDevice_Battery::checkParam(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSSwarmTrafficLightLogic::choosePolicy(), MSDevice_SSM::classifyEncounter(), ShapeContainer::clearHighlights(), NBTrafficLightLogic::closeBuilding(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBNode::computeLanes2Lanes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), NBOwnTLDef::corridorLike(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), NIVissimDistrictConnection::dict_BuildDistricts(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), MSVehicle::enterLaneAtMove(), METriggeredCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSCalibrator::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSPModel_Striping::MovePedestrians::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), libsumo::Helper::findCloserLane(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), libsumo::Simulation::findIntermodalRoute(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), NBTrafficLightDefinition::forbids(), NBNodeCont::generateNodeClusters(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSPModel_Striping::getArbitraryPath(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), libsumo::Vehicle::getBestLanes(), NBOwnTLDef::getBestPair(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSRailSignal::getClickableTLLinkID(), GUILane::getColorValue(), libsumo::TrafficLight::getControlledLinks(), MSLane::getCriticalLeader(), NBNodeShapeComputer::getDefaultRadius(), NBTrafficLightDefinition::getDescription(), MSLink::getDescription(), GUIPerson::getDestinationEdgeID(), RODFNet::getDetectorEdge(), libsumo::Lane::getEdgeID(), GUIMEVehicle::getEdgeID(), GUIPerson::getEdgeID(), MSMeanData::getEdgeID(), MSPModel_Remote::getFirstPedestrianLane(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), GUIPerson::getFromEdgeID(), MSCalibrator::getID(), MSRailSignal::LinkInfo::getID(), NBEdge::getID(), libsumo::LaneArea::getLaneID(), libsumo::InductionLoop::getLaneID(), libsumo::Vehicle::getLaneID(), MSParkingArea::getLastFreePosWithReservation(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), MSLane::getLinkTo(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), libsumo::Simulation::getParameter(), GUITrafficLightLogicWrapper::getParameterWindow(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUIE2Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), GUILane::getParameterWindow(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), PolygonDynamics::getPolygonID(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), libsumo::Person::getRoadID(), libsumo::Vehicle::getRoadID(), MSLCM_LC2013::getRoundaboutDistBonus(), libsumo::Vehicle::getRouteID(), MSVehicle::getSafeFollowSpeed(), libsumo::Person::getStage(), MSContainer::MSContainerStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSContainer::MSContainerStage_Tranship::getStageSummary(), MSPerson::MSPersonStage_Driving::getStageSummary(), MSTransportable::Stage_Trip::getStageSummary(), MSPerson::MSPersonStage_Access::getStageSummary(), MSTransportable::Stage_Waiting::getStageSummary(), MSNet::getStoppingPlaceID(), MSLane::getSurroundingVehicles(), MSRailSignal::getTLLinkID(), MSLane::getUpcomingLinks(), MSDevice_SSM::getUpstreamVehicles(), MSPModel_Striping::getVehicleObstacles(), MSDevice_SSM::getVehiclesOnJunction(), MSTransportable::Stage_Driving::getWaitingDescription(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), MSVehicle::haveValidStopEdges(), libsumo::POI::highlight(), MSVehicle::ignoreRed(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), MSEdge::insertVehicle(), MSLane::integrateNewVehicles(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), MSLane::isInsertionSuccess(), MSVehicle::isLeader(), MESegment::isOpen(), RODFNet::isSource(), NIImporter_VISUM::isSplitEdge(), MSSOTLTrafficLightLogic::isThresholdPassed(), MESegment::jamThresholdForSpeed(), NBNodeShapeComputer::joinSameDirectionEdges(), NBEdgeCont::joinSameNodeConnectingEdges(), MSAbstractLaneChangeModel::laneChangeOutput(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), ODDistrictCont::makeDistricts(), MSE2Collector::makeVehicleInfo(), MSSOTLE2Sensors::meanVehiclesSpeed(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), MSE2Collector::MSE2Collector(), NBLoadedTLDef::myCompute(), NIImporter_SUMO::myEndElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), MSPModel_Striping::nextBlocking(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Bluelight::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_SSM::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Bluelight::notifyLeave(), MSDevice_Example::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_SSM::notifyLeave(), MSDevice_Bluelight::notifyMove(), MSDevice_Example::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_BTsender::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE2Collector::notifyMove(), MSDevice_SSM::notifyMove(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::TLSFile::onCmdSaveTLSProgram(), GUIViewTraffic::onGamingClick(), MSLink::opened(), RORouteHandler::openRoute(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_Turns(), NLTriggerBuilder::parseAndBuildCalibrator(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSLane::planMovements(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), AGStreet::print(), MSDevice_SSM::processEncounters(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), NIXMLNodesHandler::processNodeType(), TraCIServerAPI_Vehicle::processSet(), MEVehicle::processStop(), NIXMLNodesHandler::processTrafficLightDefinitions(), MSDelayBasedTrafficLightLogic::proposeProlongation(), NBNodeCont::pruneClusterFringe(), MSPModel_Striping::PState::PState(), MSOffTrafficLightLogic::rebuildPhase(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedSUMOTLDef::reconstructLogic(), MSLink::removeApproaching(), MSVehicle::removePassedDriveItems(), GNEJunction::removeTLSConnections(), NBNodeCont::rename(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), GNEJunction::replaceIncomingConnections(), MSVehicle::replaceParkingArea(), MSVehicle::replaceRoute(), MSBaseVehicle::replaceRouteEdges(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NLEdgeControlBuilder::reportCurrentEdgeOrLane(), MSBaseVehicle::reroute(), GUIVehicle::rerouteDRTStop(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), MSLane::resetManeuverReservation(), MSLane::resetPartialOccupation(), RODFNet::revalidateFlows(), NBRailwayTopologyAnalyzer::reverseEdges(), MSPerson::MSPersonStage_Walking::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), RONet::saveAndRemoveRoutesUntil(), ROVehicle::saveAsXML(), MSTransportableDevice_Routing::saveState(), MSDevice_Routing::saveState(), MSDevice::saveState(), MSDevice_Vehroutes::saveState(), MSDevice_Tripinfo::saveState(), MSBaseVehicle::saveState(), MSLane::saveState(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSLink::setApproaching(), MSTransportable::Stage_Trip::setArrived(), NBNodeCont::setAsTLControlled(), GNEEdge::setAttribute(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), NLEdgeControlBuilder::setDefaultStopOffsets(), MSChargingStation::setEfficency(), MSLane::setManeuverReservation(), MSDevice_Battery::setMaximumBatteryCapacity(), NBEdge::setNodeBorder(), NIXMLEdgesHandler::setNodes(), NIImporter_OpenDrive::setNodeSecure(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSLink::setRequestInformation(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSDevice_Battery::setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), MSLane::sortManeuverReservations(), IntermodalNetwork< E, L, N, V >::splitEdge(), MSLaneChangerSublane::startChangeSublane(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), NGNet::toNB(), MSSOTLTrafficLightLogic::trySwitch(), PolygonDynamics::update(), MSDevice_SSM::update(), MSDevice_SSM::updateAndWriteOutput(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateCFRelated(), MSSOTLTrafficLightLogic::updateCTS(), NLEdgeControlBuilder::updateCurrentLaneStopOffsets(), MSVehicle::updateDriveItems(), GNETLSEditorFrame::TLSJunction::updateJunctionDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateTargetLane(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), NBNodeTypeComputer::validateRailCrossings(), MSPModel_Striping::PState::walk(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), NBParking::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSLink::writeApproaching(), MSRailSignal::writeBlocks(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_OpenDrive::writeInternalEdge(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), MSXMLRawOut::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(), SUMOPolygon::writeXML(), MSRouteProbe::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and RONet::~RONet().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 70 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSVehicle::checkRewindLinkLanes(), DijkstraRouter< E, V, BASE >::compute(), AStarRouter< MSEdge, SUMOVehicle, SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle > >::compute(), NBEdge::computeEdge2Edges(), NBEdge::computeLanes2Edges(), NBOwnTLDef::computeLogicAndConts(), MSLaneChanger::continueChange(), MSLane::detectCollisions(), MSRailSignal::DriveWay::findProtection(), MSCFModel_W99::followSpeed(), MSCFModel_CACC::followSpeed(), MSVehicle::getBackPositionOnLane(), NBOwnTLDef::getBestCombination(), NBOwnTLDef::getBestPair(), MSVehicle::getCenterOnEdge(), MSLaneChanger::getColumnleader(), NBEdge::Connection::getDescription(), MSLane::getFollowersOnConsecutive(), GUIVehicle::getLaneID(), MSVehicle::getLatOffset(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), GUIVehicle::getShadowLaneID(), GUIVehicle::getTargetLaneID(), NBEdge::init(), MSLane::isInsertionSuccess(), MESegment::isOpen(), joinNamedToString(), joinNamedToStringSorting(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), operator<<(), NBEdge::recheckLanes(), MSTriggeredRerouter::rerouteParkingArea(), MSLCM_LC2013::saveBlockerLength(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), toString(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().
|
inline |
Returns this edge's lanes.
Definition at line 475 of file ROEdge.h.
References getStoredEffort(), and myLanes.
Referenced by getDistanceTo(), RONetHandler::parseConnection(), and ROVehicle::saveAsXML().
|
inline |
Returns the length of the edge.
Definition at line 203 of file ROEdge.h.
References myLength.
Referenced by RORouteHandler::addPersonTrip(), RORouteHandler::addStop(), RODFNet::buildRoutes(), ROMAAssignments::capacityConstraintFunction(), AGPosition::compute2dPosition(), RODFNet::getAbsPos(), getStopPosition(), getTravelTime(), RONetHandler::parseStoppingPlace(), AGActivityGenHandler::parseStreets(), AGStreet::print(), AGPosition::print(), AGPosition::randomPositionInStreet(), and writeInterval().
double ROEdge::getLengthGeometryFactor | ( | ) | const |
return a lower bound on shape.length() / myLength that is
Definition at line 319 of file ROEdge.cpp.
References myLanes.
Referenced by getSpeedLimit().
|
inline |
Returns a lower bound for the travel time on 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 410 of file ROEdge.h.
References ROVehicle::getChosenSpeedFactor(), RORoutable::getType(), isTazConnector(), SUMOVTypeParameter::maxSpeed, MIN2(), myLength, and mySpeed.
Referenced by getTravelTime().
|
static |
Definition at line 209 of file ROEdge.cpp.
References HelpersHarmonoise::computeNoise(), SUMOVTypeParameter::emissionClass, getStoredEffort(), RORoutable::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), and mySpeed.
Referenced by computeRoutes(), and getEmissionEffort().
const ROEdge * ROEdge::getNormalAfter | ( | ) | const |
if this edge is an internal edge, return its first normal successor, otherwise the edge itself
Definition at line 274 of file ROEdge.cpp.
References isInternal(), and myFollowingEdges.
Referenced by ROVehicle::getMandatoryEdges(), and getPredecessors().
const ROEdge * ROEdge::getNormalBefore | ( | ) | const |
if this edge is an internal edge, return its first normal predecessor, otherwise the edge itself
Definition at line 263 of file ROEdge.cpp.
References isInternal(), and myApproachingEdges.
Referenced by RORouteHandler::addStop(), ROVehicle::getMandatoryEdges(), and getPredecessors().
|
inline |
Returns the index (numeric id) of the edge.
Definition at line 210 of file ROEdge.h.
References myIndex.
Referenced by RONet::createBulkRouteRequests().
|
inline |
Returns the number of lanes this edge has.
Definition at line 244 of file ROEdge.h.
References isConnectedTo(), and myLanes.
Referenced by ROMAAssignments::capacityConstraintFunction(), ROMAAssignments::getCapacity(), and RODFDetectorHandler::myStartElement().
int ROEdge::getNumPredecessors | ( | ) | const |
Returns the number of edges connected to this edge.
If this edge's type is set to "source", 0 is returned, otherwise the number of edges stored in "myApproachingEdges".
Definition at line 254 of file ROEdge.cpp.
References myAmSource, and myApproachingEdges.
Referenced by getPermissions(), and RORouteHandler::parseFromViaTo().
int ROEdge::getNumSuccessors | ( | ) | const |
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 245 of file ROEdge.cpp.
References myAmSink, and myFollowingEdges.
Referenced by RODFDetector::computeSplitProbabilities(), getPermissions(), and RORouteHandler::parseFromViaTo().
|
inline |
Definition at line 267 of file ROEdge.h.
References addEffort(), addTravelTime(), allFollowersProhibit(), getNumPredecessors(), getNumSuccessors(), getSuccessors(), getViaSuccessors(), myCombinedPermissions, and SVC_IGNORING.
Referenced by AGStreet::allows().
|
inline |
Returns the edge at the given position from the list of incoming edges.
[in] | pos | The position of the list within the list of incoming |
Definition at line 339 of file ROEdge.h.
References getEffort(), getNormalAfter(), getNormalBefore(), getTravelTime(), hasLoadedTravelTime(), and myApproachingEdges.
Referenced by RODFDetector::computeSplitProbabilities().
|
inline |
get edge priority (road class)
Definition at line 458 of file ROEdge.h.
References myPriority.
Referenced by ROMAAssignments::capacityConstraintFunction(), and ROMAAssignments::getCapacity().
|
inline |
Returns the speed allowed on this edge.
Definition at line 218 of file ROEdge.h.
References getLengthGeometryFactor(), and mySpeed.
Referenced by RODFNet::buildEdgeFlowMap(), RODFNet::buildRoutes(), ROMAAssignments::capacityConstraintFunction(), RODFNet::computeRoutesFor(), ROMAAssignments::getCapacity(), getTravelTime(), RODFNet::isDestination(), RODFNet::isFalseSource(), and RODFNet::isSource().
|
static |
return the coordinates of the center of the given stop
Definition at line 342 of file ROEdge.cpp.
References SUMOVehicleParameter::Stop::endPos, RONet::getEdge(), SUMOXMLDefinitions::getEdgeIDFromLane(), getFromJunction(), RONet::getInstance(), getLength(), RONode::getPosition(), getToJunction(), SUMOVehicleParameter::Stop::lane, and SUMOVehicleParameter::Stop::startPos.
Referenced by setGlobalOptions().
|
protected |
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 220 of file ROEdge.cpp.
References ValueTimeLine< T >::describesTime(), ValueTimeLine< T >::getSplitTime(), ValueTimeLine< T >::getValue(), myEfforts, myHaveEWarned, Named::myID, myInterpolate, myTravelTimes, myUsingETimeLine, toString(), and WRITE_WARNING.
Referenced by getEffort(), getEmissionEffort(), getLanes(), and getNoiseEffort().
const ROEdgeVector & ROEdge::getSuccessors | ( | SUMOVehicleClass | vClass = SVC_IGNORING | ) | const |
Returns the following edges, restricted by vClass.
[in] | vClass | The vClass for which to restrict the successors |
Definition at line 350 of file ROEdge.cpp.
References RONet::getInstance(), isTazConnector(), myClassesSuccessorMap, myFollowingEdges, myLanes, and SVC_IGNORING.
Referenced by RODFNet::buildApproachList(), RORouteHandler::closeRoute(), getPermissions(), isConnectedTo(), and RORouteHandler::parseGeoEdges().
|
inline |
Definition at line 466 of file ROEdge.h.
References myToJunction.
Referenced by addSuccessor(), RODFNet::buildApproachList(), AGPosition::compute2dPosition(), getDistanceTo(), and getStopPosition().
double ROEdge::getTravelTime | ( | const ROVehicle *const | veh, |
double | time | ||
) | const |
Returns the travel time for this edge.
[in] | veh | The vehicle for which the travel time on this edge shall be retrieved |
[in] | time | The time for which the travel time shall be returned [s] |
Definition at line 184 of file ROEdge.cpp.
References ValueTimeLine< T >::describesTime(), getMinimumTravelTime(), Distribution_Parameterized::getParameter(), ValueTimeLine< T >::getSplitTime(), RORoutable::getType(), ValueTimeLine< T >::getValue(), MAX2(), SUMOVTypeParameter::maxSpeed, MIN2(), myHaveTTWarned, Named::myID, myInterpolate, myLength, mySpeed, myTimePenalty, myTravelTimes, myUsingTTTimeLine, SUMOVTypeParameter::speedFactor, split(), toString(), and WRITE_WARNING.
Referenced by ROJTRRouter::compute(), getEmissionEffort(), ROMAAssignments::getPenalizedTT(), getPredecessors(), ROMAAssignments::getTravelTime(), getTravelTimeStatic(), getTravelTimeStaticRandomized(), ROMAAssignments::incremental(), and writeInterval().
|
inlinestatic |
Returns the travel time for the given edge.
[in] | edge | The edge for which the travel time shall be retrieved |
[in] | veh | The vehicle for which the travel time on this edge shall be retrieved |
[in] | time | The time for which the travel time shall be returned [s] |
Definition at line 396 of file ROEdge.h.
References getTravelTime().
Referenced by computeRoutes().
|
inlinestatic |
Definition at line 400 of file ROEdge.h.
References getTravelTime(), gWeightsRandomFactor, and RandHelper::rand().
Referenced by computeRoutes().
|
inline |
Returns the lane's maximum speed, given a vehicle's speed limit adaptation.
[in] | The | vehicle to return the adapted speed limit for |
Definition at line 230 of file ROEdge.h.
References myRestrictions, and mySpeed.
Referenced by RODFNet::buildEdgeFlowMap().
const ROConstEdgePairVector & ROEdge::getViaSuccessors | ( | SUMOVehicleClass | vClass = SVC_IGNORING | ) | const |
Returns the following edges including vias, restricted by vClass.
[in] | vClass | The vClass for which to restrict the successors |
Definition at line 386 of file ROEdge.cpp.
References RONet::getInstance(), isTazConnector(), myClassesViaSuccessorMap, myFollowingEdges, myFollowingViaEdges, myLanes, and SVC_IGNORING.
Referenced by getPermissions().
bool ROEdge::hasLoadedTravelTime | ( | double | time | ) | const |
Returns whether a travel time for this edge was loaded.
[in] | time | The time for which the travel time shall be returned [s] |
Definition at line 178 of file ROEdge.cpp.
References ValueTimeLine< T >::describesTime(), myTravelTimes, and myUsingTTTimeLine.
Referenced by getPredecessors(), and ROMAAssignments::incremental().
returns the information whether this edge is directly connected to the given
[in] | e | The edge which may be connected |
[in] | vehicle | The vehicle for which the connectivity is checked |
Definition at line 422 of file ROEdge.cpp.
References getSuccessors(), RORoutable::getVClass(), and SVC_IGNORING.
Referenced by getNumLanes().
|
inline |
return whether this edge is a pedestrian crossing
Definition at line 153 of file ROEdge.h.
References EDGEFUNC_CROSSING, and myFunction.
|
inline |
return whether this edge is an internal edge
Definition at line 148 of file ROEdge.h.
References EDGEFUNC_INTERNAL, and myFunction.
Referenced by RONet::addEdge(), RORouteHandler::addStop(), addSuccessor(), RODFNet::buildApproachList(), getNormalAfter(), getNormalBefore(), and RORouteHandler::parseGeoEdges().
|
inline |
Returns whether the edge acts as a sink.
Definition at line 195 of file ROEdge.h.
References myAmSink.
Referenced by ROJTRRouter::compute(), and setSink().
|
inline |
Definition at line 162 of file ROEdge.h.
References buildTimeLines(), EDGEFUNC_CONNECTOR, and myFunction.
Referenced by addSuccessor(), ROMAAssignments::capacityConstraintFunction(), ROMAAssignments::getCapacity(), getDistanceTo(), getMinimumTravelTime(), getSuccessors(), and getViaSuccessors().
|
inline |
return whether this edge is walking area
Definition at line 158 of file ROEdge.h.
References EDGEFUNC_WALKINGAREA, and myFunction.
|
inline |
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 262 of file ROEdge.h.
References RORoutable::getVClass(), and myCombinedPermissions.
Referenced by ROVehicle::addStop(), ROJTREdge::chooseNext(), and ROJTRRouter::compute().
|
inline |
Sets the function of the edge.
[in] | func | The new function for the edge |
Definition at line 115 of file ROEdge.h.
References myFunction.
Referenced by RONet::addDistrict(), and RONetHandler::parseEdge().
|
inlinestatic |
Definition at line 450 of file ROEdge.h.
References getStopPosition(), and myInterpolate.
Referenced by initNet().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 85 of file Named.h.
Referenced by Distribution_Parameterized::parse(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::remapIDs(), NBNodeCont::rename(), NBEdgeCont::rename(), GNEJunction::setAttribute(), and IntermodalNetwork< E, L, N, V >::splitEdge().
|
inline |
Sets the vehicle class specific speed limits of the edge.
[in] | restrictions | The restrictions for the edge |
Definition at line 139 of file ROEdge.h.
References myRestrictions.
Referenced by RONetHandler::parseEdge().
|
inline |
Sets whether the edge is a sink.
[in] | func | The new sink functionality for the edge |
Definition at line 131 of file ROEdge.h.
References isSink(), and myAmSink.
Referenced by loadJTRDefinitions(), and ROJTRTurnDefLoader::myStartElement().
|
inline |
Sets whether the edge is a source.
[in] | func | The new source functionality for the edge |
Definition at line 123 of file ROEdge.h.
References myAmSource.
Referenced by ROJTRTurnDefLoader::myStartElement().
|
inline |
Definition at line 143 of file ROEdge.h.
References myTimePenalty.
Referenced by RONetHandler::parseConnection().
|
protected |
whether the edge is a source or a sink
Definition at line 507 of file ROEdge.h.
Referenced by getNumSuccessors(), isSink(), and setSink().
|
protected |
Definition at line 507 of file ROEdge.h.
Referenced by getNumPredecessors(), and setSource().
|
protected |
List of edges that approached this edge.
Definition at line 532 of file ROEdge.h.
Referenced by addSuccessor(), getNormalBefore(), getNumPredecessors(), and getPredecessors().
|
protected |
The bounding rectangle of end nodes incoming or outgoing edges for taz connectors or of my own start and end node for normal edges.
Definition at line 547 of file ROEdge.h.
Referenced by addSuccessor(), getDistanceTo(), and ROEdge().
|
mutableprotected |
The successors available for a given vClass.
Definition at line 556 of file ROEdge.h.
Referenced by getSuccessors().
|
mutableprotected |
The successors with vias available for a given vClass.
Definition at line 559 of file ROEdge.h.
Referenced by getViaSuccessors().
|
protected |
The list of allowed vehicle classes combined across lanes.
Definition at line 544 of file ROEdge.h.
Referenced by addLane(), getPermissions(), prohibits(), and ROEdge().
|
staticprotected |
Definition at line 552 of file ROEdge.h.
Referenced by dictSize(), getAllEdges(), and ROEdge().
|
mutableprotected |
Container storing passing time varying over time for the edge.
Definition at line 514 of file ROEdge.h.
Referenced by addEffort(), buildTimeLines(), and getStoredEffort().
|
protected |
List of edges that may be approached from this edge.
Definition at line 527 of file ROEdge.h.
Referenced by addSuccessor(), allFollowersProhibit(), ROJTREdge::chooseNext(), getNormalAfter(), getNumSuccessors(), getSuccessors(), getViaSuccessors(), and ROJTREdge::setTurnDefaults().
|
protected |
Definition at line 529 of file ROEdge.h.
Referenced by addSuccessor(), and getViaSuccessors().
|
protected |
the junctions for this edge
Definition at line 491 of file ROEdge.h.
Referenced by getFromJunction().
|
protected |
The function of the edge.
Definition at line 535 of file ROEdge.h.
Referenced by getFunction(), isCrossing(), isInternal(), isTazConnector(), isWalkingArea(), and setFunction().
|
staticprotected |
Information whether the edge has reported missing weights.
Definition at line 522 of file ROEdge.h.
Referenced by getStoredEffort().
|
staticprotected |
Information whether the edge has reported missing weights.
Definition at line 524 of file ROEdge.h.
Referenced by getTravelTime().
|
protectedinherited |
The name of the object.
Definition at line 134 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), MSE2Collector::detectorUpdate(), GNEPoly::getAttribute(), GNEPOI::getAttribute(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), NBEdge::getLaneID(), getStoredEffort(), MSLane::getSurroundingVehicles(), getTravelTime(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), NBEdge::init(), MSLane::isInsertionSuccess(), NBNode::NBNode(), MSE2Collector::notifyEnter(), MSE2Collector::notifyLeave(), MSE2Collector::notifyMove(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protected |
The index (numeric id) of the edge.
Definition at line 495 of file ROEdge.h.
Referenced by getNumericalID().
|
staticprotected |
Information whether to interpolate at interval boundaries.
Definition at line 519 of file ROEdge.h.
Referenced by getStoredEffort(), getTravelTime(), and setGlobalOptions().
|
protected |
This edge's lanes.
Definition at line 541 of file ROEdge.h.
Referenced by addLane(), getLanes(), getLengthGeometryFactor(), getNumLanes(), getSuccessors(), getViaSuccessors(), and ~ROEdge().
|
protected |
The length of the edge.
Definition at line 504 of file ROEdge.h.
Referenced by addLane(), buildTimeLines(), getEffort(), getLength(), getMinimumTravelTime(), and getTravelTime().
|
protected |
The edge priority (road class)
Definition at line 498 of file ROEdge.h.
Referenced by getPriority().
|
protected |
The vClass speed restrictions for this edge.
Definition at line 538 of file ROEdge.h.
Referenced by getVClassMaxSpeed(), and setRestrictions().
|
protected |
The maximum speed allowed on this edge.
Definition at line 501 of file ROEdge.h.
Referenced by addLane(), buildTimeLines(), getEffort(), getEmissionEffort(), getMinimumTravelTime(), getNoiseEffort(), getSpeedLimit(), getTravelTime(), and getVClassMaxSpeed().
|
protected |
flat penalty when computing traveltime
Definition at line 550 of file ROEdge.h.
Referenced by buildTimeLines(), getEffort(), getTravelTime(), and setTimePenalty().
|
protected |
Definition at line 492 of file ROEdge.h.
Referenced by getToJunction().
|
mutableprotected |
Container storing passing time varying over time for the edge.
Definition at line 509 of file ROEdge.h.
Referenced by addTravelTime(), buildTimeLines(), getStoredEffort(), getTravelTime(), and hasLoadedTravelTime().
|
protected |
Information whether the time line shall be used instead of the length value.
Definition at line 516 of file ROEdge.h.
Referenced by addEffort(), buildTimeLines(), and getStoredEffort().
|
protected |
Information whether the time line shall be used instead of the length value.
Definition at line 511 of file ROEdge.h.
Referenced by addTravelTime(), buildTimeLines(), getTravelTime(), and hasLoadedTravelTime().