![]() |
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 More... | |
Public Member Functions | |
void | clearParameter () |
Clears the parameter map. More... | |
Connection (int fromLane_, NBEdge *toEdge_, int toLane_) | |
Constructor. More... | |
Connection (int fromLane_, NBEdge *toEdge_, int toLane_, bool mayDefinitelyPass_, KeepClear keepClear_=KEEPCLEAR_UNSPECIFIED, double contPos_=UNSPECIFIED_CONTPOS, double visibility_=UNSPECIFIED_VISIBILITY_DISTANCE, double speed_=UNSPECIFIED_SPEED, double friction_=UNSPECIFIED_FRICTION, double length_=myDefaultConnectionLength, bool haveVia_=false, bool uncontrolled_=false, const PositionVector &customShape_=PositionVector::EMPTY, SVCPermissions permissions=SVC_UNSPECIFIED, bool indirectLeft=false, const std::string &edgeType="", SVCPermissions changeLeft_=SVC_UNSPECIFIED, SVCPermissions changeRight_=SVC_UNSPECIFIED) | |
constructor with more parameters More... | |
std::string | getDescription (const NBEdge *parent) const |
get string describing this connection More... | |
double | getDouble (const std::string &key, const double defaultValue) const |
Returns the value for a given key converted to a double. More... | |
std::vector< double > | getDoubles (const std::string &key, std::vector< double > defaultValue=std::vector< double >()) const |
Returns the value for a given key converted to a list of doubles. More... | |
std::string | getInternalLaneID () const |
get ID of internal lane More... | |
virtual const std::string | getParameter (const std::string &key, const std::string defaultValue="") const |
Returns the value for a given key. More... | |
const Parameterised::Map & | getParametersMap () const |
Returns the inner key/value map. More... | |
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". More... | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
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. More... | |
void | setParameters (const Parameterised ¶ms) |
set the inner key/value map in map<string, string> format More... | |
void | setParametersMap (const Parameterised::Map ¶msMap) |
set the inner key/value map in map<string, string> format More... | |
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" More... | |
void | unsetParameter (const std::string &key) |
Removes a parameter. More... | |
void | updateParameters (const Parameterised::Map &mapArg) |
Adds or updates all given parameters from the map. More... | |
void | writeParams (OutputDevice &device) const |
write Params in the given outputdevice More... | |
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) More... | |
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" More... | |
static double | getTravelTimeStatic (const NBRouterEdge *const edge, const NBVehicle *const, double) |
Data Fields | |
SVCPermissions | changeLeft |
List of vehicle types that are allowed to change Left from this connections internal lane(s) More... | |
SVCPermissions | changeRight |
List of vehicle types that are allowed to change right from this connections internal lane(s) More... | |
double | contPos |
custom position for internal junction on this connection More... | |
double | customLength |
custom length for connection More... | |
PositionVector | customShape |
custom shape for connection More... | |
std::string | edgeType |
optional type of Connection More... | |
std::vector< std::string > | foeIncomingLanes |
FOE Incomings lanes. More... | |
std::vector< int > | foeInternalLinks |
FOE Internal links. More... | |
double | friction |
int | fromLane |
The lane the connections starts at. More... | |
bool | haveVia |
check if Connection have a Via More... | |
std::string | id |
id of Connection More... | |
bool | indirectLeft |
Whether this connection is an indirect left turn. More... | |
int | internalLaneIndex |
The lane index of this internal lane within the internal edge. More... | |
KeepClear | keepClear |
whether the junction must be kept clear when using this connection More... | |
double | length |
computed length (average of all internal lane shape lengths that share an internal edge) More... | |
bool | mayDefinitelyPass |
Information about being definitely free to drive (on-ramps) More... | |
SVCPermissions | permissions |
List of vehicle types that are allowed on this connection. More... | |
PositionVector | shape |
shape of Connection More... | |
double | speed |
custom speed for connection More... | |
std::string | tlID |
The id of the traffic light that controls this connection. More... | |
int | tlLinkIndex |
The index of this connection within the controlling traffic light. More... | |
int | tlLinkIndex2 |
The index of the internal junction within the controlling traffic light (optional) More... | |
NBEdge * | toEdge |
The edge the connections yields in. More... | |
int | toLane |
The lane the connections yields in. More... | |
bool | uncontrolled |
check if Connection is uncontrolled More... | |
std::string | viaID |
if Connection have a via, ID of it More... | |
double | viaLength |
the length of the via shape (maybe customized) More... | |
PositionVector | viaShape |
shape of via More... | |
double | visibility |
custom foe visiblity for connection More... | |
double | vmax |
maximum velocity More... | |
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" More... | |
Private Attributes | |
Parameterised::Map | myMap |
The key->value map. More... | |
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) 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_ | ||
) |
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 100 of file NBEdge.cpp.
NBEdge::Connection::Connection | ( | int | fromLane_, |
NBEdge * | toEdge_, | ||
int | toLane_, | ||
bool | mayDefinitelyPass_, | ||
KeepClear | keepClear_ = KEEPCLEAR_UNSPECIFIED , |
||
double | contPos_ = UNSPECIFIED_CONTPOS , |
||
double | visibility_ = UNSPECIFIED_VISIBILITY_DISTANCE , |
||
double | speed_ = UNSPECIFIED_SPEED , |
||
double | friction_ = UNSPECIFIED_FRICTION , |
||
double | length_ = myDefaultConnectionLength , |
||
bool | haveVia_ = false , |
||
bool | uncontrolled_ = false , |
||
const PositionVector & | customShape_ = PositionVector::EMPTY , |
||
SVCPermissions | permissions = SVC_UNSPECIFIED , |
||
bool | indirectLeft = false , |
||
const std::string & | edgeType = "" , |
||
SVCPermissions | changeLeft_ = SVC_UNSPECIFIED , |
||
SVCPermissions | changeRight_ = SVC_UNSPECIFIED |
||
) |
constructor with more parameters
Definition at line 124 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 216 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), and WRITE_WARNING.
Referenced by GNEFrameAttributeModules::GenericDataAttributes::areAttributesValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), and GNETAZRelData::isValid().
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 197 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), and WRITE_WARNING.
Referenced by GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEEntryExitDetector::isValid(), GNEInductionLoopDetector::isValid(), GNEInstantInductionLoopDetector::isValid(), GNELaneAreaDetector::isValid(), GNEMultiEntryExitDetector::isValid(), GNEOverheadWire::isValid(), GNEParkingArea::isValid(), GNEParkingSpace::isValid(), GNERerouter::isValid(), GNERouteProbe::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNETractionSubstation::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEContainer::isValid(), GNEPerson::isValid(), GNERoute::isValid(), GNEVehicle::isValid(), GNEVType::isValid(), GNEConnection::isValid(), GNECrossing::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), GNELane::isValid(), GNELaneType::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNETLSEditorFrame::TLSAttributes::isValidParameters(), and GNEFrameAttributeModules::GenericDataAttributes::onCmdSetParameters().
|
inherited |
Clears the parameter map.
Definition at line 120 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 95 of file NBEdge.cpp.
References Named::getIDSecure(), and toString().
Referenced by NBEdge::buildInnerEdges(), NBEdgeCont::checkGrade(), NBNode::computeInternalLaneShape(), NWWriter_SUMO::getOppositeInternalID(), and NBRequest::getResponseString().
|
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 81 of file Parameterised.cpp.
References Parameterised::myMap, TL, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by MSDevice_Battery::buildVehicleDevices(), 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(), MSDevice_ElecHybrid::MSDevice_ElecHybrid(), and MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus().
|
inherited |
Returns the value for a given key converted to a list of doubles.
[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 99 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, TL, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by EnergyParams::EnergyParams().
|
inlinevirtual |
Implements NBRouterEdge.
Definition at line 328 of file NBEdge.h.
References id.
Referenced by NBNode::recheckVClassConnections().
std::string NBEdge::Connection::getInternalLaneID | ( | ) | const |
get ID of internal lane
Definition at line 89 of file NBEdge.cpp.
References internalLaneIndex, and toString().
Referenced by NWWriter_SUMO::getOppositeInternalID(), and NWWriter_SUMO::writeConnection().
|
inlinevirtual |
Implements NBRouterEdge.
Definition at line 334 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 71 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEGenericData::drawFilteredAttribute(), GNEConnection::drawGL(), GUIEdge::drawGL(), EnergyParams::EnergyParams(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSwarmTrafficLightLogic::getChangePlanProbability(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSSwarmTrafficLightLogic::getForgettingCox(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), RORoutable::getMaxSpeed(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSBaseVehicle::getPrefixedParameter(), MSSwarmTrafficLightLogic::getReinforcementMode(), GUIBaseVehicle::getScaleValue(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSDevice::getStringParam(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSRailSignalConstraint::getVehID(), MSTriggeredRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSAbstractLaneChangeModel::laneChangeOutput(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), and NWWriter_OpenDrive::writeRoadObjects().
|
inherited |
Returns the inner key/value map.
Definition at line 126 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), NLDetectorBuilder::endE3Detector(), GNEAccess::getACParametersMap(), GNECalibrator::getACParametersMap(), GNEDetector::getACParametersMap(), GNEMultiEntryExitDetector::getACParametersMap(), GNEOverheadWire::getACParametersMap(), GNEParkingSpace::getACParametersMap(), GNERerouter::getACParametersMap(), GNERouteProbe::getACParametersMap(), GNEStoppingPlace::getACParametersMap(), GNETAZ::getACParametersMap(), GNEVaporizer::getACParametersMap(), GNEVariableSpeedSign::getACParametersMap(), GNEDataInterval::getACParametersMap(), GNEDataSet::getACParametersMap(), GNEGenericData::getACParametersMap(), GNEContainer::getACParametersMap(), GNEPerson::getACParametersMap(), GNEPersonTrip::getACParametersMap(), GNERide::getACParametersMap(), GNERoute::getACParametersMap(), GNEStop::getACParametersMap(), GNETranship::getACParametersMap(), GNETransport::getACParametersMap(), GNEVehicle::getACParametersMap(), GNEVType::getACParametersMap(), GNEWalk::getACParametersMap(), GNEConnection::getACParametersMap(), GNECrossing::getACParametersMap(), GNEEdge::getACParametersMap(), GNEEdgeType::getACParametersMap(), GNEJunction::getACParametersMap(), GNELane::getACParametersMap(), GNELaneType::getACParametersMap(), GNEPOI::getACParametersMap(), GNEPoly::getACParametersMap(), MSRailSignalConstraint_Predecessor::getDescription(), GUILane::getParameterWindow(), GNESingleParametersDialog::GNESingleParametersDialog(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), NIImporter_OpenStreetMap::insertEdge(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), GNESingleParametersDialog::onCmdReset(), GNEVType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), 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 132 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEContainerStop::getAttribute(), GNEEntryExitDetector::getAttribute(), GNEInductionLoopDetector::getAttribute(), GNEInstantInductionLoopDetector::getAttribute(), GNELaneAreaDetector::getAttribute(), GNEMultiEntryExitDetector::getAttribute(), GNEOverheadWire::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingSpace::getAttribute(), GNERerouter::getAttribute(), GNERouteProbe::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNETractionSubstation::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEEdgeData::getAttribute(), GNEEdgeRelData::getAttribute(), GNETAZRelData::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNERoute::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNELaneType::getAttribute(), GNEPOI::getAttribute(), and GNEPoly::getAttribute().
|
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 346 of file NBEdge.h.
References myViaSuccessors, and UNUSED_PARAMETER.
|
inlinevirtual |
Reimplemented from NBRouterEdge.
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 251 of file Parameterised.cpp.
References StringTokenizer::getVector(), and SUMOXMLDefinitions::isValidParameterKey().
Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 65 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::append(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), and NWWriter_OpenDrive::writeRoadObjects().
|
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 NLHandler::addDistrict(), RONetHandler::addParam(), SUMORouteHandler::addParam(), ShapeHandler::addPOI(), NBEdge::append(), NBOwnTLDef::buildNemaPhases(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NIImporter_OpenDrive::loadNetwork(), MSStateHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLPTHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSRailCrossing::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), Parameterised::setParametersStr(), and Parameterised::updateParameters().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 148 of file Parameterised.cpp.
References Parameterised::getParametersMap(), Parameterised::myMap, and Parameterised::setParameter().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 159 of file Parameterised.cpp.
References Parameterised::myMap, and Parameterised::setParameter().
Referenced by GNESingleParametersDialog::onCmdAccept().
|
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 170 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().
Referenced by MSDevice_Taxi::initDispatch(), GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEContainerStop::setAttribute(), GNEEntryExitDetector::setAttribute(), GNEInductionLoopDetector::setAttribute(), GNEInstantInductionLoopDetector::setAttribute(), GNELaneAreaDetector::setAttribute(), GNEMultiEntryExitDetector::setAttribute(), GNEOverheadWire::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingSpace::setAttribute(), GNERerouter::setAttribute(), GNERouteProbe::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNETractionSubstation::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEEdgeData::setAttribute(), GNEEdgeRelData::setAttribute(), GNETAZRelData::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), GNEPOI::setAttribute(), and GNEPoly::setAttribute().
|
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(), and GNEVType::setAttribute().
|
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(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NLJunctionControlBuilder::closeTrafficLightLogic(), NBTrafficLightDefinition::compute(), NLDetectorBuilder::endE3Detector(), NIImporter_OpenStreetMap::insertEdge(), NBEdge::NBEdge(), and NBLoadedSUMOTLDef::NBLoadedSUMOTLDef().
|
inherited |
write Params in the given outputdevice
Definition at line 185 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 MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), SUMOVTypeParameter::write(), NBPTStop::write(), MSRailSignalConstraint_Predecessor::write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::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(), 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 |
List of vehicle types that are allowed to change Left from this connections internal lane(s)
Definition at line 272 of file NBEdge.h.
Referenced by GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
SVCPermissions NBEdge::Connection::changeRight |
List of vehicle types that are allowed to change right from this connections internal lane(s)
Definition at line 275 of file NBEdge.h.
Referenced by GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
double NBEdge::Connection::contPos |
custom position for internal junction on this connection
Definition at line 251 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 263 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 266 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::buildInnerEdges(), NBNode::computeInternalLaneShape(), GNEConnection::getAttribute(), GNEConnection::getConnectionShape(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), GNEConnection::setMoveShape(), GNEConnection::updateGeometry(), and NWWriter_SUMO::writeConnection().
std::string NBEdge::Connection::edgeType |
optional type of Connection
Definition at line 281 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 308 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges().
std::vector<int> NBEdge::Connection::foeInternalLinks |
FOE Internal links.
Definition at line 305 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges().
double NBEdge::Connection::friction |
Definition at line 260 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 227 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::addRestrictedLane(), NIXMLTrafficLightsHandler::addTlConnection(), NBEdge::buildInnerEdges(), NBRequest::checkLaneFoesByClass(), NBTrafficLightDefinition::collectAllLinks(), NBNode::computeInternalLaneShape(), NBEdge::connections_sorter(), NBEdge::debugPrintConnections(), NBNode::displaceShapeAtWidthChange(), GNEConnection::getAttribute(), NBNode::getConnectionIndex(), 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::redo(), GNEChange_Connection::redoName(), GNEEdge::removeConnection(), NBEdge::removeFromConnections(), NBRequest::rightTurnConflict(), GNEChange_Connection::undo(), GNEChange_Connection::undoName(), GNEConnection::updateGeometry(), GNEConnection::updateLinkState(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), and NWWriter_OpenDrive::writeInternalEdge().
bool NBEdge::Connection::haveVia |
check if Connection have a Via
Definition at line 293 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength(), NBEdge::buildInnerEdges(), NBNode::tlsContConflict(), GNEConnection::updateGeometry(), and NWWriter_SUMO::writeInternalConnections().
std::string NBEdge::Connection::id |
id of Connection
Definition at line 284 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), getID(), NWWriter_SUMO::writeInternalConnections(), NWWriter_OpenDrive::writeInternalEdge(), and NWWriter_SUMO::writeInternalEdges().
bool NBEdge::Connection::indirectLeft |
Whether this connection is an indirect left turn.
Definition at line 278 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), NBTrafficLightDefinition::collectAllLinks(), NBNode::computeInternalLaneShape(), GNEConnection::getAttribute(), NBRequest::indirectLeftTurnConflict(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
int NBEdge::Connection::internalLaneIndex |
The lane index of this internal lane within the internal edge.
Definition at line 311 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), getInternalLaneID(), and NWWriter_SUMO::writeInternalConnections().
KeepClear NBEdge::Connection::keepClear |
whether the junction must be kept clear when using this connection
Definition at line 248 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), GNEConnection::getAttribute(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
double NBEdge::Connection::length |
computed length (average of all internal lane shape lengths that share an internal edge)
Definition at line 323 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength(), and NWWriter_SUMO::getOppositeInternalID().
bool NBEdge::Connection::mayDefinitelyPass |
Information about being definitely free to drive (on-ramps)
Definition at line 245 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 137 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getDoubles(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::knowsParameter(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
|
static |
Definition at line 327 of file NBEdge.h.
Referenced by getViaSuccessors().
SVCPermissions NBEdge::Connection::permissions |
List of vehicle types that are allowed on this connection.
Definition at line 269 of file NBEdge.h.
Referenced by GNEConnection::getAttribute(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
PositionVector NBEdge::Connection::shape |
shape of Connection
Definition at line 287 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength(), NBEdge::buildInnerEdges(), GNETLSEditorFrame::buildInternalLanes(), NBEdgeCont::checkGrade(), getLength(), NBRequest::oppositeLeftTurnConflict(), and GNEConnection::updateGeometry().
double NBEdge::Connection::speed |
custom speed for connection
Definition at line 257 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 236 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), GNEConnection::getAttribute(), NBNode::needsCont(), NBEdge::setControllingTLInformation(), GNEConnection::updateLinkState(), NWWriter_SUMO::writeConnection(), and NWWriter_SUMO::writeInternalConnections().
int NBEdge::Connection::tlLinkIndex |
The index of this connection within the controlling traffic light.
Definition at line 239 of file NBEdge.h.
Referenced by NIXMLTrafficLightsHandler::addTlConnection(), GNEConnectorFrame::buildConnection(), GNEConnection::getAttribute(), GNEConnection::getNBConnection(), NBRequest::getResponseString(), GNEConnection::setAttribute(), NBEdge::setControllingTLInformation(), NBNode::tlsContConflict(), and NWWriter_SUMO::writeConnection().
int NBEdge::Connection::tlLinkIndex2 |
The index of the internal junction within the controlling traffic light (optional)
Definition at line 242 of file NBEdge.h.
Referenced by NIXMLTrafficLightsHandler::addTlConnection(), GNEConnection::getAttribute(), GNEConnection::getNBConnection(), GNEConnection::setAttribute(), NBEdge::setControllingTLInformation(), NWWriter_SUMO::writeConnection(), and NWWriter_SUMO::writeInternalConnections().
NBEdge* NBEdge::Connection::toEdge |
The edge the connections yields in.
Definition at line 230 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::addLane(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimTL::NIVissimTLSignal::addTo(), NBEdge::buildInnerEdges(), NBEdge::canMoveConnection(), NBRequest::checkLaneFoesByClass(), NBRequest::checkLaneFoesByCooperation(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedTLDef::collectLinks(), NBNode::computeInternalLaneShape(), NBEdge::connections_sorter(), NBEdge::debugPrintConnections(), NBNode::displaceShapeAtWidthChange(), GNEConnection::getAttribute(), NBNode::getConnectionIndex(), 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(), GNEChange_Connection::redo(), GNEEdge::removeConnection(), NBEdge::removeFromConnections(), NBRequest::rightTurnConflict(), GNEConnection::setAttribute(), NBNode::tlsContConflict(), GNEChange_Connection::undo(), GNEConnection::updateGeometry(), GNEConnection::updateLinkState(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeInternalConnections(), NWWriter_OpenDrive::writeInternalEdge(), and NWWriter_SUMO::writeInternalEdges().
int NBEdge::Connection::toLane |
The lane the connections yields in.
Definition at line 233 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), NBEdge::addLane(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimTL::NIVissimTLSignal::addTo(), NBEdge::buildInnerEdges(), NBEdge::canMoveConnection(), NBRequest::checkLaneFoesByClass(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedTLDef::collectLinks(), NBNode::computeInternalLaneShape(), NBEdge::connections_sorter(), NBEdge::debugPrintConnections(), NBNode::displaceShapeAtWidthChange(), GNEConnection::getAttribute(), NBNode::getConnectionIndex(), 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(), GNEChange_Connection::redo(), GNEEdge::removeConnection(), NBEdge::removeFromConnections(), GNEConnection::setAttribute(), GNEChange_Connection::undo(), GNEConnection::updateGeometry(), GNEConnection::updateLinkState(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeInternalConnections(), and NWWriter_OpenDrive::writeInternalEdge().
bool NBEdge::Connection::uncontrolled |
check if Connection is uncontrolled
Definition at line 314 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), GNEConnection::getAttribute(), GNEConnection::isValid(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), and NWWriter_SUMO::writeConnection().
std::string NBEdge::Connection::viaID |
if Connection have a via, ID of it
Definition at line 296 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), and NWWriter_SUMO::writeInternalConnections().
double NBEdge::Connection::viaLength |
the length of the via shape (maybe customized)
Definition at line 302 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength().
PositionVector NBEdge::Connection::viaShape |
shape of via
Definition at line 299 of file NBEdge.h.
Referenced by NBEdge::assignInternalLaneLength(), NBEdge::buildInnerEdges(), GNETLSEditorFrame::buildInternalLanes(), NBEdgeCont::checkGrade(), getLength(), NBRequest::oppositeLeftTurnConflict(), and GNEConnection::updateGeometry().
double NBEdge::Connection::visibility |
custom foe visiblity for connection
Definition at line 254 of file NBEdge.h.
Referenced by GNEEdge::addConnection(), GNEConnection::getAttribute(), NIXMLConnectionsHandler::parseLaneBound(), GNEConnection::setAttribute(), NWWriter_SUMO::writeConnection(), and NWWriter_SUMO::writeInternalConnections().
double NBEdge::Connection::vmax |
maximum velocity
Definition at line 290 of file NBEdge.h.
Referenced by NBEdge::buildInnerEdges(), getSpeed(), and NWWriter_OpenDrive::writeInternalEdge().