Eclipse SUMO - Simulation of Urban MObility
NIImporter_OpenStreetMap::Edge Class Reference

An internal definition of a loaded edge. More...

#include <NIImporter_OpenStreetMap.h>

Inheritance diagram for NIImporter_OpenStreetMap::Edge:
[legend]
Collaboration diagram for NIImporter_OpenStreetMap::Edge:
[legend]

Public Types

typedef std::map< std::string, std::string > Map
 parameters map More...
 

Public Member Functions

void clearParameter ()
 Clears the parameter map. More...
 
 Edge (long long int _id)
 
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...
 
virtual const std::string getParameter (const std::string &key, const std::string defaultValue="") const
 Returns the value for a given key. More...
 
const Parameterised::MapgetParametersMap () const
 Returns the inner key/value map. More...
 
std::string getParametersStr (const std::string kvsep="=", const std::string sep="|") const
 Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". More...
 
bool hasParameter (const std::string &key) const
 Returns whether the parameter is set. More...
 
void mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true)
 Adds or appends all given parameters from the map. More...
 
virtual void setParameter (const std::string &key, const std::string &value)
 Sets a parameter. More...
 
void setParameters (const Parameterised &params)
 set the inner key/value map in map<string, string> format More...
 
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" More...
 
void unsetParameter (const std::string &key)
 Removes a parameter. More...
 
void updateParameters (const Parameterised::Map &mapArg)
 Adds or updates all given parameters from the map. More...
 
void writeParams (OutputDevice &device) const
 write Params in the given outputdevice More...
 
virtual ~Edge ()
 

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

Data Fields

const long long int id
 The edge's id. More...
 
std::vector< SVCPermissionsmyAllowedLaneBackward
 (optional) information about additional allowed SVCs on backward lane(s) More...
 
std::vector< SVCPermissionsmyAllowedLaneForward
 (optional) information about additional allowed SVCs on forward lane(s) More...
 
bool myAmInRoundabout
 Information whether this road is part of a roundabout. More...
 
WayType myBuswayType
 Information about the kind of busway along this road. More...
 
int myChangeBackward
 Information about change prohibitions (backward direction. More...
 
int myChangeForward
 Information about change prohibitions (forward direction. More...
 
bool myCurrentIsRoad
 Information whether this is a road. More...
 
std::vector< long long int > myCurrentNodes
 The list of nodes this edge is made of. More...
 
WayType myCyclewayType
 Information about the kind of cycleway along this road. More...
 
std::vector< bool > myDesignatedLaneBackward
 (optional) information about whether the backward lanes are designated to some SVCs More...
 
std::vector< bool > myDesignatedLaneForward
 (optional) information about whether the forward lanes are designated to some SVCs More...
 
std::vector< SVCPermissionsmyDisallowedLaneBackward
 (optional) information about additional disallowed SVCs on backward lane(s) More...
 
std::vector< SVCPermissionsmyDisallowedLaneForward
 (optional) information about additional disallowed SVCs on forward lane(s) More...
 
SVCPermissions myExtraAllowed
 Extra permissions added from tags instead of highway type. More...
 
SVCPermissions myExtraDisallowed
 Extra permissions prohibited from tags instead of highway type. More...
 
std::map< std::string, std::string > myExtraTags
 Additionally tagged information. More...
 
std::string myHighWayType
 The type, stored in "highway" key. More...
 
std::string myIsOneWay
 Information whether this is an one-way road. More...
 
int myLayer
 Information about the relative z-ordering of ways. More...
 
double myMaxSpeed
 maximum speed in km/h, or MAXSPEED_UNGIVEN More...
 
double myMaxSpeedBackward
 maximum speed in km/h, or MAXSPEED_UNGIVEN More...
 
int myNoLanes
 number of lanes, or -1 if unknown More...
 
int myNoLanesForward
 number of lanes in forward direction or 0 if unknown, negative if backwards lanes are meant More...
 
int myParkingType
 Information about road-side parking. More...
 
WayType myRailDirection
 Information about the direction(s) of railway usage. More...
 
WayType mySidewalkType
 Information about the kind of sidwalk along this road. More...
 
std::vector< int > myTurnSignsBackward
 
std::vector< int > myTurnSignsForward
 turning direction (arrows printed on the road) More...
 
double myWidth
 
std::vector< double > myWidthLanesBackward
 
std::vector< double > myWidthLanesForward
 Information on lane width. More...
 
std::string ref
 The edge's track name. More...
 
std::string streetName
 The edge's street name. More...
 

Private Member Functions

Edgeoperator= (const Edge &s)=delete
 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

Parameterised::Map myMap
 The key->value map. More...
 

Detailed Description

An internal definition of a loaded edge.

Definition at line 170 of file NIImporter_OpenStreetMap.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

◆ Edge()

NIImporter_OpenStreetMap::Edge::Edge ( long long int  _id)
inlineexplicit

Definition at line 172 of file NIImporter_OpenStreetMap.h.

◆ ~Edge()

virtual NIImporter_OpenStreetMap::Edge::~Edge ( )
inlinevirtual

Definition at line 191 of file NIImporter_OpenStreetMap.h.

Member Function Documentation

◆ 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 219 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

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 139 of file Parameterised.cpp.

References Parameterised::myMap.

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

Here is the caller graph for this function:

◆ getDouble()

double Parameterised::getDouble ( const std::string &  key,
const double  defaultValue 
) const
inherited

◆ getDoubles()

std::vector< double > Parameterised::getDoubles ( const std::string &  key,
std::vector< double >  defaultValue = std::vector<double>() 
) const
inherited

Returns the value for a given key converted to a list of doubles.

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

Definition at line 118 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.

Referenced by EnergyParams::EnergyParams().

Here is the caller graph for this function:

◆ 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 NEMALogic, MSSimpleTrafficLightLogic, and MSActuatedTrafficLightLogic.

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(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), 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(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSRailSignalConstraint::getVehID(), MSStoppingPlaceRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), 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 145 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(), 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

◆ 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(), NIImporter_OpenStreetMap::load(), 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:

◆ 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 254 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:

◆ 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:

◆ operator=()

Edge& NIImporter_OpenStreetMap::Edge::operator= ( const Edge s)
privatedelete

invalidated assignment operator

◆ 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 NEMALogic, MSSimpleTrafficLightLogic, MSRailSignal, MSActuatedTrafficLightLogic, and MSRailCrossing.

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(), 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 167 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 173 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:

◆ 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(), NIImporter_OpenStreetMap::load(), GNEVType::setAttribute(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().

Here is the caller graph for this function:

◆ updateParameters()

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

◆ writeParams()

void Parameterised::writeParams ( OutputDevice device) const
inherited

write Params in the given outputdevice

Definition at line 188 of file Parameterised.cpp.

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

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

◆ id

const long long int NIImporter_OpenStreetMap::Edge::id

◆ myAllowedLaneBackward

std::vector<SVCPermissions> NIImporter_OpenStreetMap::Edge::myAllowedLaneBackward

(optional) information about additional allowed SVCs on backward lane(s)

Definition at line 236 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::applyLaneUse().

◆ myAllowedLaneForward

std::vector<SVCPermissions> NIImporter_OpenStreetMap::Edge::myAllowedLaneForward

(optional) information about additional allowed SVCs on forward lane(s)

Definition at line 234 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::applyLaneUse().

◆ myAmInRoundabout

bool NIImporter_OpenStreetMap::Edge::myAmInRoundabout

Information whether this road is part of a roundabout.

Definition at line 248 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myBuswayType

WayType NIImporter_OpenStreetMap::Edge::myBuswayType

Information about the kind of busway along this road.

Definition at line 218 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myChangeBackward

int NIImporter_OpenStreetMap::Edge::myChangeBackward

Information about change prohibitions (backward direction.

Definition at line 228 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myChangeForward

int NIImporter_OpenStreetMap::Edge::myChangeForward

Information about change prohibitions (forward direction.

Definition at line 226 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myCurrentIsRoad

bool NIImporter_OpenStreetMap::Edge::myCurrentIsRoad

Information whether this is a road.

Definition at line 246 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::load().

◆ myCurrentNodes

◆ myCyclewayType

WayType NIImporter_OpenStreetMap::Edge::myCyclewayType

Information about the kind of cycleway along this road.

Definition at line 216 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myDesignatedLaneBackward

std::vector<bool> NIImporter_OpenStreetMap::Edge::myDesignatedLaneBackward

(optional) information about whether the backward lanes are designated to some SVCs

Definition at line 232 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::applyLaneUse().

◆ myDesignatedLaneForward

std::vector<bool> NIImporter_OpenStreetMap::Edge::myDesignatedLaneForward

(optional) information about whether the forward lanes are designated to some SVCs

Definition at line 230 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::applyLaneUse().

◆ myDisallowedLaneBackward

std::vector<SVCPermissions> NIImporter_OpenStreetMap::Edge::myDisallowedLaneBackward

(optional) information about additional disallowed SVCs on backward lane(s)

Definition at line 240 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::applyLaneUse().

◆ myDisallowedLaneForward

std::vector<SVCPermissions> NIImporter_OpenStreetMap::Edge::myDisallowedLaneForward

(optional) information about additional disallowed SVCs on forward lane(s)

Definition at line 238 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::applyLaneUse().

◆ myExtraAllowed

SVCPermissions NIImporter_OpenStreetMap::Edge::myExtraAllowed

Extra permissions added from tags instead of highway type.

Definition at line 208 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myExtraDisallowed

SVCPermissions NIImporter_OpenStreetMap::Edge::myExtraDisallowed

Extra permissions prohibited from tags instead of highway type.

Definition at line 210 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myExtraTags

std::map<std::string, std::string> NIImporter_OpenStreetMap::Edge::myExtraTags

Additionally tagged information.

Definition at line 250 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myHighWayType

std::string NIImporter_OpenStreetMap::Edge::myHighWayType

◆ myIsOneWay

std::string NIImporter_OpenStreetMap::Edge::myIsOneWay

Information whether this is an one-way road.

Definition at line 214 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge(), and NIImporter_OpenStreetMap::CompareEdges::operator()().

◆ myLayer

int NIImporter_OpenStreetMap::Edge::myLayer

Information about the relative z-ordering of ways.

Definition at line 242 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::reconstructLayerElevation().

◆ myMap

◆ myMaxSpeed

double NIImporter_OpenStreetMap::Edge::myMaxSpeed

maximum speed in km/h, or MAXSPEED_UNGIVEN

Definition at line 204 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge(), and NIImporter_OpenStreetMap::CompareEdges::operator()().

◆ myMaxSpeedBackward

double NIImporter_OpenStreetMap::Edge::myMaxSpeedBackward

maximum speed in km/h, or MAXSPEED_UNGIVEN

Definition at line 206 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myNoLanes

int NIImporter_OpenStreetMap::Edge::myNoLanes

number of lanes, or -1 if unknown

Definition at line 200 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge(), and NIImporter_OpenStreetMap::CompareEdges::operator()().

◆ myNoLanesForward

int NIImporter_OpenStreetMap::Edge::myNoLanesForward

number of lanes in forward direction or 0 if unknown, negative if backwards lanes are meant

Definition at line 202 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge(), and NIImporter_OpenStreetMap::CompareEdges::operator()().

◆ myParkingType

int NIImporter_OpenStreetMap::Edge::myParkingType

Information about road-side parking.

Definition at line 224 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myRailDirection

WayType NIImporter_OpenStreetMap::Edge::myRailDirection

Information about the direction(s) of railway usage.

Definition at line 222 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ mySidewalkType

WayType NIImporter_OpenStreetMap::Edge::mySidewalkType

Information about the kind of sidwalk along this road.

Definition at line 220 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myTurnSignsBackward

std::vector<int> NIImporter_OpenStreetMap::Edge::myTurnSignsBackward

Definition at line 253 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myTurnSignsForward

std::vector<int> NIImporter_OpenStreetMap::Edge::myTurnSignsForward

turning direction (arrows printed on the road)

Definition at line 252 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myWidth

double NIImporter_OpenStreetMap::Edge::myWidth

Definition at line 257 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myWidthLanesBackward

std::vector<double> NIImporter_OpenStreetMap::Edge::myWidthLanesBackward

Definition at line 256 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ myWidthLanesForward

std::vector<double> NIImporter_OpenStreetMap::Edge::myWidthLanesForward

Information on lane width.

Definition at line 255 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ ref

std::string NIImporter_OpenStreetMap::Edge::ref

The edge's track name.

Definition at line 198 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().

◆ streetName

std::string NIImporter_OpenStreetMap::Edge::streetName

The edge's street name.

Definition at line 196 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge().


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