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

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

Detailed Description

An internal definition of a loaded edge.

Definition at line 122 of file NIImporter_OpenStreetMap.h.

Constructor & Destructor Documentation

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

Definition at line 124 of file NIImporter_OpenStreetMap.h.

Member Function Documentation

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

References Parameterised::myMap.

void Parameterised::addParameter ( const Parameterised &  p)
inherited

Adds all given parameter.

Parameters
[in]pThe keys/values to insert

Definition at line 68 of file Parameterised.cpp.

References Parameterised::myMap.

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 92 of file Parameterised.cpp.

References Parameterised::myMap.

const std::map<std::string, std::string>& Parameterised::getMap ( ) const
inlineinherited
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 82 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSOTLTrafficLightLogic::getDecayConstant(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Lane::processGet(), MSSOTLPolicyDesirability::readParameter(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), TraCIServerAPI_Vehicle::vtdMap(), and NWWriter_DlrNavteq::writeLinksUnsplitted().

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

Returns whether the parameter is known.

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

Definition at line 76 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), NWWriter_DlrNavteq::getBrunnelType(), and MSTriggeredRerouter::getWeight().

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

invalidated assignment operator

Field Documentation

WayType NIImporter_OpenStreetMap::Edge::myBuswayType

Information about the kind of busway along this road.

Definition at line 148 of file NIImporter_OpenStreetMap.h.

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

bool NIImporter_OpenStreetMap::Edge::myCurrentIsRoad
std::vector<long long int> NIImporter_OpenStreetMap::Edge::myCurrentNodes
WayType NIImporter_OpenStreetMap::Edge::myCyclewayType

Information about the kind of cycleway along this road.

Definition at line 146 of file NIImporter_OpenStreetMap.h.

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

std::string NIImporter_OpenStreetMap::Edge::myHighWayType
std::string NIImporter_OpenStreetMap::Edge::myIsOneWay
int NIImporter_OpenStreetMap::Edge::myLayer

Information about the relative z-ordering of ways.

Definition at line 150 of file NIImporter_OpenStreetMap.h.

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

double NIImporter_OpenStreetMap::Edge::myMaxSpeed
int NIImporter_OpenStreetMap::Edge::myNoLanes
int NIImporter_OpenStreetMap::Edge::myNoLanesForward

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

Definition at line 138 of file NIImporter_OpenStreetMap.h.

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

std::string NIImporter_OpenStreetMap::Edge::streetName

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