![]() |
Eclipse SUMO - Simulation of Urban MObility
|
The representation of a single pt stop. More...
#include <NBPTStop.h>
Public Types | |
| typedef std::map< std::string, std::string > | Map |
| parameters map | |
Public Member Functions | |
| void | addAccess (std::string laneID, double offset, double length) |
| void | addLine (const std::string &line) |
| register line that services this stop (for displaying) | |
| void | addPlatformCand (NBPTPlatform platform) |
| void | clearAccess () |
| remove all access definitions | |
| void | clearParameter () |
| Clears the parameter map. | |
| bool | findLaneAndComputeBusStopExtent (const NBEdge *edge) |
| bool | findLaneAndComputeBusStopExtent (const NBEdgeCont &ec) |
| const std::map< std::string, std::string > & | getAdditionalEdgeCandidates () const |
| long long int | getAreaID () const |
| std::shared_ptr< NBPTStop > | getBidiStop () const |
| double | getDouble (const std::string &key, const double defaultValue) const |
| Returns the value for a given key converted to a double. | |
| const std::string & | getEdgeId () const |
| double | getEndPos () const |
| std::string | getID () const |
| bool | getIsMultipleStopPositions () const |
| const std::string & | getLaneId () const |
| double | getLength () const |
| const std::vector< std::string > & | getLines () const |
| const std::string | getName () const |
| const std::string | getOrigEdgeId () const |
| 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". | |
| SVCPermissions | getPermissions () const |
| const std::vector< NBPTPlatform > & | getPlatformCands () |
| const Position & | getPosition () const |
| bool | hasParameter (const std::string &key) const |
| Returns whether the parameter is set. | |
| bool | isLoose () const |
| bool | isPlatform () const |
| void | mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true) |
| Adds or appends all given parameters from the map. | |
| void | mirrorX () |
| mirror coordinates along the x-axis | |
| NBPTStop (std::string ptStopId, Position position, std::string edgeId, std::string origEdgeId, double length, std::string name, SVCPermissions svcPermissions, double parkingLength=0, const RGBColor color=RGBColor(false), double givenStartPos=-1) | |
| Constructor. | |
| void | registerAdditionalEdge (std::string wayId, std::string edgeId) |
| bool | replaceEdge (const std::string &edgeID, const std::vector< NBEdge * > &replacement) |
| replace the stop edge with the closest edge on the given edge list in all stops | |
| void | resetLoaded () |
| void | reshiftPosition (const double offsetX, const double offsetY) |
| void | setBidiStop (std::shared_ptr< NBPTStop > bidiStop) |
| bool | setEdgeId (std::string edgeId, const NBEdgeCont &ec) |
| void | setIsMultipleStopPositions (bool multipleStopPositions, long long int areaID) |
| void | setIsPlatform () |
| void | setOrigEdgeId (const std::string &origEdgeId) |
| 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 | setPTStopId (std::string id) |
| void | setPTStopLength (double ptStopLength) |
| void | unsetParameter (const std::string &key) |
| Removes a parameter. | |
| void | updateParameters (const Parameterised::Map &mapArg) |
| Adds or updates all given parameters from the map. | |
| bool | wasLoaded () const |
| void | write (OutputDevice &device) |
| void | writeParams (OutputDevice &device) const |
| write Params in the given outputdevice | |
| virtual | ~NBPTStop () |
| Destructor. | |
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" | |
Private Member Functions | |
| NBPTStop & | operator= (const NBPTStop &) |
| Invalidated assignment operator. | |
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 | |
| std::vector< std::tuple< std::string, double, double > > | myAccesses |
| laneId, lanePos, accessLength | |
| std::map< std::string, std::string > | myAdditionalEdgeCandidates |
| long long int | myAreaID |
| std::weak_ptr< NBPTStop > | myBidiStop |
| const RGBColor | myColor |
| std::string | myEdgeId |
| double | myEndPos |
| double | myGivenStartPos |
| bool | myIsLoose |
| whether the stop was not part of the road network and must be mapped | |
| bool | myIsMultipleStopPositions |
| bool | myIsPlatform |
| whether this stop was build from a platform position | |
| std::string | myLaneId |
| std::vector< std::string > | myLines |
| list of public transport lines (for displaying) | |
| Parameterised::Map | myMap |
| The key->value map. | |
| const std::string | myName |
| std::string | myOrigEdgeId |
| const double | myParkingLength |
| const SVCPermissions | myPermissions |
| std::vector< NBPTPlatform > | myPlatformCands |
| Position | myPosition |
| std::string | myPTStopId |
| double | myPTStopLength |
| double | myStartPos |
The representation of a single pt stop.
Definition at line 45 of file NBPTStop.h.
|
inherited |
parameters map
Definition at line 45 of file Parameterised.h.
| NBPTStop::NBPTStop | ( | std::string | ptStopId, |
| Position | position, | ||
| std::string | edgeId, | ||
| std::string | origEdgeId, | ||
| double | length, | ||
| std::string | name, | ||
| SVCPermissions | svcPermissions, | ||
| double | parkingLength = 0, | ||
| const RGBColor | color = RGBColor(false), | ||
| double | givenStartPos = -1 ) |
Constructor.
| [in] | id | The id of the pt stop |
| [in] | position | The position of the pt stop |
| [in] | edgeId | The edge id of the pt stop |
| [in] | length | The length of the pt stop |
| [in] | color | ptStop color |
| [in] | givenStartPos | Loaded startPos (and implicit endPos) that should not be adapted |
Definition at line 33 of file NBPTStop.cpp.
References myAreaID, myBidiStop, myColor, myEdgeId, myEndPos, myGivenStartPos, myIsLoose, myIsMultipleStopPositions, myIsPlatform, myName, myOrigEdgeId, myParkingLength, myPermissions, myPosition, myPTStopId, myPTStopLength, myStartPos, and NBPTStop().
Referenced by NBPTStop(), and operator=().
|
inlinevirtual |
Destructor.
Definition at line 60 of file NBPTStop.h.
| void NBPTStop::addAccess | ( | std::string | laneID, |
| double | offset, | ||
| double | length ) |
Definition at line 245 of file NBPTStop.cpp.
References SUMOXMLDefinitions::getEdgeIDFromLane(), and myAccesses.
| void NBPTStop::addLine | ( | const std::string & | line | ) |
register line that services this stop (for displaying)
Definition at line 92 of file NBPTStop.cpp.
References StringUtils::escapeXML(), and myLines.
| void NBPTStop::addPlatformCand | ( | NBPTPlatform | platform | ) |
Definition at line 152 of file NBPTStop.cpp.
References myPlatformCands.
|
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(), invalid_return< std::string >::value, 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(), invalid_return< std::string >::value, isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEAttributeCarrier::isCommonAttributeValid(), and GNETLSEditorFrame::TLSAttributes::isValidParameters().
| void NBPTStop::clearAccess | ( | ) |
remove all access definitions
Definition at line 239 of file NBPTStop.cpp.
References myAccesses.
Referenced by replaceEdge().
|
inherited |
| bool NBPTStop::findLaneAndComputeBusStopExtent | ( | const NBEdge * | edge | ) |
Definition at line 203 of file NBPTStop.cpp.
References NBEdge::getFinalLength(), NBEdge::getID(), NBEdge::getLaneID(), NBEdge::getLanes(), NBEdge::getLaneShape(), getPermissions(), getPosition(), PositionVector::length2D(), MAX2(), MIN2(), myEdgeId, myEndPos, myGivenStartPos, myLaneId, myPTStopLength, myStartPos, PositionVector::nearest_offset_to_point2D(), and wasLoaded().
| bool NBPTStop::findLaneAndComputeBusStopExtent | ( | const NBEdgeCont & | ec | ) |
Definition at line 196 of file NBPTStop.cpp.
References findLaneAndComputeBusStopExtent(), NBEdgeCont::getByID(), and myEdgeId.
Referenced by findLaneAndComputeBusStopExtent(), replaceEdge(), and setEdgeId().
|
inline |
Definition at line 157 of file NBPTStop.h.
References myAdditionalEdgeCandidates.
|
inline |
Definition at line 78 of file NBPTStop.h.
References myAreaID.
|
inline |
Definition at line 135 of file NBPTStop.h.
References myBidiStop.
|
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 myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.
Referenced by MSPModel_JuPedSim::add(), MSVehicleType::build(), 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().
| const std::string & NBPTStop::getEdgeId | ( | ) | const |
Definition at line 68 of file NBPTStop.cpp.
References myEdgeId.
|
inline |
Definition at line 143 of file NBPTStop.h.
References myEndPos.
| std::string NBPTStop::getID | ( | ) | const |
Definition at line 56 of file NBPTStop.cpp.
References myPTStopId.
| bool NBPTStop::getIsMultipleStopPositions | ( | ) | const |
Definition at line 164 of file NBPTStop.cpp.
References myIsMultipleStopPositions.
|
inline |
Definition at line 66 of file NBPTStop.h.
References myLaneId.
| double NBPTStop::getLength | ( | ) | const |
Definition at line 177 of file NBPTStop.cpp.
References myPTStopLength.
|
inline |
Definition at line 147 of file NBPTStop.h.
References myLines.
| const std::string NBPTStop::getName | ( | ) | const |
Definition at line 74 of file NBPTStop.cpp.
References myName.
| const std::string NBPTStop::getOrigEdgeId | ( | ) | const |
Definition at line 62 of file NBPTStop.cpp.
References myOrigEdgeId.
|
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 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(), 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(), 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(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), MSBaseVehicle::getPrefixedParameter(), 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(), NWWriter_OpenDrive::mapmatchRoadObjects(), mergeParameters(), MSDispatch_Greedy::MSDispatch_Greedy(), MSDispatch_GreedyShared::MSDispatch_GreedyShared(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), 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(), 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 myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), NBEdge::addLane(), NBEdge::append(), LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), GUIParameterTableWindow::closeBuilding(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), MSRailSignalConstraint_Predecessor::getDescription(), NWWriter_OpenDrive::getDividerType(), GUILane::getParameterWindow(), GNEEdgeType::GNEEdgeType(), GNERoute::GNERoute(), GNERoute::GNERoute(), MSActuatedTrafficLightLogic::init(), MSRailCrossing::init(), MSDevice_Taxi::initDispatch(), MSPModel_JuPedSim::initialize(), NIImporter_OpenStreetMap::insertEdge(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), GUIParameterTableWindow::numParams(), GNEVType::overwriteVType(), 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 myMap.
Referenced by GNEAttributeCarrier::getCommonAttribute().
| SVCPermissions NBPTStop::getPermissions | ( | ) | const |
Definition at line 146 of file NBPTStop.cpp.
References myPermissions.
Referenced by findLaneAndComputeBusStopExtent().
| const std::vector< NBPTPlatform > & NBPTStop::getPlatformCands | ( | ) |
Definition at line 158 of file NBPTStop.cpp.
References myPlatformCands.
| const Position & NBPTStop::getPosition | ( | ) | const |
Definition at line 80 of file NBPTStop.cpp.
References myPosition.
Referenced by findLaneAndComputeBusStopExtent().
|
inherited |
Returns whether the parameter is set.
| [in] | key | The key to ask for |
Definition at line 84 of file Parameterised.cpp.
References 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(), 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(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().
|
inline |
Definition at line 139 of file NBPTStop.h.
References myIsLoose.
|
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(), invalid_return< std::string >::value, and SUMOXMLDefinitions::isValidParameterKey().
Referenced by areAttributesValid(), and areParametersValid().
|
inline |
Definition at line 120 of file NBPTStop.h.
References myIsPlatform.
|
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 getParameter(), hasParameter(), and setParameter().
Referenced by NBEdge::append().
| void NBPTStop::mirrorX | ( | ) |
mirror coordinates along the x-axis
Definition at line 86 of file NBPTStop.cpp.
References myPosition.
Invalidated assignment operator.
References NBPTStop().
| void NBPTStop::registerAdditionalEdge | ( | std::string | wayId, |
| std::string | edgeId ) |
Definition at line 190 of file NBPTStop.cpp.
References myAdditionalEdgeCandidates.
| bool NBPTStop::replaceEdge | ( | const std::string & | edgeID, |
| const std::vector< NBEdge * > & | replacement ) |
replace the stop edge with the closest edge on the given edge list in all stops
Definition at line 260 of file NBPTStop.cpp.
References clearAccess(), findLaneAndComputeBusStopExtent(), NBEdge::getPermissions(), MAX2(), myEdgeId, myPermissions, myPosition, myPTStopLength, and SVC_PEDESTRIAN.
|
inline |
Definition at line 112 of file NBPTStop.h.
References myGivenStartPos.
| void NBPTStop::reshiftPosition | ( | const double | offsetX, |
| const double | offsetY ) |
Definition at line 137 of file NBPTStop.cpp.
References myPlatformCands, and myPosition.
|
inline |
Definition at line 131 of file NBPTStop.h.
References myBidiStop.
| bool NBPTStop::setEdgeId | ( | std::string | edgeId, |
| const NBEdgeCont & | ec ) |
Definition at line 183 of file NBPTStop.cpp.
References findLaneAndComputeBusStopExtent(), and myEdgeId.
| void NBPTStop::setIsMultipleStopPositions | ( | bool | multipleStopPositions, |
| long long int | areaID ) |
Definition at line 170 of file NBPTStop.cpp.
References myAreaID, and myIsMultipleStopPositions.
|
inline |
Definition at line 116 of file NBPTStop.h.
References myIsPlatform.
|
inline |
Definition at line 160 of file NBPTStop.h.
References myOrigEdgeId.
|
virtualinherited |
Sets a parameter.
| [in] | key | The parameter's name |
| [in] | value | The parameter's value |
Reimplemented in MSActuatedTrafficLightLogic, MSRailCrossing, MSRailSignal, MSSimpleTrafficLightLogic, and NEMALogic.
Definition at line 45 of file Parameterised.cpp.
References invalid_return< std::string >::value, and myMap.
Referenced by MSCFModel_CACC::_v(), NBRailwayTopologyAnalyzer::addBidiEdge(), NLHandler::addDistrict(), NBOwnTLDef::buildNemaPhases(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSCFModel_CACC::freeSpeed(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), mergeParameters(), MSDevice_Bluelight::notifyMove(), MSDevice_Bluelight::resetVehicle(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), LIBSUMO_NAMESPACE::Simulation::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailCrossing::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), setParametersStr(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), 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 getParametersMap(), myMap, and Parameterised().
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 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(), myMap, and setParameter().
Referenced by MSDevice_Taxi::initDispatch(), and GNEAttributeCarrier::setCommonAttribute().
|
inline |
Definition at line 104 of file NBPTStop.h.
References myPTStopId.
|
inline |
Definition at line 163 of file NBPTStop.h.
References myPTStopLength.
|
inherited |
Removes a parameter.
| [in] | key | The parameter's name |
Definition at line 51 of file Parameterised.cpp.
References 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 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().
|
inline |
Definition at line 108 of file NBPTStop.h.
References myGivenStartPos.
Referenced by findLaneAndComputeBusStopExtent().
| void NBPTStop::write | ( | OutputDevice & | device | ) |
Definition at line 101 of file NBPTStop.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), myAccesses, myColor, myEndPos, myLaneId, myLines, myName, myParkingLength, myPTStopId, myStartPos, OutputDevice::openTag(), SUMO_ATTR_COLOR, SUMO_ATTR_ENDPOS, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LENGTH, SUMO_ATTR_LINES, SUMO_ATTR_NAME, SUMO_ATTR_PARKING_LENGTH, SUMO_ATTR_POSITION, SUMO_ATTR_STARTPOS, SUMO_TAG_ACCESS, SUMO_TAG_BUS_STOP, toString(), OutputDevice::writeAttr(), and Parameterised::writeParams().
|
inherited |
write Params in the given outputdevice
Definition at line 176 of file Parameterised.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by MSStageWaiting::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MSRailSignalConstraint_Predecessor::write(), NBPTStop::write(), SUMOVehicleParameter::Stop::write(), SUMOVTypeParameter::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(), GNEPOI::writeAdditional(), GNEPoly::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::writeLane(), NWWriter_SUMO::writeTrafficLight(), PointOfInterest::writeXML(), and SUMOPolygon::writeXML().
|
private |
laneId, lanePos, accessLength
Definition at line 184 of file NBPTStop.h.
Referenced by addAccess(), clearAccess(), and write().
|
private |
Definition at line 171 of file NBPTStop.h.
Referenced by getAdditionalEdgeCandidates(), and registerAdditionalEdge().
|
private |
Definition at line 199 of file NBPTStop.h.
Referenced by getAreaID(), NBPTStop(), and setIsMultipleStopPositions().
|
private |
Definition at line 189 of file NBPTStop.h.
Referenced by getBidiStop(), NBPTStop(), and setBidiStop().
|
private |
Definition at line 176 of file NBPTStop.h.
Referenced by NBPTStop(), and write().
|
private |
Definition at line 170 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), findLaneAndComputeBusStopExtent(), getEdgeId(), NBPTStop(), replaceEdge(), and setEdgeId().
|
private |
Definition at line 181 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), getEndPos(), NBPTStop(), and write().
|
private |
Definition at line 200 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), NBPTStop(), resetLoaded(), and wasLoaded().
|
private |
whether the stop was not part of the road network and must be mapped
Definition at line 192 of file NBPTStop.h.
Referenced by isLoose(), and NBPTStop().
|
private |
Definition at line 198 of file NBPTStop.h.
Referenced by getIsMultipleStopPositions(), NBPTStop(), and setIsMultipleStopPositions().
|
private |
whether this stop was build from a platform position
Definition at line 195 of file NBPTStop.h.
Referenced by isPlatform(), NBPTStop(), and setIsPlatform().
|
private |
Definition at line 177 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), getLaneId(), and write().
|
private |
list of public transport lines (for displaying)
Definition at line 187 of file NBPTStop.h.
Referenced by addLine(), getLines(), and write().
|
privateinherited |
The key->value map.
Definition at line 135 of file Parameterised.h.
Referenced by clearParameter(), getDouble(), getParameter(), getParametersMap(), getParametersStr(), hasParameter(), Parameterised(), setParameter(), setParameters(), setParameters(), setParametersStr(), unsetParameter(), and writeParams().
|
private |
Definition at line 174 of file NBPTStop.h.
Referenced by getName(), NBPTStop(), and write().
|
private |
Definition at line 172 of file NBPTStop.h.
Referenced by getOrigEdgeId(), NBPTStop(), and setOrigEdgeId().
|
private |
Definition at line 175 of file NBPTStop.h.
Referenced by NBPTStop(), and write().
|
private |
Definition at line 178 of file NBPTStop.h.
Referenced by getPermissions(), NBPTStop(), and replaceEdge().
|
private |
Definition at line 197 of file NBPTStop.h.
Referenced by addPlatformCand(), getPlatformCands(), and reshiftPosition().
|
private |
Definition at line 169 of file NBPTStop.h.
Referenced by getPosition(), mirrorX(), NBPTStop(), replaceEdge(), and reshiftPosition().
|
private |
Definition at line 168 of file NBPTStop.h.
Referenced by getID(), NBPTStop(), setPTStopId(), and write().
|
private |
Definition at line 173 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), getLength(), NBPTStop(), replaceEdge(), and setPTStopLength().
|
private |
Definition at line 180 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), NBPTStop(), and write().