Eclipse SUMO - Simulation of Urban MObility
libsumo::Lane Class Reference

#include <Lane.h>

Collaboration diagram for libsumo::Lane:

Static Public Member Functions

static std::vector< std::string > getAllowed (std::string laneID)
 
static double getCO2Emission (std::string laneID)
 
static double getCOEmission (std::string laneID)
 
static std::vector< std::string > getDisallowed (std::string laneID)
 
static std::string getEdgeID (std::string laneID)
 
static double getElectricityConsumption (std::string laneID)
 
static std::vector< std::string > getFoes (const std::string &laneID, const std::string &toLaneID)
 
static double getFuelConsumption (std::string laneID)
 
static double getHCEmission (std::string laneID)
 
static int getIDCount ()
 
static std::vector< std::string > getIDList ()
 
static std::vector< std::string > getInternalFoes (const std::string &laneID)
 
static int getLastStepHaltingNumber (std::string laneID)
 
static double getLastStepLength (std::string laneID)
 
static double getLastStepMeanSpeed (std::string laneID)
 
static double getLastStepOccupancy (std::string laneID)
 
static std::vector< std::string > getLastStepVehicleIDs (std::string laneID)
 
static int getLastStepVehicleNumber (std::string laneID)
 
static double getLength (std::string laneID)
 
static int getLinkNumber (std::string laneID)
 
static std::vector< TraCIConnectiongetLinks (std::string laneID)
 
static double getMaxSpeed (std::string laneID)
 
static double getNoiseEmission (std::string laneID)
 
static double getNOxEmission (std::string laneID)
 
static std::string getParameter (const std::string &laneID, const std::string &param)
 
static double getPMxEmission (std::string laneID)
 
static TraCIPositionVector getShape (std::string laneID)
 
static double getTraveltime (std::string laneID)
 
static double getWaitingTime (std::string laneID)
 
static double getWidth (std::string laneID)
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static std::shared_ptr< VariableWrappermakeWrapper ()
 
static void setAllowed (std::string laneID, std::vector< std::string > allowedClasses)
 
static void setDisallowed (std::string laneID, std::vector< std::string > disallowedClasses)
 
static void setLength (std::string laneID, double length)
 
static void setMaxSpeed (std::string laneID, double speed)
 
static void setParameter (const std::string &routeID, const std::string &key, const std::string &value)
 
static LIBSUMO_SUBSCRIPTION_API void storeShape (const std::string &id, PositionVector &shape)
 Saves the shape of the requested object in the given container. More...
 

Private Member Functions

 Lane ()=delete
 invalidated standard constructor More...
 

Static Private Member Functions

static const MSLanegetLane (const std::string &id)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 50 of file Lane.h.

Constructor & Destructor Documentation

◆ Lane()

libsumo::Lane::Lane ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ getAllowed()

std::vector< std::string > Lane::getAllowed ( std::string  laneID)
static

Definition at line 108 of file Lane.cpp.

References getLane(), MSLane::getPermissions(), getVehicleClassNamesList(), and SVCAll.

Referenced by handleVariable().

◆ getCO2Emission()

double Lane::getCO2Emission ( std::string  laneID)
static

Definition at line 145 of file Lane.cpp.

References MSLane::getCO2Emissions(), and getLane().

Referenced by handleVariable().

◆ getCOEmission()

double Lane::getCOEmission ( std::string  laneID)
static

Definition at line 151 of file Lane.cpp.

References MSLane::getCOEmissions(), and getLane().

Referenced by handleVariable().

◆ getDisallowed()

std::vector< std::string > Lane::getDisallowed ( std::string  laneID)
static

Definition at line 118 of file Lane.cpp.

References getLane(), getVehicleClassNamesList(), and invertPermissions().

Referenced by handleVariable().

◆ getEdgeID()

std::string Lane::getEdgeID ( std::string  laneID)
static

Definition at line 62 of file Lane.cpp.

References MSLane::getEdge(), Named::getID(), and getLane().

Referenced by handleVariable().

◆ getElectricityConsumption()

double Lane::getElectricityConsumption ( std::string  laneID)
static

Definition at line 186 of file Lane.cpp.

References MSLane::getElectricityConsumption(), and getLane().

Referenced by handleVariable().

◆ getFoes()

std::vector< std::string > Lane::getFoes ( const std::string &  laneID,
const std::string &  toLaneID 
)
static

◆ getFuelConsumption()

double Lane::getFuelConsumption ( std::string  laneID)
static

Definition at line 174 of file Lane.cpp.

References MSLane::getFuelConsumption(), and getLane().

Referenced by handleVariable().

◆ getHCEmission()

double Lane::getHCEmission ( std::string  laneID)
static

Definition at line 157 of file Lane.cpp.

References MSLane::getHCEmissions(), and getLane().

Referenced by handleVariable().

◆ getIDCount()

int Lane::getIDCount ( )
static

Definition at line 56 of file Lane.cpp.

References getIDList().

Referenced by handleVariable().

◆ getIDList()

std::vector< std::string > Lane::getIDList ( )
static

Definition at line 48 of file Lane.cpp.

References MSLane::insertIDs().

Referenced by getIDCount(), and handleVariable().

◆ getInternalFoes()

std::vector< std::string > Lane::getInternalFoes ( const std::string &  laneID)
static

◆ getLane()

◆ getLastStepHaltingNumber()

int Lane::getLastStepHaltingNumber ( std::string  laneID)
static

◆ getLastStepLength()

double Lane::getLastStepLength ( std::string  laneID)
static

Definition at line 204 of file Lane.cpp.

References getLane(), MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().

Referenced by handleVariable().

◆ getLastStepMeanSpeed()

double Lane::getLastStepMeanSpeed ( std::string  laneID)
static

Definition at line 192 of file Lane.cpp.

References getLane(), and MSLane::getMeanSpeed().

Referenced by handleVariable().

◆ getLastStepOccupancy()

double Lane::getLastStepOccupancy ( std::string  laneID)
static

Definition at line 198 of file Lane.cpp.

References getLane(), and MSLane::getNettoOccupancy().

Referenced by handleVariable().

◆ getLastStepVehicleIDs()

std::vector< std::string > Lane::getLastStepVehicleIDs ( std::string  laneID)
static

Definition at line 258 of file Lane.cpp.

References getLane(), MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().

Referenced by handleVariable().

◆ getLastStepVehicleNumber()

int Lane::getLastStepVehicleNumber ( std::string  laneID)
static

Definition at line 238 of file Lane.cpp.

References getLane(), and MSLane::getVehicleNumber().

Referenced by handleVariable().

◆ getLength()

double Lane::getLength ( std::string  laneID)
static

Definition at line 68 of file Lane.cpp.

References getLane(), and MSLane::getLength().

Referenced by handleVariable().

◆ getLinkNumber()

int Lane::getLinkNumber ( std::string  laneID)
static

Definition at line 80 of file Lane.cpp.

References getLane(), and MSLane::getLinkCont().

Referenced by handleVariable().

◆ getLinks()

◆ getMaxSpeed()

double Lane::getMaxSpeed ( std::string  laneID)
static

Definition at line 74 of file Lane.cpp.

References getLane(), and MSLane::getSpeedLimit().

Referenced by handleVariable().

◆ getNoiseEmission()

double Lane::getNoiseEmission ( std::string  laneID)
static

Definition at line 180 of file Lane.cpp.

References MSLane::getHarmonoise_NoiseEmissions(), and getLane().

Referenced by handleVariable().

◆ getNOxEmission()

double Lane::getNOxEmission ( std::string  laneID)
static

Definition at line 169 of file Lane.cpp.

References getLane(), and MSLane::getNOxEmissions().

Referenced by handleVariable().

◆ getParameter()

std::string Lane::getParameter ( const std::string &  laneID,
const std::string &  param 
)
static

Definition at line 342 of file Lane.cpp.

References getLane(), and Parameterised::getParameter().

Referenced by TraCIServerAPI_Lane::processGet().

◆ getPMxEmission()

double Lane::getPMxEmission ( std::string  laneID)
static

Definition at line 163 of file Lane.cpp.

References getLane(), and MSLane::getPMxEmissions().

Referenced by handleVariable().

◆ getShape()

TraCIPositionVector Lane::getShape ( std::string  laneID)
static

◆ getTraveltime()

double Lane::getTraveltime ( std::string  laneID)
static

Definition at line 226 of file Lane.cpp.

References getLane(), MSLane::getLength(), and MSLane::getMeanSpeed().

Referenced by handleVariable().

◆ getWaitingTime()

double Lane::getWaitingTime ( std::string  laneID)
static

Definition at line 220 of file Lane.cpp.

References getLane(), and MSLane::getWaitingSeconds().

Referenced by handleVariable().

◆ getWidth()

double Lane::getWidth ( std::string  laneID)
static

Definition at line 139 of file Lane.cpp.

References getLane(), and MSLane::getWidth().

Referenced by handleVariable().

◆ handleVariable()

bool Lane::handleVariable ( const std::string &  objID,
const int  variable,
VariableWrapper wrapper 
)
static

◆ makeWrapper()

std::shared_ptr< VariableWrapper > Lane::makeWrapper ( )
static

◆ setAllowed()

void Lane::setAllowed ( std::string  laneID,
std::vector< std::string >  allowedClasses 
)
static

◆ setDisallowed()

void Lane::setDisallowed ( std::string  laneID,
std::vector< std::string >  disallowedClasses 
)
static

◆ setLength()

void Lane::setLength ( std::string  laneID,
double  length 
)
static

Definition at line 335 of file Lane.cpp.

References getLane(), and MSLane::setLength().

Referenced by TraCIServerAPI_Lane::processSet().

◆ setMaxSpeed()

void Lane::setMaxSpeed ( std::string  laneID,
double  speed 
)
static

Definition at line 328 of file Lane.cpp.

References getLane(), and MSLane::setMaxSpeed().

Referenced by TraCIServerAPI_Lane::processSet().

◆ setParameter()

void Lane::setParameter ( const std::string &  routeID,
const std::string &  key,
const std::string &  value 
)
static

Definition at line 348 of file Lane.cpp.

References getLane(), and Parameterised::setParameter().

Referenced by TraCIServerAPI_Lane::processSet().

◆ storeShape()

void Lane::storeShape ( const std::string &  id,
PositionVector shape 
)
static

Saves the shape of the requested object in the given container.

Parameters
idThe id of the lane to retrieve
shapeThe container to fill

Definition at line 368 of file Lane.cpp.

References getLane(), and MSLane::getShape().

Referenced by libsumo::Helper::findObjectShape().

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Lane::myContextSubscriptionResults
staticprivate

Definition at line 110 of file Lane.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Lane::mySubscriptionResults
staticprivate

Definition at line 109 of file Lane.h.

Referenced by makeWrapper().


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