Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NBPTStop Class Reference

The representation of a single pt stop. More...

#include <NBPTStop.h>

Inheritance diagram for NBPTStop:
[legend]
Collaboration diagram for NBPTStop:
[legend]

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< NBPTStopgetBidiStop () 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::MapgetParametersMap () 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 PositiongetPosition () 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 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 &params)
 set the inner key/value map in map<string, string> format
 
void setParametersStr (const std::string &paramsString, 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.
 
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

NBPTStopoperator= (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< NBPTStopmyBidiStop
 
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< NBPTPlatformmyPlatformCands
 
Position myPosition
 
std::string myPTStopId
 
double myPTStopLength
 
double myStartPos
 

Detailed Description

The representation of a single pt stop.

Definition at line 45 of file NBPTStop.h.

Member Typedef Documentation

◆ Map

typedef std::map<std::string, std::string> Parameterised::Map
inherited

parameters map

Definition at line 45 of file Parameterised.h.

Constructor & Destructor Documentation

◆ NBPTStop()

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.

Parameters
[in]idThe id of the pt stop
[in]positionThe position of the pt stop
[in]edgeIdThe edge id of the pt stop
[in]lengthThe length of the pt stop
[in]colorptStop color
[in]givenStartPosLoaded startPos (and implicit endPos) that should not be adapted

Definition at line 33 of file NBPTStop.cpp.

◆ ~NBPTStop()

virtual NBPTStop::~NBPTStop ( )
inlinevirtual

Destructor.

Definition at line 60 of file NBPTStop.h.

Member Function Documentation

◆ addAccess()

void NBPTStop::addAccess ( std::string  laneID,
double  offset,
double  length 
)

Definition at line 245 of file NBPTStop.cpp.

References SUMOXMLDefinitions::getEdgeIDFromLane(), and myAccesses.

◆ addLine()

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.

◆ addPlatformCand()

void NBPTStop::addPlatformCand ( NBPTPlatform  platform)

Definition at line 152 of file NBPTStop.cpp.

References myPlatformCands.

◆ areAttributesValid()

bool Parameterised::areAttributesValid ( const std::string &  value,
bool  report = false,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
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 198 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.

Referenced by GNEFrameAttributeModules::GenericDataAttributes::areAttributesValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), and GNETAZRelData::isValid().

Here is the caller graph for this function:

◆ areParametersValid()

bool Parameterised::areParametersValid ( const std::string &  value,
bool  report = false,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
staticinherited

◆ clearAccess()

void NBPTStop::clearAccess ( )

remove all access definitions

Definition at line 239 of file NBPTStop.cpp.

References myAccesses.

Referenced by replaceEdge().

Here is the caller graph for this function:

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 118 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NLHandler::beginEdgeParsing(), and GNESingleParametersDialog::onCmdAccept().

Here is the caller graph for this function:

◆ findLaneAndComputeBusStopExtent() [1/2]

◆ findLaneAndComputeBusStopExtent() [2/2]

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().

Here is the caller graph for this function:

◆ getAdditionalEdgeCandidates()

const std::map< std::string, std::string > & NBPTStop::getAdditionalEdgeCandidates ( ) const
inline

Definition at line 149 of file NBPTStop.h.

References myAdditionalEdgeCandidates.

◆ getAreaID()

long long int NBPTStop::getAreaID ( ) const
inline

Definition at line 78 of file NBPTStop.h.

References myAreaID.

◆ getBidiStop()

std::shared_ptr< NBPTStop > NBPTStop::getBidiStop ( ) const
inline

Definition at line 127 of file NBPTStop.h.

References myBidiStop.

◆ getDouble()

◆ getEdgeId()

const std::string & NBPTStop::getEdgeId ( ) const

Definition at line 68 of file NBPTStop.cpp.

References myEdgeId.

◆ getEndPos()

double NBPTStop::getEndPos ( ) const
inline

Definition at line 135 of file NBPTStop.h.

References myEndPos.

◆ getID()

std::string NBPTStop::getID ( ) const

Definition at line 56 of file NBPTStop.cpp.

References myPTStopId.

◆ getIsMultipleStopPositions()

bool NBPTStop::getIsMultipleStopPositions ( ) const

Definition at line 164 of file NBPTStop.cpp.

References myIsMultipleStopPositions.

◆ getLaneId()

const std::string & NBPTStop::getLaneId ( ) const
inline

Definition at line 66 of file NBPTStop.h.

References myLaneId.

◆ getLength()

double NBPTStop::getLength ( ) const

Definition at line 177 of file NBPTStop.cpp.

References myPTStopLength.

◆ getLines()

const std::vector< std::string > & NBPTStop::getLines ( ) const
inline

Definition at line 139 of file NBPTStop.h.

References myLines.

◆ getName()

const std::string NBPTStop::getName ( ) const

Definition at line 74 of file NBPTStop.cpp.

References myName.

◆ getOrigEdgeId()

const std::string NBPTStop::getOrigEdgeId ( ) const

Definition at line 62 of file NBPTStop.cpp.

References myOrigEdgeId.

◆ getParameter()

const std::string Parameterised::getParameter ( const std::string &  key,
const std::string  defaultValue = "" 
) const
virtualinherited

Returns the value for a given key.

Parameters
[in]keyThe key to ask for
[in]defaultValueThe default value to return if no value is stored under the key
Returns
The value stored under the key

Reimplemented in MSActuatedTrafficLightLogic, MSSimpleTrafficLightLogic, and NEMALogic.

Definition at line 90 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSPModel_JuPedSim::add(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBEdge::addRestrictedLane(), FareModul::addStop(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSVehicleType::check(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEConnection::drawEdgeValues(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), RORoutable::getMaxSpeed(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_SSM::getOutputFilename(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSBaseVehicle::getPrefixedParameter(), GUIBaseVehicle::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), SUMOTrafficObject::getStringParam(), MSRailSignalConstraint::getVeh(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSStoppingPlaceRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSRailSignalControl::haveDeadlock(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSStageDriving::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::initRailVisualizationParameters(), NIImporter_OpenStreetMap::insertNodeChecking(), MSAbstractLaneChangeModel::laneChangeOutput(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), MSVehicle::slowDownForSchedule(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPOI(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().

◆ getParametersMap()

const Parameterised::Map & Parameterised::getParametersMap ( ) const
inherited

Returns the inner key/value map.

Definition at line 124 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), NBEdge::addLane(), NBEdge::append(), LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), NLDetectorBuilder::endE3Detector(), 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(), GNEStopPlan::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(), NWWriter_OpenDrive::getDividerType(), GUILane::getParameterWindow(), GNESingleParametersDialog::GNESingleParametersDialog(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), MSPModel_JuPedSim::initialize(), MSBaseVehicle::initTransientModelParams(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), GUIParameterTableWindow::numParams(), GNESingleParametersDialog::onCmdReset(), GNEVType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), LIBSUMO_NAMESPACE::TrafficLight::swapConstraints(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().

◆ getParametersStr()

std::string Parameterised::getParametersStr ( const std::string  kvsep = "=",
const std::string  sep = "|" 
) const
inherited

◆ getPermissions()

SVCPermissions NBPTStop::getPermissions ( ) const

Definition at line 146 of file NBPTStop.cpp.

References myPermissions.

Referenced by findLaneAndComputeBusStopExtent().

Here is the caller graph for this function:

◆ getPlatformCands()

const std::vector< NBPTPlatform > & NBPTStop::getPlatformCands ( )

Definition at line 158 of file NBPTStop.cpp.

References myPlatformCands.

◆ getPosition()

const Position & NBPTStop::getPosition ( ) const

Definition at line 80 of file NBPTStop.cpp.

References myPosition.

Referenced by findLaneAndComputeBusStopExtent().

Here is the caller graph for this function:

◆ hasParameter()

bool Parameterised::hasParameter ( const std::string &  key) const
inherited

Returns whether the parameter is set.

Parameters
[in]keyThe key to ask for
Returns
Whether the key is known

Definition at line 84 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSStageWalking::activateEntryReminders(), NBEdge::append(), MSVehicleType::build(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSStoppingPlaceRerouter::getWeight(), MSStageDriving::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSVehicle::slowDownForSchedule(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().

Here is the caller graph for this function:

◆ isLoose()

bool NBPTStop::isLoose ( ) const
inline

Definition at line 131 of file NBPTStop.h.

References myIsLoose.

◆ isParameterValid()

bool Parameterised::isParameterValid ( const std::string &  value,
const std::string &  kvsep,
const std::string &  sep 
)
staticprivateinherited

check if given string can be parsed to a parameter of type "key=value"

Definition at line 233 of file Parameterised.cpp.

References StringTokenizer::getVector(), and SUMOXMLDefinitions::isValidParameterKey().

Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().

Here is the caller graph for this function:

◆ isPlatform()

bool NBPTStop::isPlatform ( ) const
inline

Definition at line 112 of file NBPTStop.h.

References myIsPlatform.

◆ mergeParameters()

void Parameterised::mergeParameters ( const Parameterised::Map mapArg,
const std::string  separator = " ",
bool  uniqueValues = true 
)
inherited

Adds or appends all given parameters from the map.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 65 of file Parameterised.cpp.

References Parameterised::getParameter(), Parameterised::hasParameter(), and Parameterised::setParameter().

Referenced by NBEdge::append().

Here is the caller graph for this function:

◆ mirrorX()

void NBPTStop::mirrorX ( )

mirror coordinates along the x-axis

Definition at line 86 of file NBPTStop.cpp.

References Position::mul(), and myPosition.

◆ operator=()

NBPTStop & NBPTStop::operator= ( const NBPTStop )
private

Invalidated assignment operator.

◆ registerAdditionalEdge()

void NBPTStop::registerAdditionalEdge ( std::string  wayId,
std::string  edgeId 
)

Definition at line 190 of file NBPTStop.cpp.

References myAdditionalEdgeCandidates.

◆ replaceEdge()

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(), PositionVector::distance2D(), findLaneAndComputeBusStopExtent(), NBEdge::getGeometry(), NBEdge::getPermissions(), MAX2(), myEdgeId, myPermissions, myPosition, myPTStopLength, and SVC_PEDESTRIAN.

◆ reshiftPosition()

void NBPTStop::reshiftPosition ( const double  offsetX,
const double  offsetY 
)

Definition at line 137 of file NBPTStop.cpp.

References Position::add(), myPlatformCands, and myPosition.

◆ setBidiStop()

void NBPTStop::setBidiStop ( std::shared_ptr< NBPTStop bidiStop)
inline

Definition at line 123 of file NBPTStop.h.

References myBidiStop.

◆ setEdgeId()

bool NBPTStop::setEdgeId ( std::string  edgeId,
const NBEdgeCont ec 
)

Definition at line 183 of file NBPTStop.cpp.

References findLaneAndComputeBusStopExtent(), and myEdgeId.

◆ setIsMultipleStopPositions()

void NBPTStop::setIsMultipleStopPositions ( bool  multipleStopPositions,
long long int  areaID 
)

Definition at line 170 of file NBPTStop.cpp.

References myAreaID, and myIsMultipleStopPositions.

◆ setIsPlatform()

void NBPTStop::setIsPlatform ( )
inline

Definition at line 108 of file NBPTStop.h.

References myIsPlatform.

◆ setOrigEdgeId()

void NBPTStop::setOrigEdgeId ( const std::string &  origEdgeId)
inline

Definition at line 152 of file NBPTStop.h.

References myOrigEdgeId.

◆ setParameter()

void Parameterised::setParameter ( const std::string &  key,
const std::string &  value 
)
virtualinherited

Sets a parameter.

Parameters
[in]keyThe parameter's name
[in]valueThe parameter's value

Reimplemented in MSRailCrossing, MSActuatedTrafficLightLogic, MSRailSignal, MSSimpleTrafficLightLogic, and NEMALogic.

Definition at line 45 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NBRailwayTopologyAnalyzer::addBidiEdge(), NLHandler::addDistrict(), RONetHandler::addParam(), ShapeHandler::addPOI(), NBOwnTLDef::buildNemaPhases(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSStateHandler::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), MSDevice_Bluelight::notifyMove(), GNESingleParametersDialog::onCmdAccept(), NBRailwayTopologyAnalyzer::reverseEdges(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSRailCrossing::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), Parameterised::setParametersStr(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), Parameterised::updateParameters(), NWWriter_OpenDrive::writeNetwork(), and NIImporter_OpenDrive::writeRoadObjects().

Here is the caller graph for this function:

◆ setParameters()

void Parameterised::setParameters ( const Parameterised params)
inherited

set the inner key/value map in map<string, string> format

Definition at line 146 of file Parameterised.cpp.

References Parameterised::getParametersMap(), and Parameterised::myMap.

Referenced by MSStageDriving::clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), and MSStageTrip::reroute().

Here is the caller graph for this function:

◆ setParametersStr()

void Parameterised::setParametersStr ( const std::string &  paramsString,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
inherited

set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"

Parameters
[in]paramsStringA serialized key-value map
[in]kvsepThe separater between key and value
[in]sepThe separater between map entries

Definition at line 152 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(), 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(), GNEStop::setAttribute(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), and GNEDetector::setDetectorAttribute().

Here is the caller graph for this function:

◆ setPTStopId()

void NBPTStop::setPTStopId ( std::string  id)
inline

Definition at line 104 of file NBPTStop.h.

References myPTStopId.

◆ setPTStopLength()

void NBPTStop::setPTStopLength ( double  ptStopLength)
inline

Definition at line 155 of file NBPTStop.h.

References myPTStopLength.

◆ unsetParameter()

void Parameterised::unsetParameter ( const std::string &  key)
inherited

Removes a parameter.

Parameters
[in]keyThe parameter's name

Definition at line 51 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_OpenStreetMap::insertEdge(), MSLane::isInsertionSuccess(), GNEVType::setAttribute(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().

Here is the caller graph for this function:

◆ updateParameters()

void Parameterised::updateParameters ( const Parameterised::Map mapArg)
inherited

◆ write()

◆ writeParams()

void Parameterised::writeParams ( OutputDevice device) const
inherited

write Params in the given outputdevice

Definition at line 167 of file Parameterised.cpp.

References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().

Referenced by MSStageWaiting::routeOutput(), MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), MSStop::write(), SUMOVTypeParameter::write(), SUMOVehicleParameter::Stop::write(), write(), MSRailSignalConstraint_Predecessor::write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNEEntryExitDetector::writeAdditional(), GNEInductionLoopDetector::writeAdditional(), GNEInstantInductionLoopDetector::writeAdditional(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNEOverheadWire::writeAdditional(), GNEParkingArea::writeAdditional(), GNEParkingSpace::writeAdditional(), GNERerouter::writeAdditional(), GNERouteProbe::writeAdditional(), GNETAZ::writeAdditional(), GNETractionSubstation::writeAdditional(), GNEVaporizer::writeAdditional(), GNEVariableSpeedSign::writeAdditional(), 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().

Here is the caller graph for this function:

Field Documentation

◆ myAccesses

std::vector<std::tuple<std::string, double, double> > NBPTStop::myAccesses
private

laneId, lanePos, accessLength

Definition at line 176 of file NBPTStop.h.

Referenced by addAccess(), clearAccess(), and write().

◆ myAdditionalEdgeCandidates

std::map<std::string, std::string> NBPTStop::myAdditionalEdgeCandidates
private

Definition at line 163 of file NBPTStop.h.

Referenced by getAdditionalEdgeCandidates(), and registerAdditionalEdge().

◆ myAreaID

long long int NBPTStop::myAreaID
private

Definition at line 191 of file NBPTStop.h.

Referenced by getAreaID(), and setIsMultipleStopPositions().

◆ myBidiStop

std::weak_ptr<NBPTStop> NBPTStop::myBidiStop
private

Definition at line 181 of file NBPTStop.h.

Referenced by getBidiStop(), and setBidiStop().

◆ myColor

const RGBColor NBPTStop::myColor
private

Definition at line 168 of file NBPTStop.h.

Referenced by write().

◆ myEdgeId

std::string NBPTStop::myEdgeId
private

◆ myEndPos

double NBPTStop::myEndPos
private

Definition at line 173 of file NBPTStop.h.

Referenced by findLaneAndComputeBusStopExtent(), getEndPos(), and write().

◆ myGivenStartPos

double NBPTStop::myGivenStartPos
private

Definition at line 192 of file NBPTStop.h.

Referenced by findLaneAndComputeBusStopExtent().

◆ myIsLoose

bool NBPTStop::myIsLoose
private

whether the stop was not part of the road network and must be mapped

Definition at line 184 of file NBPTStop.h.

Referenced by isLoose().

◆ myIsMultipleStopPositions

bool NBPTStop::myIsMultipleStopPositions
private

Definition at line 190 of file NBPTStop.h.

Referenced by getIsMultipleStopPositions(), and setIsMultipleStopPositions().

◆ myIsPlatform

bool NBPTStop::myIsPlatform
private

whether this stop was build from a platform position

Definition at line 187 of file NBPTStop.h.

Referenced by isPlatform(), and setIsPlatform().

◆ myLaneId

std::string NBPTStop::myLaneId
private

Definition at line 169 of file NBPTStop.h.

Referenced by findLaneAndComputeBusStopExtent(), getLaneId(), and write().

◆ myLines

std::vector<std::string> NBPTStop::myLines
private

list of public transport lines (for displaying)

Definition at line 179 of file NBPTStop.h.

Referenced by addLine(), getLines(), and write().

◆ myMap

◆ myName

const std::string NBPTStop::myName
private

Definition at line 166 of file NBPTStop.h.

Referenced by getName(), and write().

◆ myOrigEdgeId

std::string NBPTStop::myOrigEdgeId
private

Definition at line 164 of file NBPTStop.h.

Referenced by getOrigEdgeId(), and setOrigEdgeId().

◆ myParkingLength

const double NBPTStop::myParkingLength
private

Definition at line 167 of file NBPTStop.h.

Referenced by write().

◆ myPermissions

const SVCPermissions NBPTStop::myPermissions
private

Definition at line 170 of file NBPTStop.h.

Referenced by getPermissions(), and replaceEdge().

◆ myPlatformCands

std::vector<NBPTPlatform> NBPTStop::myPlatformCands
private

Definition at line 189 of file NBPTStop.h.

Referenced by addPlatformCand(), getPlatformCands(), and reshiftPosition().

◆ myPosition

Position NBPTStop::myPosition
private

Definition at line 161 of file NBPTStop.h.

Referenced by getPosition(), mirrorX(), replaceEdge(), and reshiftPosition().

◆ myPTStopId

std::string NBPTStop::myPTStopId
private

Definition at line 160 of file NBPTStop.h.

Referenced by getID(), setPTStopId(), and write().

◆ myPTStopLength

double NBPTStop::myPTStopLength
private

◆ myStartPos

double NBPTStop::myStartPos
private

Definition at line 172 of file NBPTStop.h.

Referenced by findLaneAndComputeBusStopExtent(), and write().


The documentation for this class was generated from the following files: