![]() |
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 More... | |
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) More... | |
void | addPlatformCand (NBPTPlatform platform) |
void | clearAccess () |
remove all access definitions More... | |
void | clearParameter () |
Clears the parameter map. More... | |
bool | findLaneAndComputeBusStopExtent (const NBEdge *edge) |
bool | findLaneAndComputeBusStopExtent (const NBEdgeCont &ec) |
const std::map< std::string, std::string > & | getAdditionalEdgeCandidates () const |
long long int | getAreaID () const |
NBPTStop * | getBidiStop () const |
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... | |
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. 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... | |
SVCPermissions | getPermissions () const |
const std::vector< NBPTPlatform > & | getPlatformCands () |
const Position & | getPosition () const |
bool | isLoose () const |
bool | isPlatform () const |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
void | mirrorX () |
mirror coordinates along the x-axis More... | |
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. More... | |
void | registerAdditionalEdge (std::string wayId, std::string edgeId) |
bool | replaceEdge (const std::string &edgeID, const EdgeVector &replacement) |
replace the stop edge with the closest edge on the given edge list in all stops More... | |
void | reshiftPosition (const double offsetX, const double offsetY) |
void | setBidiStop (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. 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 | setPTStopId (std::string id) |
void | setPTStopLength (double ptStopLength) |
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 | write (OutputDevice &device) |
void | writeParams (OutputDevice &device) const |
write Params in the given outputdevice More... | |
virtual | ~NBPTStop () |
Destructor. 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... | |
Private Member Functions | |
NBPTStop & | operator= (const NBPTStop &) |
Invalidated assignment operator. 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 | |
std::vector< std::tuple< std::string, double, double > > | myAccesses |
laneId, lanePos, accessLength More... | |
std::map< std::string, std::string > | myAdditionalEdgeCandidates |
long long int | myAreaID |
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 More... | |
bool | myIsMultipleStopPositions |
bool | myIsPlatform |
whether this stop was build from a platform position More... | |
std::string | myLaneId |
std::vector< std::string > | myLines |
list of public transport lines (for displaying) More... | |
Parameterised::Map | myMap |
The key->value map. More... | |
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 46 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 32 of file NBPTStop.cpp.
|
inlinevirtual |
Destructor.
Definition at line 61 of file NBPTStop.h.
void NBPTStop::addAccess | ( | std::string | laneID, |
double | offset, | ||
double | length | ||
) |
Definition at line 244 of file NBPTStop.cpp.
References SUMOXMLDefinitions::getEdgeIDFromLane(), and myAccesses.
Referenced by NIXMLPTHandler::addAccess().
void NBPTStop::addLine | ( | const std::string & | line | ) |
register line that services this stop (for displaying)
Definition at line 91 of file NBPTStop.cpp.
References StringUtils::escapeXML(), and myLines.
void NBPTStop::addPlatformCand | ( | NBPTPlatform | platform | ) |
Definition at line 151 of file NBPTStop.cpp.
References myPlatformCands.
Referenced by NIImporter_OpenStreetMap::RelationHandler::myEndElement().
|
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().
void NBPTStop::clearAccess | ( | ) |
remove all access definitions
Definition at line 238 of file NBPTStop.cpp.
References myAccesses.
Referenced by replaceEdge().
|
inherited |
Clears the parameter map.
Definition at line 120 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing().
bool NBPTStop::findLaneAndComputeBusStopExtent | ( | const NBEdge * | edge | ) |
Definition at line 202 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, and PositionVector::nearest_offset_to_point2D().
bool NBPTStop::findLaneAndComputeBusStopExtent | ( | const NBEdgeCont & | ec | ) |
Definition at line 195 of file NBPTStop.cpp.
References findLaneAndComputeBusStopExtent(), NBEdgeCont::getByID(), and myEdgeId.
Referenced by NBPTStopCont::assignLanes(), findLaneAndComputeBusStopExtent(), NBPTStopCont::generateBidiStops(), replaceEdge(), and setEdgeId().
|
inline |
Definition at line 150 of file NBPTStop.h.
References myAdditionalEdgeCandidates.
Referenced by NBPTLineCont::findWay().
|
inline |
Definition at line 79 of file NBPTStop.h.
References myAreaID.
Referenced by NBPTLine::deleteDuplicateStops().
|
inline |
Definition at line 128 of file NBPTStop.h.
References myBidiStop.
Referenced by NBPTLineCont::fixBidiStops().
|
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().
const std::string & NBPTStop::getEdgeId | ( | ) | const |
Definition at line 67 of file NBPTStop.cpp.
References myEdgeId.
Referenced by NBPTStopCont::alignIdSigns(), NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), NBPTStopCont::assignPTStopToEdgeOfClosestPlatform(), NBPTLine::deleteInvalidStops(), NBPTLineCont::findWay(), NBPTStopCont::generateBidiStops(), NBPTLineCont::getCost(), and NBPTStopCont::getReverseStop().
|
inline |
Definition at line 136 of file NBPTStop.h.
References myEndPos.
Referenced by NBPTLineCont::getCost().
std::string NBPTStop::getID | ( | ) | const |
Definition at line 55 of file NBPTStop.cpp.
References myPTStopId.
Referenced by NIXMLPTHandler::addAccess(), NBPTStopCont::alignIdSigns(), NBPTLine::deleteDuplicateStops(), NBPTLine::deleteInvalidStops(), NBPTLineCont::findWay(), NBPTLineCont::fixBidiStops(), NBPTStopCont::generateBidiStops(), NBPTStopCont::getReverseStop(), and NBPTStopCont::insert().
bool NBPTStop::getIsMultipleStopPositions | ( | ) | const |
Definition at line 163 of file NBPTStop.cpp.
References myIsMultipleStopPositions.
Referenced by NBPTStopCont::localizePTStops().
|
inline |
Definition at line 67 of file NBPTStop.h.
References myLaneId.
double NBPTStop::getLength | ( | ) | const |
Definition at line 176 of file NBPTStop.cpp.
References myPTStopLength.
Referenced by NBPTLineCont::findWay(), NBPTStopCont::generateBidiStops(), and NBPTStopCont::getReverseStop().
|
inline |
Definition at line 140 of file NBPTStop.h.
References myLines.
const std::string NBPTStop::getName | ( | ) | const |
Definition at line 73 of file NBPTStop.cpp.
References myName.
Referenced by NBPTLine::addPTStop(), NBPTLine::deleteDuplicateStops(), NBPTLineCont::findWay(), NBPTStopCont::generateBidiStops(), and NBPTStopCont::getReverseStop().
const std::string NBPTStop::getOrigEdgeId | ( | ) | const |
Definition at line 61 of file NBPTStop.cpp.
References myOrigEdgeId.
Referenced by NBPTLineCont::findWay(), and NBPTStopCont::generateBidiStops().
|
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().
SVCPermissions NBPTStop::getPermissions | ( | ) | const |
Definition at line 145 of file NBPTStop.cpp.
References myPermissions.
Referenced by findLaneAndComputeBusStopExtent(), NBPTLineCont::findWay(), NBPTStopCont::generateBidiStops(), and NBPTStopCont::getReverseStop().
const std::vector< NBPTPlatform > & NBPTStop::getPlatformCands | ( | ) |
Definition at line 157 of file NBPTStop.cpp.
References myPlatformCands.
Referenced by NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), NBPTStopCont::getClosestPlatformToPTStopPosition(), and NBPTStopCont::localizePTStops().
const Position & NBPTStop::getPosition | ( | ) | const |
Definition at line 79 of file NBPTStop.cpp.
References myPosition.
Referenced by findLaneAndComputeBusStopExtent(), NBPTLineCont::findWay(), NBPTStopCont::generateBidiStops(), NBPTStopCont::getClosestPlatformToPTStopPosition(), and NBPTStopCont::getReverseStop().
|
inline |
Definition at line 132 of file NBPTStop.h.
References myIsLoose.
Referenced by NBPTLineCont::findWay().
|
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().
|
inline |
Definition at line 113 of file NBPTStop.h.
References myIsPlatform.
Referenced by NBPTLine::addPTStop().
|
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().
void NBPTStop::mirrorX | ( | ) |
mirror coordinates along the x-axis
Definition at line 85 of file NBPTStop.cpp.
References Position::mul(), and myPosition.
void NBPTStop::registerAdditionalEdge | ( | std::string | wayId, |
std::string | edgeId | ||
) |
Definition at line 189 of file NBPTStop.cpp.
References myAdditionalEdgeCandidates.
Referenced by NIImporter_OpenStreetMap::insertEdge().
bool NBPTStop::replaceEdge | ( | const std::string & | edgeID, |
const EdgeVector & | replacement | ||
) |
replace the stop edge with the closest edge on the given edge list in all stops
Definition at line 259 of file NBPTStop.cpp.
References clearAccess(), PositionVector::distance2D(), findLaneAndComputeBusStopExtent(), NBEdge::getGeometry(), NBEdge::getPermissions(), MAX2(), myEdgeId, myPermissions, myPosition, myPTStopLength, and SVC_PEDESTRIAN.
void NBPTStop::reshiftPosition | ( | const double | offsetX, |
const double | offsetY | ||
) |
Definition at line 136 of file NBPTStop.cpp.
References Position::add(), myPlatformCands, and myPosition.
|
inline |
Definition at line 124 of file NBPTStop.h.
References myBidiStop.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), and NBPTStopCont::generateBidiStops().
bool NBPTStop::setEdgeId | ( | std::string | edgeId, |
const NBEdgeCont & | ec | ||
) |
Definition at line 182 of file NBPTStop.cpp.
References findLaneAndComputeBusStopExtent(), and myEdgeId.
Referenced by NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), NBPTStopCont::assignPTStopToEdgeOfClosestPlatform(), and NBPTLineCont::findWay().
void NBPTStop::setIsMultipleStopPositions | ( | bool | multipleStopPositions, |
long long int | areaID | ||
) |
Definition at line 169 of file NBPTStop.cpp.
References myAreaID, and myIsMultipleStopPositions.
Referenced by NIImporter_OpenStreetMap::RelationHandler::myEndElement().
|
inline |
Definition at line 109 of file NBPTStop.h.
References myIsPlatform.
Referenced by NIImporter_OpenStreetMap::RelationHandler::myEndElement().
|
inline |
Definition at line 153 of file NBPTStop.h.
References myOrigEdgeId.
Referenced by NBPTLineCont::findWay().
|
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().
|
inline |
Definition at line 105 of file NBPTStop.h.
References myPTStopId.
Referenced by NBPTStopCont::alignIdSigns().
|
inline |
Definition at line 156 of file NBPTStop.h.
References myPTStopLength.
Referenced by NBPTStopCont::assignAndCreatNewPTStopAsNeeded(), and NBPTStopCont::assignPTStopToEdgeOfClosestPlatform().
|
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().
void NBPTStop::write | ( | OutputDevice & | device | ) |
Definition at line 100 of file NBPTStop.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), RGBColor::isValid(), 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 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(), 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().
|
private |
laneId, lanePos, accessLength
Definition at line 177 of file NBPTStop.h.
Referenced by addAccess(), clearAccess(), and write().
|
private |
Definition at line 164 of file NBPTStop.h.
Referenced by getAdditionalEdgeCandidates(), and registerAdditionalEdge().
|
private |
Definition at line 192 of file NBPTStop.h.
Referenced by getAreaID(), and setIsMultipleStopPositions().
|
private |
Definition at line 182 of file NBPTStop.h.
Referenced by getBidiStop(), and setBidiStop().
|
private |
Definition at line 169 of file NBPTStop.h.
Referenced by write().
|
private |
Definition at line 163 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), getEdgeId(), replaceEdge(), and setEdgeId().
|
private |
Definition at line 174 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), getEndPos(), and write().
|
private |
Definition at line 193 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent().
|
private |
whether the stop was not part of the road network and must be mapped
Definition at line 185 of file NBPTStop.h.
Referenced by isLoose().
|
private |
Definition at line 191 of file NBPTStop.h.
Referenced by getIsMultipleStopPositions(), and setIsMultipleStopPositions().
|
private |
whether this stop was build from a platform position
Definition at line 188 of file NBPTStop.h.
Referenced by isPlatform(), and setIsPlatform().
|
private |
Definition at line 170 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), getLaneId(), and write().
|
private |
list of public transport lines (for displaying)
Definition at line 180 of file NBPTStop.h.
Referenced by addLine(), getLines(), and write().
|
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().
|
private |
Definition at line 167 of file NBPTStop.h.
|
private |
Definition at line 165 of file NBPTStop.h.
Referenced by getOrigEdgeId(), and setOrigEdgeId().
|
private |
Definition at line 168 of file NBPTStop.h.
Referenced by write().
|
private |
Definition at line 171 of file NBPTStop.h.
Referenced by getPermissions(), and replaceEdge().
|
private |
Definition at line 190 of file NBPTStop.h.
Referenced by addPlatformCand(), getPlatformCands(), and reshiftPosition().
|
private |
Definition at line 162 of file NBPTStop.h.
Referenced by getPosition(), mirrorX(), replaceEdge(), and reshiftPosition().
|
private |
Definition at line 161 of file NBPTStop.h.
Referenced by getID(), setPTStopId(), and write().
|
private |
Definition at line 166 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), getLength(), replaceEdge(), and setPTStopLength().
|
private |
Definition at line 173 of file NBPTStop.h.
Referenced by findLaneAndComputeBusStopExtent(), and write().