SUMO - Simulation of Urban MObility
NBEdge::Lane Struct Reference

An (internal) definition of a single lane of an edge. More...

#include <NBEdge.h>

Inheritance diagram for NBEdge::Lane:
Inheritance graph
Collaboration diagram for NBEdge::Lane:
Collaboration graph

Public Member Functions

void clearParameter ()
 Clears the parameter map. More...
 
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...
 
 Lane (NBEdge *e, const std::string &_origID)
 constructor 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 &out) const
 

Data Fields

bool accelRamp
 Whether this lane is an acceleration lane. More...
 
bool connectionsDone
 Whether connection information for this lane is already completed. More...
 
PositionVector customShape
 A custom shape for this lane set by the user. More...
 
double endOffset
 This lane's offset to the intersection begin. More...
 
std::string oppositeID
 An opposite lane ID, if given. More...
 
SVCPermissions permissions
 List of vehicle types that are allowed on this lane. More...
 
SVCPermissions preferred
 List of vehicle types that are preferred on this lane. More...
 
PositionVector shape
 The lane's shape. More...
 
double speed
 The speed allowed on this lane. More...
 
double width
 This lane's width. More...
 

Detailed Description

An (internal) definition of a single lane of an edge.

Definition at line 121 of file NBEdge.h.

Constructor & Destructor Documentation

◆ Lane()

NBEdge::Lane::Lane ( NBEdge e,
const std::string &  _origID 
)

constructor

Definition at line 125 of file NBEdge.cpp.

References Parameterised::setParameter(), and SUMO_PARAM_ORIGID.

Member Function Documentation

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 97 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 87 of file Parameterised.cpp.

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

Referenced by MSDevice_Battery::buildVehicleDevices().

◆ getMap()

◆ 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 77 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::equippedByDefaultAssignmentOptions(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), libsumo::Edge::getParameter(), libsumo::Polygon::getParameter(), libsumo::Route::getParameter(), libsumo::POI::getParameter(), libsumo::TrafficLight::getParameter(), libsumo::VehicleType::getParameter(), libsumo::Person::getParameter(), libsumo::Lane::getParameter(), libsumo::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(), libsumo::Helper::moveToXYMap(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSSOTLPolicyDesirability::readParameter(), MSDevice_SSM::requestsTrajectories(), NBEdgeCont::splitAt(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), MSDevice_SSM::useGeoCoords(), and NWWriter_DlrNavteq::writeLinksUnsplitted().

◆ knowsParameter()

◆ setParameter()

◆ unsetParameter()

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

Removes a parameter.

Parameters
[in]keyThe parameter's name

Definition at line 57 of file Parameterised.cpp.

References Parameterised::myMap.

◆ updateParameter()

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

Adds or updates all given parameters from the map.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 63 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLJunctionControlBuilder::closeJunction(), NBTrafficLightDefinition::compute(), and NIImporter_OpenStreetMap::insertEdge().

◆ writeParams()

Field Documentation

◆ accelRamp

bool NBEdge::Lane::accelRamp

Whether this lane is an acceleration lane.

Definition at line 147 of file NBEdge.h.

Referenced by GNELane::getAttribute(), NBEdge::getTypeID(), NWWriter_SUMO::writeEdge(), and NWWriter_XML::writeEdgesAndConnections().

◆ connectionsDone

bool NBEdge::Lane::connectionsDone

Whether connection information for this lane is already completed.

Definition at line 151 of file NBEdge.h.

Referenced by NBNode::computeLanes2Lanes(), NBNodeCont::joinNodeClusters(), and NIImporter_DlrNavteq::ConnectedLanesHandler::report().

◆ customShape

PositionVector NBEdge::Lane::customShape

A custom shape for this lane set by the user.

Definition at line 154 of file NBEdge.h.

Referenced by GNELane::getAttribute(), NBEdge::getLaneSpreadFunction(), NWWriter_SUMO::writeEdge(), and NWWriter_XML::writeEdgesAndConnections().

◆ endOffset

double NBEdge::Lane::endOffset

This lane's offset to the intersection begin.

Definition at line 138 of file NBEdge.h.

Referenced by GNEEdge::addLane(), NBNode::computeInternalLaneShape(), GNELane::getAttribute(), NWWriter_SUMO::writeEdge(), and NWWriter_XML::writeEdgesAndConnections().

◆ oppositeID

std::string NBEdge::Lane::oppositeID

◆ permissions

◆ preferred

SVCPermissions NBEdge::Lane::preferred

List of vehicle types that are preferred on this lane.

Definition at line 135 of file NBEdge.h.

Referenced by GNEEdge::addLane(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), and NWWriter_SUMO::writeInternalEdges().

◆ shape

◆ speed

double NBEdge::Lane::speed

◆ width


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