![]() |
SUMO - Simulation of Urban MObility
|
A model of the street in the city. More...
#include <AGStreet.h>
Data Structures | |
class | Builder |
Public Types | |
enum | EdgeFunc { ET_NORMAL, ET_DISTRICT, ET_SOURCE, ET_SINK, ET_WALKINGAREA, ET_CROSSING, ET_INTERNAL } |
Possible functions of edges. More... | |
Public Member Functions | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
AGStreet (const std::string &id, RONode *from, RONode *to, unsigned int index, const int priority) | |
bool | allows (const SUMOVehicleClass vclass) const |
Returns whether the given vehicle class is allowed on this street. More... | |
SUMOReal | getDistanceTo (const ROEdge *other) 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... | |
SUMOReal | getPopulation () const |
Provides the number of persons living in this street. More... | |
int | getPriority () const |
get edge priority (road class) More... | |
const RONode * | getToJunction () const |
SUMOReal | getWorkplaceNumber () const |
Provides the number of work places in this street. More... | |
void | print () const |
Prints a summary of the properties of this street to standard output. More... | |
void | setID (const std::string &newID) |
resets the id More... | |
void | setPopulation (const SUMOReal pop) |
Modifies the number of persons living in this street. More... | |
void | setWorkplaceNumber (const SUMOReal work) |
Modifies the number of work places in this street. More... | |
Set-up methods | |
virtual void | addLane (ROLane *lane) |
Adds a lane to the edge while loading. More... | |
virtual void | addSuccessor (ROEdge *s, std::string dir="") |
Adds information about a connected edge. More... | |
void | setFunc (EdgeFunc func) |
Sets the function of the edge. More... | |
void | setRestrictions (const std::map< SUMOVehicleClass, SUMOReal > *restrictions) |
Sets the vehicle class specific speed limits of the edge. More... | |
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... | |
void | buildTimeLines (const std::string &measure, const bool boundariesOverride) |
Builds the internal representation of the travel time/effort. More... | |
Getter methods | |
EdgeFunc | getFunc () const |
Returns the function 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... | |
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 ROEdge * | dictionary (size_t index) |
Returns the ROEdge at the index. More... | |
static size_t | dictSize () |
Returns the number of edges. More... | |
template<class T > | |
static std::string | getIDSecure (const T *obj, const std::string &fallBack="NULL") |
get an identifier for Named-like object which may be Null More... | |
static void | setGlobalOptions (bool interpolate, bool isParallel) |
Protected Member Functions | |
bool | getStoredEffort (SUMOReal time, SUMOReal &ret) const |
Retrieves the stored effort. More... | |
Protected Attributes | |
ROEdgeVector | myApproachingEdges |
List of edges that approached this edge. More... | |
std::map< SUMOVehicleClass, ROEdgeVector > | myClassesSuccessorMap |
The successors available for a given vClass. 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... | |
ROEdgeVector | myFollowingEdges |
List of edges that may be approached from this edge. More... | |
RONode * | myFromJunction |
the junctions for this edge More... | |
EdgeFunc | myFunc |
The function of the edge. 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... | |
const std::map< SUMOVehicleClass, SUMOReal > * | myRestrictions |
The vClass speed restrictions for this edge. More... | |
SUMOReal | mySpeed |
The maximum speed allowed on this edge. More... | |
RONode * | myToJunction |
ValueTimeLine< SUMOReal > | 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 bool | myAmParallel = false |
Information whether we are routing multi-threaded. More... | |
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 Attributes | |
SUMOReal | myNumWorkplaces |
SUMOReal | myPopulation |
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 | getNumSuccessors () const |
Returns the number of edges this edge is connected to. More... | |
const ROEdgeVector & | getSuccessors () const |
Returns the following edges. More... | |
const ROEdgeVector & | getSuccessors (SUMOVehicleClass vClass) const |
Returns the following edges, restricted by vClass. More... | |
unsigned 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... | |
SUMOReal | getEffort (const ROVehicle *const veh, SUMOReal time) const |
Returns the effort for this edge. More... | |
bool | hasLoadedTravelTime (SUMOReal time) const |
Returns whether a travel time for this edge was loaded. More... | |
SUMOReal | getTravelTime (const ROVehicle *const veh, SUMOReal time) const |
Returns the travel time for this edge. More... | |
SUMOReal | getMinimumTravelTime (const ROVehicle *const veh) const |
Returns a lower bound for the travel time on this edge without using any stored timeLine. More... | |
static SUMOReal | getEffortStatic (const ROEdge *const edge, const ROVehicle *const veh, SUMOReal time) |
Returns the effort for the given edge. More... | |
static SUMOReal | getTravelTimeStatic (const ROEdge *const edge, const ROVehicle *const veh, SUMOReal time) |
Returns the travel time for the given edge. More... | |
template<PollutantsInterface::EmissionType ET> | |
static SUMOReal | getEmissionEffort (const ROEdge *const edge, const ROVehicle *const veh, SUMOReal time) |
static SUMOReal | getNoiseEffort (const ROEdge *const edge, const ROVehicle *const veh, SUMOReal time) |
A model of the street in the city.
AGStreet represents a street in the city. It contains all model relevant properties and is associated with a ROEdge of the routing network.
Definition at line 60 of file AGStreet.h.
|
inherited |
Possible functions of edges.
AGStreet::AGStreet | ( | const std::string & | id, |
RONode * | from, | ||
RONode * | to, | ||
unsigned int | index, | ||
const int | priority | ||
) |
Definition at line 44 of file AGStreet.cpp.
Referenced by AGStreet::Builder::buildEdge().
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 119 of file ROEdge.cpp.
References ValueTimeLine< T >::add(), ROEdge::myEfforts, and ROEdge::myUsingETimeLine.
Referenced by ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::addEdgeWeight(), and ROEdge::getPermissions().
|
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 97 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().
|
virtualinherited |
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 110 of file ROEdge.cpp.
References ROEdge::myApproachingEdges, and ROEdge::myFollowingEdges.
Referenced by RONet::addDistrictEdge(), ROJTREdge::addSuccessor(), and ROMAEdge::addSuccessor().
|
inlineinherited |
Adds this object to the given container.
Definition at line 126 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 126 of file ROEdge.cpp.
References ValueTimeLine< T >::add(), ROEdge::myTravelTimes, ROEdge::myUsingTTTimeLine, and SUMOReal.
Referenced by ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), ROEdge::getPermissions(), ROMAAssignments::incremental(), and ROMAAssignments::sue().
|
inherited |
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 269 of file ROEdge.cpp.
References ROEdge::myFollowingEdges.
Referenced by ROJTREdge::chooseNext(), and ROEdge::getPermissions().
bool AGStreet::allows | ( | const SUMOVehicleClass | vclass | ) | const |
Returns whether the given vehicle class is allowed on this street.
[in] | vclass | the class (passenger or bus) in question |
Definition at line 80 of file AGStreet.cpp.
References ROEdge::getPermissions().
Referenced by AGStreet::Builder::buildEdge(), and AGWorkAndSchool::carsToTrips().
|
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 238 of file ROEdge.cpp.
References PollutantsInterface::CO, PollutantsInterface::CO2, PollutantsInterface::compute(), ValueTimeLine< T >::fillGaps(), PollutantsInterface::FUEL, PollutantsInterface::getClassByName(), PollutantsInterface::HC, ROEdge::myEfforts, ROEdge::myLength, ROEdge::mySpeed, ROEdge::myTravelTimes, ROEdge::myUsingETimeLine, ROEdge::myUsingTTTimeLine, PollutantsInterface::NO_X, PollutantsInterface::PM_X, and SUMOReal.
Referenced by ROEdge::isWalkingArea().
|
staticinherited |
Returns the ROEdge at the index.
Definition at line 280 of file ROEdge.cpp.
References ROEdge::myEdges.
Referenced by ROEdge::getEmissionEffort().
|
inlinestaticinherited |
optimistic distance heuristic for use in routing
Definition at line 143 of file ROEdge.cpp.
References Position::distanceTo2D(), ROEdge::getFromJunction(), RONode::getPosition(), and ROEdge::getToJunction().
Referenced by ROEdge::getEmissionEffort().
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 133 of file ROEdge.cpp.
References ROEdge::getStoredEffort(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::myLength, ROEdge::mySpeed, and SUMOReal.
Referenced by ROEdge::getEffortStatic(), ROMAAssignments::getPenalizedEffort(), and ROEdge::getPredecessors().
|
inlinestaticinherited |
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 353 of file ROEdge.h.
References ROEdge::getEffort().
|
inlinestaticinherited |
Definition at line 381 of file ROEdge.h.
References PollutantsInterface::computeDefault(), ROEdge::dictionary(), SUMOVTypeParameter::emissionClass, SUMOVTypeParameter::get(), SUMOVTypeParameter::getDefaultAccel(), SUMOVTypeParameter::getDefaultImperfection(), ROEdge::getDistanceTo(), ROEdge::getNoiseEffort(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, SUMO_ATTR_ACCEL, SUMO_ATTR_SIGMA, SUMOReal, and SUMOVTypeParameter::vehicleClass.
|
inlineinherited |
Definition at line 421 of file ROEdge.h.
References ROEdge::myFromJunction.
Referenced by RODFNet::buildApproachList(), AGPosition::compute2dPosition(), and ROEdge::getDistanceTo().
|
inlineinherited |
Returns the function of the edge.
Definition at line 186 of file ROEdge.h.
References ROEdge::myFunc.
Referenced by RONet::addEdge(), ROMAAssignments::capacityConstraintFunction(), ROJTRRouter::compute(), ROMAAssignments::getCapacity(), ROEdge::getNumPredecessors(), ROEdge::getNumSuccessors(), and writeInterval().
|
inlineinherited |
Returns the id.
Definition at line 65 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), MSNet::addBusStop(), MSNet::addChargingStation(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSNet::addContainerStop(), NIXMLConnectionsHandler::addCrossing(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), MSVehicle::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciBusOrContainerStop(), MSVehicle::addTraciStop(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNEConnector::buildIinternalLanes(), GNETLSEditor::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), NLDetectorBuilder::convUncontE2PosLength(), GUINet::createTLWrapper(), NIVissimDistrictConnection::dict_BuildDistricts(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSE3Collector::enter(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), MSNet::getChargingStationID(), NBEdge::getConnection(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), GNEEdge::getDest(), RODFNet::getDetectorEdge(), MSMeanData::getEdgeID(), PedestrianEdge< E, L, N >::getEffort(), NBEdge::getFirstNonPedestrianLane(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), GNEEdge::getSource(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollision(), NBEdgeCont::ignoreFilterMatch(), MSRailSignal::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), PedestrianEdge< E, L, N >::initPedestrianNetwork(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), RODFNet::isDestination(), RODFNet::isFalseSource(), RODFNet::isSource(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), NIImporter_OpenDrive::loadNetwork(), ODDistrictCont::makeDistricts(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_BTsender::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Container::notifyLeave(), MSDevice_Person::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTsender::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), GUIViewTraffic::onGamingClick(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), MSEdge::by_id_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_JE2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSRightOfWayJunction::postloadInit(), print(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_ArealDetector::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckPostProcessConnections(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNodeCont::removeIsolatedRoads(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), MSBaseVehicle::saveState(), MSDevice_Battery::setActualBatteryCapacity(), MSDevice_Battery::setAirDragCoefficient(), NBNodeCont::setAsTLControlled(), MSChargingStation::setChrgPower(), MSDevice_Battery::setConstantPowerIntake(), NBEdge::setControllingTLInformation(), MSChargingStation::setEfficency(), MSDevice_Battery::setFrontSurfaceArea(), MSDevice_Battery::setInternalMomentOfInertia(), GNEJunction::setLogicValid(), MSDevice_Battery::setMass(), MSDevice_Battery::setMaximumBatteryCapacity(), NIXMLEdgesHandler::setNodes(), MSDevice_Battery::setPowerMax(), MSDevice_Battery::setPropulsionEfficiency(), MSDevice_Battery::setRadialDragCoefficient(), MSDevice_Battery::setRecuperationEfficiency(), MSLink::setRequestInformation(), MSDevice_Battery::setRollDragCoefficient(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), NBOwnTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), GNETLSEditor::updateDescription(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSPModel_Striping::PState::walk(), MSLCM_JE2013::wantsChange(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), NBSign::writeAsPOI(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSInductLoop::writeTypedXMLOutput(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inlinestaticinherited |
|
inlineinherited |
Returns the number of lanes this edge has.
Definition at line 217 of file ROEdge.h.
References ROEdge::isConnectedTo(), and ROEdge::myLanes.
Referenced by ROMAAssignments::capacityConstraintFunction(), ROMAAssignments::getCapacity(), and RODFDetectorHandler::myStartElement().
|
inlineinherited |
Returns this edge's lanes.
Definition at line 434 of file ROEdge.h.
References ROEdge::getStoredEffort(), ROEdge::myLanes, and SUMOReal.
Referenced by RONetHandler::parseConnection().
|
inlineinherited |
Returns the length of the edge.
Definition at line 194 of file ROEdge.h.
References ROEdge::myLength.
Referenced by RORouteHandler::addStop(), RODFNet::buildRoutes(), ROMAAssignments::capacityConstraintFunction(), AGPosition::compute2dPosition(), RODFNet::getAbsPos(), getTravelTime(), RONetHandler::parseBusStop(), RONetHandler::parseContainerStop(), AGActivityGenHandler::parseStreets(), print(), AGPosition::print(), AGPosition::randomPositionInStreet(), RORouteHandler::routePedestrian(), and writeInterval().
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 375 of file ROEdge.h.
References ROVehicle::getChosenSpeedFactor(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::myLength, and ROEdge::mySpeed.
Referenced by ROEdge::getTravelTime().
|
staticinherited |
Definition at line 184 of file ROEdge.cpp.
References HelpersHarmonoise::computeNoise(), SUMOVTypeParameter::emissionClass, ROEdge::getStoredEffort(), ROVehicle::getType(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::mySpeed, and SUMOReal.
Referenced by computeRoutes(), and ROEdge::getEmissionEffort().
|
inlineinherited |
Returns the index (numeric id) of the edge.
Definition at line 201 of file ROEdge.h.
References ROEdge::myIndex.
Referenced by RONet::createBulkRouteRequests().
|
inherited |
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 229 of file ROEdge.cpp.
References ROEdge::ET_SOURCE, ROEdge::getFunc(), and ROEdge::myApproachingEdges.
Referenced by ROEdge::getSuccessors(), and RORouteHandler::parseFromViaTo().
|
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 220 of file ROEdge.cpp.
References ROEdge::ET_SINK, ROEdge::getFunc(), and ROEdge::myFollowingEdges.
Referenced by RODFDetector::computeSplitProbabilities(), ROEdge::getPermissions(), and RORouteHandler::parseFromViaTo().
|
inlineinherited |
Definition at line 240 of file ROEdge.h.
References ROEdge::addEffort(), ROEdge::addTravelTime(), ROEdge::allFollowersProhibit(), ROEdge::getNumSuccessors(), ROEdge::myCombinedPermissions, and SUMOReal.
Referenced by allows().
SUMOReal AGStreet::getPopulation | ( | ) | const |
Provides the number of persons living in this street.
Definition at line 56 of file AGStreet.cpp.
References myPopulation.
Referenced by AGStreet::Builder::buildEdge().
|
inlineinherited |
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 313 of file ROEdge.h.
References ROEdge::getEffort(), ROEdge::getTravelTime(), ROEdge::hasLoadedTravelTime(), ROEdge::myApproachingEdges, and SUMOReal.
Referenced by RODFDetector::computeSplitProbabilities().
|
inlineinherited |
get edge priority (road class)
Definition at line 417 of file ROEdge.h.
References ROEdge::myPriority.
Referenced by ROMAAssignments::capacityConstraintFunction(), and ROMAAssignments::getCapacity().
|
inlineinherited |
Returns the speed allowed on this edge.
Definition at line 209 of file ROEdge.h.
References ROEdge::mySpeed.
Referenced by RODFNet::buildEdgeFlowMap(), RODFNet::buildRoutes(), ROMAAssignments::capacityConstraintFunction(), RODFNet::computeRoutesFor(), ROMAAssignments::getCapacity(), getTravelTime(), 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 195 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::getEffort(), ROEdge::getEmissionEffort(), ROEdge::getLanes(), and ROEdge::getNoiseEffort().
|
inlineinherited |
Returns the following edges.
Definition at line 287 of file ROEdge.h.
References ROEdge::getNumPredecessors(), and ROEdge::myFollowingEdges.
Referenced by RODFNet::buildApproachList(), and ROEdge::isConnectedTo().
|
inherited |
Returns the following edges, restricted by vClass.
[in] | vClass | The vClass for which to restrict the successors |
Definition at line 287 of file ROEdge.cpp.
References ROEdge::ET_DISTRICT, ROLane::getEdge(), RONet::getInstance(), ROLane::getOutgoingLanes(), ROLane::getPermissions(), ROEdge::myAmParallel, ROEdge::myClassesSuccessorMap, ROEdge::myFollowingEdges, ROEdge::myFunc, ROEdge::myLanes, and SVC_IGNORING.
|
inlineinherited |
Definition at line 425 of file ROEdge.h.
References ROEdge::myToJunction.
Referenced by RODFNet::buildApproachList(), AGPosition::compute2dPosition(), and ROEdge::getDistanceTo().
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 160 of file ROEdge.cpp.
References ValueTimeLine< T >::describesTime(), ROEdge::getMinimumTravelTime(), ValueTimeLine< T >::getSplitTime(), ROVehicle::getType(), ValueTimeLine< T >::getValue(), MAX2(), SUMOVTypeParameter::maxSpeed, MIN2(), ROEdge::myHaveTTWarned, Named::myID, ROEdge::myInterpolate, ROEdge::myLength, ROEdge::mySpeed, ROEdge::myTravelTimes, ROEdge::myUsingTTTimeLine, SUMOVTypeParameter::speedFactor, SUMOReal, toString(), and WRITE_WARNING.
Referenced by ROJTRRouter::compute(), ROEdge::getEmissionEffort(), ROMAAssignments::getPenalizedTT(), ROEdge::getPredecessors(), ROMAAssignments::getTravelTime(), ROEdge::getTravelTimeStatic(), ROMAAssignments::incremental(), and writeInterval().
|
inlinestaticinherited |
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 365 of file ROEdge.h.
References ROEdge::getTravelTime().
Referenced by computeRoutes().
SUMOReal AGStreet::getWorkplaceNumber | ( | ) | const |
Provides the number of work places in this street.
Definition at line 68 of file AGStreet.cpp.
References myNumWorkplaces.
Referenced by AGStreet::Builder::buildEdge().
|
inherited |
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 154 of file ROEdge.cpp.
References ValueTimeLine< T >::describesTime(), ROEdge::myTravelTimes, ROEdge::myUsingTTTimeLine, and SUMOReal.
Referenced by ROEdge::getPredecessors(), and ROMAAssignments::incremental().
|
inherited |
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 340 of file ROEdge.cpp.
References ROEdge::getSuccessors(), ROVehicle::getVClass(), and SVC_IGNORING.
Referenced by ROEdge::getLaneNo().
|
inlineinherited |
return whether this edge is a pedestrian crossing
Definition at line 156 of file ROEdge.h.
References ROEdge::ET_CROSSING, and ROEdge::myFunc.
|
inlineinherited |
return whether this edge is an internal edge
Definition at line 151 of file ROEdge.h.
References ROEdge::ET_INTERNAL, and ROEdge::myFunc.
|
inlineinherited |
return whether this edge is walking area
Definition at line 161 of file ROEdge.h.
References ROEdge::buildTimeLines(), ROEdge::ET_WALKINGAREA, and ROEdge::myFunc.
void AGStreet::print | ( | ) | const |
Prints a summary of the properties of this street to standard output.
Definition at line 50 of file AGStreet.cpp.
References Named::getID(), ROEdge::getLength(), myNumWorkplaces, myPopulation, and SUMOReal.
Referenced by AGStreet::Builder::buildEdge().
|
inlineinherited |
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 235 of file ROEdge.h.
References ROVehicle::getVClass(), and ROEdge::myCombinedPermissions.
Referenced by ROJTREdge::chooseNext(), and ROJTRRouter::compute().
|
inlineinherited |
Sets the function of the edge.
[in] | func | The new function for the edge |
Definition at line 137 of file ROEdge.h.
References ROEdge::myFunc.
Referenced by RONet::addDistrict(), loadJTRDefinitions(), ROJTRTurnDefLoader::myStartElement(), and RONetHandler::parseEdge().
|
inlinestaticinherited |
Definition at line 409 of file ROEdge.h.
References ROEdge::myAmParallel, and ROEdge::myInterpolate.
Referenced by initNet().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 73 of file Named.h.
References Named::myID.
Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().
void AGStreet::setPopulation | ( | const SUMOReal | pop | ) |
Modifies the number of persons living in this street.
[in] | pop | the new number of inhabitants |
Definition at line 62 of file AGStreet.cpp.
References myPopulation, and SUMOReal.
Referenced by AGStreet::Builder::buildEdge(), and AGActivityGenHandler::parseStreets().
|
inlineinherited |
Sets the vehicle class specific speed limits of the edge.
[in] | restrictions | The restrictions for the edge |
Definition at line 145 of file ROEdge.h.
References ROEdge::myRestrictions.
Referenced by RONetHandler::parseEdge().
void AGStreet::setWorkplaceNumber | ( | const SUMOReal | work | ) |
Modifies the number of work places in this street.
[in] | work | the new number of work places |
Definition at line 74 of file AGStreet.cpp.
References myNumWorkplaces.
Referenced by AGStreet::Builder::buildEdge(), and AGActivityGenHandler::parseStreets().
|
staticprotectedinherited |
Information whether we are routing multi-threaded.
Definition at line 480 of file ROEdge.h.
Referenced by ROEdge::getSuccessors(), and ROEdge::setGlobalOptions().
|
protectedinherited |
List of edges that approached this edge.
Definition at line 491 of file ROEdge.h.
Referenced by ROEdge::addSuccessor(), ROEdge::getNumPredecessors(), and ROEdge::getPredecessors().
|
mutableprotectedinherited |
The successors available for a given vClass.
Definition at line 509 of file ROEdge.h.
Referenced by ROEdge::getSuccessors().
|
protectedinherited |
The list of allowed vehicle classes combined across lanes.
Definition at line 503 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::getPermissions(), ROEdge::prohibits(), and ROEdge::ROEdge().
|
staticprotectedinherited |
Definition at line 505 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 472 of file ROEdge.h.
Referenced by ROEdge::addEffort(), ROEdge::buildTimeLines(), and ROEdge::getStoredEffort().
|
protectedinherited |
List of edges that may be approached from this edge.
Definition at line 488 of file ROEdge.h.
Referenced by ROEdge::addSuccessor(), ROEdge::allFollowersProhibit(), ROJTREdge::chooseNext(), ROEdge::getNumSuccessors(), ROEdge::getSuccessors(), and ROJTREdge::setTurnDefaults().
|
protectedinherited |
the junctions for this edge
Definition at line 450 of file ROEdge.h.
Referenced by ROEdge::getFromJunction().
|
protectedinherited |
The function of the edge.
Definition at line 494 of file ROEdge.h.
Referenced by ROEdge::getFunc(), ROEdge::getSuccessors(), ROEdge::isCrossing(), ROEdge::isInternal(), ROEdge::isWalkingArea(), and ROEdge::setFunc().
|
staticprotectedinherited |
Information whether the edge has reported missing weights.
Definition at line 483 of file ROEdge.h.
Referenced by ROEdge::getStoredEffort().
|
staticprotectedinherited |
Information whether the edge has reported missing weights.
Definition at line 485 of file ROEdge.h.
Referenced by ROEdge::getTravelTime().
|
protectedinherited |
The name of the object.
Definition at line 133 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(), MSCalibrator::init(), NBEdge::init(), MSCalibrator::myStartElement(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), RORouteDef::repairCurrentRoute(), Named::setID(), NBEdge::splitGeometry(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protectedinherited |
The index (numeric id) of the edge.
Definition at line 454 of file ROEdge.h.
Referenced by ROEdge::getNumericalID().
|
staticprotectedinherited |
Information whether to interpolate at interval boundaries.
Definition at line 477 of file ROEdge.h.
Referenced by ROEdge::getStoredEffort(), ROEdge::getTravelTime(), and ROEdge::setGlobalOptions().
|
protectedinherited |
This edge's lanes.
Definition at line 500 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::getLaneNo(), ROEdge::getLanes(), ROEdge::getSuccessors(), and ROEdge::~ROEdge().
|
protectedinherited |
The length of the edge.
Definition at line 463 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::buildTimeLines(), ROEdge::getEffort(), ROEdge::getLength(), ROEdge::getMinimumTravelTime(), and ROEdge::getTravelTime().
|
private |
Definition at line 117 of file AGStreet.h.
Referenced by getWorkplaceNumber(), print(), and setWorkplaceNumber().
|
private |
Definition at line 116 of file AGStreet.h.
Referenced by getPopulation(), print(), and setPopulation().
|
protectedinherited |
The edge priority (road class)
Definition at line 457 of file ROEdge.h.
Referenced by ROEdge::getPriority().
|
protectedinherited |
The vClass speed restrictions for this edge.
Definition at line 497 of file ROEdge.h.
Referenced by ROEdge::setRestrictions().
|
protectedinherited |
The maximum speed allowed on this edge.
Definition at line 460 of file ROEdge.h.
Referenced by ROEdge::addLane(), ROEdge::buildTimeLines(), ROEdge::getEffort(), ROEdge::getEmissionEffort(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getSpeed(), and ROEdge::getTravelTime().
|
protectedinherited |
Definition at line 451 of file ROEdge.h.
Referenced by ROEdge::getToJunction().
|
mutableprotectedinherited |
Container storing passing time varying over time for the edge.
Definition at line 467 of file ROEdge.h.
Referenced by ROEdge::addTravelTime(), ROEdge::buildTimeLines(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), and ROEdge::hasLoadedTravelTime().
|
protectedinherited |
Information whether the time line shall be used instead of the length value.
Definition at line 474 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 469 of file ROEdge.h.
Referenced by ROEdge::addTravelTime(), ROEdge::buildTimeLines(), ROEdge::getTravelTime(), and ROEdge::hasLoadedTravelTime().