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 addParameter (const std::string &key, const std::string &value)
 Adds a parameter. More...
 
void addParameter (const std::map< std::string, std::string > &mapArg)
 Adds all given parameter. More...
 
void addParameter (const Parameterised &p)
 Adds all given parameter. More...
 
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::map< std::string, std::string > & getMap () const
 Returns the inner key/value map. More...
 
const std::string & getParameter (const std::string &key, const std::string &defaultValue) const
 Returns the value for a given key. More...
 
bool knowsParameter (const std::string &key) const
 Returns whether the parameter is known. More...
 
void writeParams (OutputDevice &out) const
 

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 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...
 
std::string streetName
 The edge's street name. More...
 

Private Member Functions

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

Detailed Description

An internal definition of a loaded edge.

Definition at line 129 of file NIImporter_OpenStreetMap.h.

Constructor & Destructor Documentation

◆ Edge()

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

Definition at line 131 of file NIImporter_OpenStreetMap.h.

Member Function Documentation

◆ addParameter() [1/3]

◆ addParameter() [2/3]

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

Adds all given parameter.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 57 of file Parameterised.cpp.

References Parameterised::myMap.

◆ addParameter() [3/3]

void Parameterised::addParameter ( const Parameterised p)
inherited

Adds all given parameter.

Parameters
[in]pThe keys/values to insert

Definition at line 65 of file Parameterised.cpp.

References Parameterised::myMap.

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 99 of file Parameterised.cpp.

References Parameterised::myMap.

◆ getDouble()

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

Returns the value for a given key converted to a double.

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 89 of file Parameterised.cpp.

References TplConvert::_2double(), and Parameterised::myMap.

Referenced by MSDevice_Battery::buildVehicleDevices().

◆ getMap()

const std::map<std::string, std::string>& Parameterised::getMap ( ) const
inlineinherited

◆ 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 79 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getLoggingFrequency(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), TraCI_Polygon::getParameter(), TraCI_VehicleType::getParameter(), TraCI_Route::getParameter(), TraCI_POI::getParameter(), TraCI_Lane::getParameter(), TraCI_Vehicle::getParameter(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_OpenStreetMap::insertEdge(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Person::processGet(), MSSOTLPolicyDesirability::readParameter(), MSDevice_SSM::requestsTrajectories(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), TraCIServerAPI_Vehicle::vtdMap(), and NWWriter_DlrNavteq::writeLinksUnsplitted().

◆ knowsParameter()

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

◆ operator=()

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

invalidated assignment operator

◆ writeParams()

Field Documentation

◆ id

◆ myBuswayType

WayType NIImporter_OpenStreetMap::Edge::myBuswayType

Information about the kind of busway along this road.

Definition at line 155 of file NIImporter_OpenStreetMap.h.

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

◆ myCurrentIsRoad

bool NIImporter_OpenStreetMap::Edge::myCurrentIsRoad

◆ myCurrentNodes

std::vector<long long int> NIImporter_OpenStreetMap::Edge::myCurrentNodes

◆ myCyclewayType

WayType NIImporter_OpenStreetMap::Edge::myCyclewayType

Information about the kind of cycleway along this road.

Definition at line 153 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 157 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 145 of file NIImporter_OpenStreetMap.h.

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

◆ streetName

std::string NIImporter_OpenStreetMap::Edge::streetName

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