![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A structure which describes a connection between edges or lanes. More...
#include <NBEdge.h>
Public Types | |
| typedef std::map< std::string, std::string > | Map |
| parameters map | |
Public Member Functions | |
| void | clearParameter () |
| Clears the parameter map. | |
| Connection (int fromLane_, NBEdge *toEdge_, int toLane_, const bool mayDefinitelyPass_=false) | |
| Constructor. | |
| std::string | getDescription (const NBEdge *parent) const |
| get string describing this connection | |
| double | getDouble (const std::string &key, const double defaultValue) const |
| Returns the value for a given key converted to a double. | |
| std::string | getInternalLaneID () const |
| get ID of internal lane | |
| std::string | getInternalViaLaneID () const |
| get ID of internal lane (second part) | |
| virtual const std::string | getParameter (const std::string &key, const std::string defaultValue="") const |
| Returns the value for a given key. | |
| const Parameterised::Map & | getParametersMap () const |
| Returns the inner key/value map. | |
| std::string | getParametersStr (const std::string kvsep="=", const std::string sep="|") const |
| Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". | |
| bool | hasParameter (const std::string &key) const |
| Returns whether the parameter is set. | |
| void | mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true) |
| Adds or appends all given parameters from the map. | |
| bool | prohibits (const NBVehicle *const) const |
| bool | restricts (const NBVehicle *const) const |
| virtual void | setParameter (const std::string &key, const std::string &value) |
| Sets a parameter. | |
| void | setParameters (const Parameterised ¶ms) |
| set the given key/value map in map<string, string> format | |
| void | setParameters (const std::vector< std::pair< std::string, std::string > > ¶ms) |
| set the given key/value vector in map<string, string> format | |
| void | setParametersStr (const std::string ¶msString, const std::string kvsep="=", const std::string sep="|") |
| set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" | |
| void | unsetParameter (const std::string &key) |
| Removes a parameter. | |
| void | updateParameters (const Parameterised::Map &mapArg) |
| Adds or updates all given parameters from the map. | |
| void | writeParams (OutputDevice &device) const |
| write Params in the given outputdevice | |
Static Public Member Functions | |
| static bool | areAttributesValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|") |
| check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas) | |
| static bool | areParametersValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|") |
| check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN" | |
| static double | getTravelTimeStatic (const NBRouterEdge *const edge, const NBVehicle *const, double) |
Data Fields | |
| SVCPermissions | changeLeft = SVC_UNSPECIFIED |
| List of vehicle types that are allowed to change Left from this connections internal lane(s) | |
| SVCPermissions | changeRight = SVC_UNSPECIFIED |
| List of vehicle types that are allowed to change right from this connections internal lane(s) | |
| double | contPos = UNSPECIFIED_CONTPOS |
| custom position for internal junction on this connection | |
| double | customLength |
| custom length for connection | |
| PositionVector | customShape |
| custom shape for connection | |
| std::string | edgeType |
| optional type of Connection | |
| std::vector< std::string > | foeIncomingLanes |
| FOE Incomings lanes. | |
| std::vector< int > | foeInternalLinks |
| FOE Internal links. | |
| double | friction = UNSPECIFIED_FRICTION |
| int | fromLane |
| The lane the connections starts at. | |
| bool | haveVia = false |
| check if Connection have a Via | |
| std::string | id |
| id of Connection | |
| bool | indirectLeft = false |
| Whether this connection is an indirect left turn. | |
| int | internalLaneIndex = UNSPECIFIED_INTERNAL_LANE_INDEX |
| The lane index of this internal lane within the internal edge. | |
| int | internalViaLaneIndex = 0 |
| KeepClear | keepClear = KEEPCLEAR_UNSPECIFIED |
| whether the junction must be kept clear when using this connection | |
| double | length = UNSPECIFIED_LOADED_LENGTH |
| computed length (average of all internal lane shape lengths that share an internal edge) | |
| bool | mayDefinitelyPass |
| Information about being definitely free to drive (on-ramps) | |
| SVCPermissions | permissions = SVC_UNSPECIFIED |
| List of vehicle types that are allowed on this connection. | |
| PositionVector | shape |
| shape of Connection | |
| double | speed = UNSPECIFIED_SPEED |
| custom speed for connection | |
| std::string | tlID |
| The id of the traffic light that controls this connection. | |
| int | tlLinkIndex = -1 |
| The index of this connection within the controlling traffic light. | |
| int | tlLinkIndex2 = -1 |
| The index of the internal junction within the controlling traffic light (optional) | |
| NBEdge * | toEdge |
| The edge the connections yields in. | |
| int | toLane |
| The lane the connections yields in. | |
| bool | uncontrolled = false |
| check if Connection is uncontrolled | |
| std::string | viaID |
| if Connection have a via, ID of it | |
| double | viaLength = 0. |
| the length of the via shape (maybe customized) | |
| PositionVector | viaShape |
| shape of via | |
| double | visibility = UNSPECIFIED_VISIBILITY_DISTANCE |
| custom foe visiblity for connection | |
| double | vmax = UNSPECIFIED_SPEED |
| maximum velocity | |
Static Private Member Functions | |
| static bool | isParameterValid (const std::string &value, const std::string &kvsep, const std::string &sep) |
| check if given string can be parsed to a parameter of type "key=value" | |
Private Attributes | |
| Parameterised::Map | myMap |
| The key->value map. | |
NBRouterEdge interface | |
| static ConstRouterEdgePairVector | myViaSuccessors = ConstRouterEdgePairVector({ std::pair<NBRouterEdge*, NBRouterEdge*>(nullptr, nullptr) }) |
| const std::string & | getID () const |
| double | getSpeed () const |
| double | getLength () const |
| int | getNumericalID () const |
| const Connection * | getBidiEdge () const |
| bool | isInternal () const |
| const ConstRouterEdgePairVector & | getViaSuccessors (SUMOVehicleClass vClass=SVC_IGNORING, bool ignoreTransientPermissions=false) const |
A structure which describes a connection between edges or lanes.
|
inherited |
parameters map
Definition at line 45 of file Parameterised.h.
| NBEdge::Connection::Connection | ( | int | fromLane_, |
| NBEdge * | toEdge_, | ||
| int | toLane_, | ||
| const bool | mayDefinitelyPass_ = false |
||
| ) |
Constructor.
| [in] | fromLane_ | The lane the connections starts at |
| [in] | toEdge_ | The edge the connections yields in |
| [in] | toLane_ | The lane the connections yields in |
Definition at line 110 of file NBEdge.cpp.
|
staticinherited |
check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas)
Definition at line 207 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 188 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEAttributeCarrier::isCommonAttributeValid(), and GNETLSEditorFrame::TLSAttributes::isValidParameters().
|
inherited |
Clears the parameter map.
Definition at line 118 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing().
|
inlinevirtual |
Implements NBRouterEdge.
| std::string NBEdge::Connection::getDescription | ( | const NBEdge * | parent | ) | const |
get string describing this connection
Definition at line 104 of file NBEdge.cpp.
References Named::getIDSecure(), getVehicleClassNames(), SVC_UNSPECIFIED, and toString().
Referenced by NBEdge::buildInnerEdges(), NBEdgeCont::checkGrade(), NBNode::computeInternalLaneShape(), NWWriter_SUMO::getOppositeInternalID(), NBRequest::getResponseString(), and NBEdge::removeInvalidConnections().
|
inherited |
Returns the value for a given key converted to a double.
| [in] | key | The key to ask for |
| [in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 100 of file Parameterised.cpp.
References Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.
Referenced by MSPModel_JuPedSim::add(), MSVehicleType::build(), MSVehicleType::check(), EnergyParams::EnergyParams(), MSSOTLPolicy5DStimulus::getStimCox(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut(), MSSOTLPolicy5DStimulus::getStimCoxExpIn(), MSSOTLPolicy5DStimulus::getStimCoxExpOut(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut(), MSSOTLPolicy5DStimulus::getStimDivisorIn(), MSSOTLPolicy5DStimulus::getStimDivisorOut(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut(), MSSOTLPolicy5DStimulus::getStimOffsetIn(), MSSOTLPolicy5DStimulus::getStimOffsetOut(), MSActuatedTrafficLightLogic::init(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), and MSDevice_Battery::readParameterValue().
|
inlinevirtual |
Implements NBRouterEdge.
Definition at line 315 of file NBEdge.h.
References id.
Referenced by NBNode::recheckVClassConnections().
| std::string NBEdge::Connection::getInternalLaneID | ( | ) | const |
get ID of internal lane
Definition at line 92 of file NBEdge.cpp.
References internalLaneIndex, and toString().
Referenced by NWWriter_SUMO::getOppositeInternalID(), and NWWriter_SUMO::writeConnection().
| std::string NBEdge::Connection::getInternalViaLaneID | ( | ) | const |
get ID of internal lane (second part)
Definition at line 98 of file NBEdge.cpp.
References toString().
|
inlinevirtual |
Implements NBRouterEdge.
Definition at line 322 of file NBEdge.h.
References PositionVector::length(), shape, and viaShape.
|
inlinevirtual |
Implements NBRouterEdge.
|
virtualinherited |
Returns the value for a given key.
| [in] | key | The key to ask for |
| [in] | defaultValue | The default value to return if no value is stored under the key |
Reimplemented in MSActuatedTrafficLightLogic, MSSimpleTrafficLightLogic, and NEMALogic.
Definition at line 90 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSPModel_JuPedSim::add(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), NBEdgeCont::attachRemoved(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSVehicleType::check(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEConnection::drawEdgeValues(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), GUIPointOfInterest::drawGL(), GNEPOI::drawPOI(), EnergyParams::EnergyParams(), MSPModel_JuPedSim::execute(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), GUIBusStop::finishedLoading(), MSStoppingPlace::finishedLoading(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), RORoutable::getMaxSpeed(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_SSM::getOutputFilename(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSBaseVehicle::getPrefixedParameter(), GUIBaseVehicle::getScaleValue(), GNETAZRelData::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), SUMOTrafficObject::getStringParam(), MSRailSignalConstraint::getVeh(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSStoppingPlaceRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSInsertionControl::hasTaxiDeviceType(), MSRailSignalControl::haveDeadlock(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSStageDriving::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::initRailVisualizationParameters(), NIImporter_OpenStreetMap::insertNodeChecking(), MSAbstractLaneChangeModel::laneChangeOutput(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), MSVehicle::slowDownForSchedule(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), NBEdge::updateRemovedNodes(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPOI(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().
|
inherited |
Returns the inner key/value map.
Definition at line 124 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), NBEdge::addLane(), NBEdge::append(), LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), NLDetectorBuilder::endE3Detector(), MSRailSignalConstraint_Predecessor::getDescription(), NWWriter_OpenDrive::getDividerType(), GUILane::getParameterWindow(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), MSPModel_JuPedSim::initialize(), MSBaseVehicle::initTransientModelParams(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), GUIParameterTableWindow::numParams(), GNEVType::overwriteVType(), Parameterised::setParameters(), LIBSUMO_NAMESPACE::TrafficLight::swapConstraints(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().
|
inherited |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
Definition at line 130 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAttributeCarrier::getCommonAttribute().
|
inlinevirtual |
|
inlinestaticinherited |
Definition at line 82 of file NBEdge.h.
References NBRouterEdge::getLength(), and NBRouterEdge::getSpeed().
Referenced by NBPTLineCont::fixBidiStops(), GNEPathManager::PathCalculator::PathCalculator(), and GNEPathManager::PathCalculator::updatePathCalculator().
|
inlinevirtual |
Implements NBRouterEdge.
Definition at line 334 of file NBEdge.h.
References myViaSuccessors, and UNUSED_PARAMETER.
|
inherited |
Returns whether the parameter is set.
| [in] | key | The key to ask for |
Definition at line 84 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSStageWalking::activateEntryReminders(), NBEdge::append(), MSVehicleType::build(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), GUIBusStop::finishedLoading(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GNETAZRelData::getScaleValue(), MSStoppingPlaceRerouter::getWeight(), MSStageDriving::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSVehicle::slowDownForSchedule(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().
|
inlinevirtual |
Reimplemented from NBRouterEdge.
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 242 of file Parameterised.cpp.
References StringTokenizer::getVector(), and SUMOXMLDefinitions::isValidParameterKey().
Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().
|
inherited |
Adds or appends all given parameters from the map.
| [in] | mapArg | The keys/values to insert |
Definition at line 65 of file Parameterised.cpp.
References Parameterised::getParameter(), Parameterised::hasParameter(), and Parameterised::setParameter().
Referenced by NBEdge::append().
|
inlineinherited |
|
inlineinherited |
|
virtualinherited |
Sets a parameter.
| [in] | key | The parameter's name |
| [in] | value | The parameter's value |
Reimplemented in MSRailCrossing, MSActuatedTrafficLightLogic, MSRailSignal, MSSimpleTrafficLightLogic, and NEMALogic.
Definition at line 45 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdge(), NLHandler::addDistrict(), RONetHandler::addParam(), ShapeHandler::addPOI(), NBOwnTLDef::buildNemaPhases(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSStateHandler::closeVehicle(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), MSStateHandler::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), MSDevice_Bluelight::notifyMove(), NBRailwayTopologyAnalyzer::reverseEdges(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSRailCrossing::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), Parameterised::setParametersStr(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), Parameterised::updateParameters(), NBEdge::updateRemovedNodes(), NWWriter_OpenDrive::writeNetwork(), and NIImporter_OpenDrive::writeRoadObjects().
|
inherited |
set the given key/value map in map<string, string> format
Definition at line 146 of file Parameterised.cpp.
References Parameterised::getParametersMap(), and Parameterised::myMap.
Referenced by GNEVehicleFrame::buildVehicleOverRoute(), MSStageDriving::clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), GNEVehicleFrame::createPath(), and MSStageTrip::reroute().
|
inherited |
set the given key/value vector in map<string, string> format
Definition at line 152 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
| [in] | paramsString | A serialized key-value map |
| [in] | kvsep | The separater between key and value |
| [in] | sep | The separater between map entries |
Definition at line 161 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().
Referenced by MSDevice_Taxi::initDispatch(), and GNEAttributeCarrier::setCommonAttribute().
|
inherited |
Removes a parameter.
| [in] | key | The parameter's name |
Definition at line 51 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_OpenStreetMap::insertEdge(), MSLane::isInsertionSuccess(), GNEVType::setAttribute(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().
|
inherited |
Adds or updates all given parameters from the map.
| [in] | mapArg | The keys/values to insert |
Definition at line 57 of file Parameterised.cpp.
References Parameterised::setParameter().
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NLJunctionControlBuilder::closeTrafficLightLogic(), NBTrafficLightDefinition::compute(), NLDetectorBuilder::endE3Detector(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), and LIBSUMO_NAMESPACE::TrafficLight::swapConstraints().
|
inherited |
write Params in the given outputdevice
Definition at line 176 of file Parameterised.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by MSStageWaiting::routeOutput(), MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), MSStop::write(), SUMOVTypeParameter::write(), SUMOVehicleParameter::Stop::write(), NBPTStop::write(), MSRailSignalConstraint_Predecessor::write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNEEntryExitDetector::writeAdditional(), GNEInductionLoopDetector::writeAdditional(), GNEInstantInductionLoopDetector::writeAdditional(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNEOverheadWire::writeAdditional(), GNEParkingArea::writeAdditional(), GNEParkingSpace::writeAdditional(), GNERerouter::writeAdditional(), GNERouteProbe::writeAdditional(), GNETAZ::writeAdditional(), GNETractionSubstation::writeAdditional(), GNEVaporizer::writeAdditional(), GNEVariableSpeedSign::writeAdditional(), GNEPOI::writeAdditional(), GNEPoly::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), NWWriter_SUMO::writeTrafficLight(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().
| SVCPermissions NBEdge::Connection::changeLeft = SVC_UNSPECIFIED |
List of vehicle types that are allowed to change Left from this connections internal lane(s)
Definition at line 255 of file NBEdge.h.
Referenced by GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| SVCPermissions NBEdge::Connection::changeRight = SVC_UNSPECIFIED |
List of vehicle types that are allowed to change right from this connections internal lane(s)
Definition at line 258 of file NBEdge.h.
Referenced by GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| double NBEdge::Connection::contPos = UNSPECIFIED_CONTPOS |
custom position for internal junction on this connection
Definition at line 234 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::buildInnerEdges(), GNEConnection::getAttribute(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| double NBEdge::Connection::customLength |
custom length for connection
Definition at line 246 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::assignInternalLaneLength(), NBEdge::buildInnerEdges(), GNEConnection::getAttribute(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| PositionVector NBEdge::Connection::customShape |
custom shape for connection
Definition at line 249 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::buildInnerEdges(), NBNode::computeInternalLaneShape(), GNEConnection::getAttribute(), GNEConnection::getAttributePositionVector(), GNEConnection::getConnectionShape(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), GNEMoveElementConnection::setMoveShape(), GNEConnection::updateGeometry(), and NWWriter_SUMO::writeConnection().
| std::string NBEdge::Connection::edgeType |
optional type of Connection
Definition at line 264 of file NBEdge.h.
Referenced by GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| std::vector<std::string> NBEdge::Connection::foeIncomingLanes |
FOE Incomings lanes.
Definition at line 291 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges().
| std::vector<int> NBEdge::Connection::foeInternalLinks |
FOE Internal links.
Definition at line 288 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges().
| double NBEdge::Connection::friction = UNSPECIFIED_FRICTION |
Definition at line 243 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::buildInnerEdges(), and NIXMLConnectionsHandler::parseLaneBound().
| int NBEdge::Connection::fromLane |
The lane the connections starts at.
Definition at line 210 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::addRestrictedLane(), NIXMLTrafficLightsHandler::addTlConnection(), NBRequest::bidiConflict(), NBEdge::buildInnerEdges(), NBRequest::checkLaneFoesByClass(), NBTrafficLightDefinition::collectAllLinks(), NBNode::computeInternalLaneShape(), NBEdge::connections_sorter(), NBNode::displaceShapeAtWidthChange(), NBNode::findToLaneForPermissions(), GNEConnection::getAttribute(), NBNode::getConnectionIndex(), NBRequest::getFoesString(), NBEdge::getInternalLaneWidth(), NWWriter_SUMO::getOppositeInternalID(), NBRequest::getResponseString(), NBRequest::mergeConflict(), NBNode::needsCont(), NBEdge::connections_toedge_finder::operator()(), NBEdge::connections_toedgelane_finder::operator()(), NBEdge::connections_finder::operator()(), NBEdge::connections_conflict_finder::operator()(), NBEdge::connections_fromlane_finder::operator()(), NBRequest::oppositeLeftTurnConflict(), NBEdge::recheckLanes(), NBNode::recheckVClassConnections(), GNEChange_Connection::redoName(), GNEEdge::removeConnection(), NBEdge::removeFromConnections(), NBEdge::removeFromConnections(), NBEdge::removeInvalidConnections(), NBRequest::rightTurnConflict(), GNEConnection::setAttribute(), GNEChange_Connection::undoName(), GNEConnection::updateLinkState(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), and NWWriter_OpenDrive::writeInternalEdge().
| bool NBEdge::Connection::haveVia = false |
check if Connection have a Via
Definition at line 276 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength(), NBEdge::buildInnerEdges(), NBNode::tlsStrandedConflict(), and GNEConnection::updateGeometry().
| std::string NBEdge::Connection::id |
id of Connection
Definition at line 267 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), getID(), NWWriter_SUMO::getInternalBidi(), and NWWriter_OpenDrive::writeInternalEdge().
| bool NBEdge::Connection::indirectLeft = false |
Whether this connection is an indirect left turn.
Definition at line 261 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength(), NBEdge::buildInnerEdges(), NBTrafficLightDefinition::collectAllLinks(), NBNode::computeInternalLaneShape(), GNEConnection::getAttribute(), NBRequest::indirectLeftTurnConflict(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| int NBEdge::Connection::internalLaneIndex = UNSPECIFIED_INTERNAL_LANE_INDEX |
The lane index of this internal lane within the internal edge.
Definition at line 294 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), and getInternalLaneID().
| int NBEdge::Connection::internalViaLaneIndex = 0 |
Definition at line 295 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges().
| KeepClear NBEdge::Connection::keepClear = KEEPCLEAR_UNSPECIFIED |
whether the junction must be kept clear when using this connection
Definition at line 231 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), GNEConnection::getAttribute(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| double NBEdge::Connection::length = UNSPECIFIED_LOADED_LENGTH |
computed length (average of all internal lane shape lengths that share an internal edge)
Definition at line 310 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength(), NWWriter_SUMO::getInternalBidi(), and NWWriter_SUMO::getOppositeInternalID().
| bool NBEdge::Connection::mayDefinitelyPass |
Information about being definitely free to drive (on-ramps)
Definition at line 228 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), GNEConnectorFrame::buildConnection(), GNEConnection::getAttribute(), NBRequest::getResponseString(), NBRequest::mergeConflict(), NIXMLConnectionsHandler::parseLaneBound(), NBRequest::rightTurnConflict(), GNEConnection::setAttribute(), GNEConnection::updateLinkState(), and NWWriter_SUMO::writeConnection().
|
privateinherited |
The key->value map.
Definition at line 135 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::hasParameter(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParameters(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
|
static |
Definition at line 314 of file NBEdge.h.
Referenced by getViaSuccessors().
| SVCPermissions NBEdge::Connection::permissions = SVC_UNSPECIFIED |
List of vehicle types that are allowed on this connection.
Definition at line 252 of file NBEdge.h.
Referenced by GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| PositionVector NBEdge::Connection::shape |
shape of Connection
Definition at line 270 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength(), NBEdge::buildInnerEdges(), GNETLSEditorFrame::buildInternalLanes(), NBEdgeCont::checkGrade(), getLength(), NBRequest::oppositeLeftTurnConflict(), and GNEConnection::updateGeometry().
| double NBEdge::Connection::speed = UNSPECIFIED_SPEED |
custom speed for connection
Definition at line 240 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::buildInnerEdges(), GNEConnection::getAttribute(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| std::string NBEdge::Connection::tlID |
The id of the traffic light that controls this connection.
Definition at line 219 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), GNEConnection::getAttribute(), NBNode::needsCont(), NBEdge::setControllingTLInformation(), GNEConnection::updateLinkState(), and NWWriter_SUMO::writeConnection().
| int NBEdge::Connection::tlLinkIndex = -1 |
The index of this connection within the controlling traffic light.
Definition at line 222 of file NBEdge.h.
Referenced by NIXMLTrafficLightsHandler::addTlConnection(), GNEConnectorFrame::buildConnection(), GNEConnection::getAttribute(), GNEConnection::getNBConnection(), NBRequest::getResponseString(), GNEConnection::setAttribute(), NBEdge::setControllingTLInformation(), NBNode::tlsStrandedConflict(), and NWWriter_SUMO::writeConnection().
| int NBEdge::Connection::tlLinkIndex2 = -1 |
The index of the internal junction within the controlling traffic light (optional)
Definition at line 225 of file NBEdge.h.
Referenced by NIXMLTrafficLightsHandler::addTlConnection(), GNEConnection::getAttribute(), GNEConnection::getNBConnection(), GNEConnection::setAttribute(), NBEdge::setControllingTLInformation(), and NWWriter_SUMO::writeConnection().
| NBEdge* NBEdge::Connection::toEdge |
The edge the connections yields in.
Definition at line 213 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimTL::NIVissimTLSignal::addTo(), NBRequest::bidiConflict(), NBEdge::buildInnerEdges(), NBEdge::canMoveConnection(), NBRequest::checkLaneFoesByClass(), NBRequest::checkLaneFoesByCooperation(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedTLDef::collectLinks(), NBNode::computeInternalLaneShape(), NBEdge::connections_sorter(), NBNode::displaceShapeAtWidthChange(), GNEConnection::getAttribute(), NBNode::getConnectionIndex(), NBRequest::getFoesString(), NWWriter_SUMO::getInternalBidi(), NBEdge::getInternalLaneWidth(), NWWriter_SUMO::getOppositeInternalID(), NBRequest::getResponseString(), NBRequest::indirectLeftTurnConflict(), NBRequest::mergeConflict(), NBEdge::moveConnectionToLeft(), NBEdge::moveConnectionToRight(), NBNode::needsCont(), NBEdge::connections_toedge_finder::operator()(), NBEdge::connections_toedgelane_finder::operator()(), NBEdge::connections_finder::operator()(), NBEdge::connections_conflict_finder::operator()(), NBEdge::connections_relative_edgelane_sorter::operator()(), NBRequest::oppositeLeftTurnConflict(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NBNode::recheckVClassConnections(), GNEEdge::removeConnection(), NBEdge::removeFromConnections(), NBEdge::removeFromConnections(), NBEdge::removeInvalidConnections(), NBRequest::rightTurnConflict(), GNEConnection::setAttribute(), NBNode::tlsStrandedConflict(), GNEConnection::updateLinkState(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), and NWWriter_OpenDrive::writeInternalEdge().
| int NBEdge::Connection::toLane |
The lane the connections yields in.
Definition at line 216 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimTL::NIVissimTLSignal::addTo(), NBRequest::bidiConflict(), NBEdge::buildInnerEdges(), NBEdge::canMoveConnection(), NBRequest::checkLaneFoesByClass(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedTLDef::collectLinks(), NBNode::computeInternalLaneShape(), NBEdge::connections_sorter(), NBNode::displaceShapeAtWidthChange(), GNEConnection::getAttribute(), NBNode::getConnectionIndex(), NBRequest::getFoesString(), NWWriter_SUMO::getOppositeInternalID(), NBRequest::getResponseString(), NBRequest::mergeConflict(), NBEdge::moveConnectionToLeft(), NBEdge::moveConnectionToRight(), NBNode::needsCont(), NBEdge::connections_toedgelane_finder::operator()(), NBEdge::connections_finder::operator()(), NBEdge::connections_relative_edgelane_sorter::operator()(), NBRequest::oppositeLeftTurnConflict(), NBEdge::recheckLanes(), NBNode::recheckVClassConnections(), GNEEdge::removeConnection(), NBEdge::removeFromConnections(), NBEdge::removeFromConnections(), NBEdge::removeInvalidConnections(), GNEConnection::setAttribute(), GNEConnection::updateLinkState(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), and NWWriter_OpenDrive::writeInternalEdge().
| bool NBEdge::Connection::uncontrolled = false |
check if Connection is uncontrolled
Definition at line 298 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), GNEConnection::getAttribute(), GNEConnection::isValid(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| std::string NBEdge::Connection::viaID |
if Connection have a via, ID of it
Definition at line 279 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges().
| double NBEdge::Connection::viaLength = 0. |
the length of the via shape (maybe customized)
Definition at line 285 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength().
| PositionVector NBEdge::Connection::viaShape |
shape of via
Definition at line 282 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength(), NBEdge::buildInnerEdges(), GNETLSEditorFrame::buildInternalLanes(), NBEdgeCont::checkGrade(), getLength(), NBRequest::oppositeLeftTurnConflict(), and GNEConnection::updateGeometry().
| double NBEdge::Connection::visibility = UNSPECIFIED_VISIBILITY_DISTANCE |
custom foe visiblity for connection
Definition at line 237 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), GNEConnection::getAttribute(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
| double NBEdge::Connection::vmax = UNSPECIFIED_SPEED |
maximum velocity
Definition at line 273 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength(), NBEdge::buildInnerEdges(), getSpeed(), and NWWriter_OpenDrive::writeInternalEdge().