SUMO - Simulation of Urban MObility
NIImporter_OpenStreetMap::Edge Struct Reference

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

#include <NIImporter_OpenStreetMap.h>

Inheritance diagram for NIImporter_OpenStreetMap::Edge:
Inheritance graph
Collaboration diagram for NIImporter_OpenStreetMap::Edge:
Collaboration graph

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...
 
const std::string getParameter (const std::string &key, const std::string &defaultValue="") const
 Returns the value for a given key. More...
 
const std::map< std::string, std::string > & getParametersMap () const
 Returns the inner key/value map. More...
 
bool knowsParameter (const std::string &key) const
 Returns whether the parameter is known. More...
 
void setParameter (const std::string &key, const std::string &value)
 Sets a parameter. More...
 
void unsetParameter (const std::string &key)
 Removes a parameter. More...
 
void updateParameter (const std::map< std::string, std::string > &mapArg)
 Adds or updates all given parameters from the map. More...
 
void writeParams (OutputDevice &device) const
 write Params in the given outputdevice More...
 

Data Fields

const long long int id
 The edge's id. More...
 
WayType myBuswayType
 Information about the kind of busway along this road. More...
 
bool myCurrentIsPlatform
 Information whether this is a pt platform. 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::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...
 
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 mySidewalkType
 Information about the kind of sidwalk along this road. More...
 
std::string streetName
 The edge's street name. More...
 

Private Member Functions

Edgeoperator= (const Edge &s)=delete
 invalidated assignment operator More...
 

Detailed Description

An internal definition of a loaded edge.

Definition at line 149 of file NIImporter_OpenStreetMap.h.

Constructor & Destructor Documentation

◆ Edge()

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

Definition at line 151 of file NIImporter_OpenStreetMap.h.

Member Function Documentation

◆ clearParameter()

◆ getDouble()

◆ getParameter()

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

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

Definition at line 71 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), NBEdge::addRestrictedLane(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByParameter(), libsumo::Simulation::findIntermodalRoute(), MSDevice::getBoolParam(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), GNELane::getColorValue(), GUILane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), libsumo::Polygon::getParameter(), libsumo::Route::getParameter(), libsumo::POI::getParameter(), libsumo::Person::getParameter(), libsumo::TrafficLight::getParameter(), libsumo::Edge::getParameter(), libsumo::Lane::getParameter(), libsumo::VehicleType::getParameter(), libsumo::Vehicle::getParameter(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSDevice::getStringParam(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_OpenStreetMap::insertEdge(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), libsumo::Helper::moveToXYMap(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSTriggeredRerouter::notifyEnter(), MSDevice_SSM::requestsTrajectories(), NBEdgeCont::splitAt(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), MSDevice_SSM::useGeoCoords(), and NWWriter_DlrNavteq::writeLinksUnsplitted().

◆ getParametersMap()

◆ knowsParameter()

◆ operator=()

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

invalidated assignment operator

◆ setParameter()

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

◆ updateParameter()

void Parameterised::updateParameter ( const std::map< std::string, std::string > &  mapArg)
inherited

◆ writeParams()

Field Documentation

◆ id

◆ myBuswayType

WayType NIImporter_OpenStreetMap::Edge::myBuswayType

Information about the kind of busway along this road.

Definition at line 180 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge(), and NIImporter_OpenStreetMap::EdgesHandler::myStartElement().

◆ myCurrentIsPlatform

bool NIImporter_OpenStreetMap::Edge::myCurrentIsPlatform

Information whether this is a pt platform.

Definition at line 192 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::EdgesHandler::myEndElement(), and NIImporter_OpenStreetMap::EdgesHandler::myStartElement().

◆ myCurrentIsRoad

bool NIImporter_OpenStreetMap::Edge::myCurrentIsRoad

◆ myCurrentNodes

◆ myCyclewayType

WayType NIImporter_OpenStreetMap::Edge::myCyclewayType

Information about the kind of cycleway along this road.

Definition at line 178 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge(), and NIImporter_OpenStreetMap::EdgesHandler::myStartElement().

◆ myHighWayType

std::string NIImporter_OpenStreetMap::Edge::myHighWayType

◆ myIsOneWay

std::string NIImporter_OpenStreetMap::Edge::myIsOneWay

◆ myLayer

int NIImporter_OpenStreetMap::Edge::myLayer

Information about the relative z-ordering of ways.

Definition at line 186 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), and NIImporter_OpenStreetMap::reconstructLayerElevation().

◆ myMaxSpeed

double NIImporter_OpenStreetMap::Edge::myMaxSpeed

◆ myNoLanes

int NIImporter_OpenStreetMap::Edge::myNoLanes

◆ 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 170 of file NIImporter_OpenStreetMap.h.

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

◆ myParkingType

int NIImporter_OpenStreetMap::Edge::myParkingType

Information about road-side parking.

Definition at line 184 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge(), and NIImporter_OpenStreetMap::EdgesHandler::myStartElement().

◆ mySidewalkType

WayType NIImporter_OpenStreetMap::Edge::mySidewalkType

Information about the kind of sidwalk along this road.

Definition at line 182 of file NIImporter_OpenStreetMap.h.

Referenced by NIImporter_OpenStreetMap::insertEdge(), and NIImporter_OpenStreetMap::EdgesHandler::myStartElement().

◆ streetName

std::string NIImporter_OpenStreetMap::Edge::streetName

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