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

#include <Lane.h>

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 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< libsumo::TraCIConnectiongetLinks (std::string laneID)
 
static double getMaxSpeed (std::string laneID)
 
static double getNoiseEmission (std::string laneID)
 
static double getNOxEmission (std::string laneID)
 
static double getPMxEmission (std::string laneID)
 
static libsumo::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< VariableWrapper > makeWrapper ()
 
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void setAllowed (std::string laneID, std::string allowedClass)
 
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 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 49 of file Lane.h.

Constructor & Destructor Documentation

◆ Lane()

LIBSUMO_NAMESPACE::Lane::Lane ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ getAllowed()

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

Definition at line 107 of file libsumo/Lane.cpp.

References getVehicleClassNamesList(), and SVCAll.

◆ getCO2Emission()

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

Definition at line 144 of file libsumo/Lane.cpp.

◆ getCOEmission()

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

Definition at line 150 of file libsumo/Lane.cpp.

◆ getDisallowed()

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

Definition at line 117 of file libsumo/Lane.cpp.

References getVehicleClassNamesList(), and invertPermissions().

◆ getEdgeID()

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

Definition at line 61 of file libsumo/Lane.cpp.

◆ getElectricityConsumption()

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

Definition at line 185 of file libsumo/Lane.cpp.

◆ getFoes()

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

Definition at line 270 of file libsumo/Lane.cpp.

References MSLink::getFoeLinks().

◆ getFuelConsumption()

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

Definition at line 173 of file libsumo/Lane.cpp.

◆ getHCEmission()

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

Definition at line 156 of file libsumo/Lane.cpp.

◆ getInternalFoes()

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

◆ getLane()

const MSLane * Lane::getLane ( const std::string &  id)
staticprivate

Definition at line 364 of file libsumo/Lane.cpp.

References MSLane::dictionary().

◆ getLastStepHaltingNumber()

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

◆ getLastStepLength()

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

Definition at line 203 of file libsumo/Lane.cpp.

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

◆ getLastStepMeanSpeed()

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

Definition at line 191 of file libsumo/Lane.cpp.

◆ getLastStepOccupancy()

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

Definition at line 197 of file libsumo/Lane.cpp.

◆ getLastStepVehicleIDs()

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

Definition at line 257 of file libsumo/Lane.cpp.

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

◆ getLastStepVehicleNumber()

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

Definition at line 237 of file libsumo/Lane.cpp.

◆ getLength()

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

Definition at line 67 of file libsumo/Lane.cpp.

◆ getLinkNumber()

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

Definition at line 79 of file libsumo/Lane.cpp.

◆ getLinks()

◆ getMaxSpeed()

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

Definition at line 73 of file libsumo/Lane.cpp.

◆ getNoiseEmission()

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

Definition at line 179 of file libsumo/Lane.cpp.

◆ getNOxEmission()

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

Definition at line 168 of file libsumo/Lane.cpp.

◆ getPMxEmission()

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

Definition at line 162 of file libsumo/Lane.cpp.

◆ getShape()

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

Definition at line 123 of file libsumo/Lane.cpp.

◆ getTraveltime()

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

Definition at line 225 of file libsumo/Lane.cpp.

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

◆ getWaitingTime()

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

Definition at line 219 of file libsumo/Lane.cpp.

◆ getWidth()

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

Definition at line 138 of file libsumo/Lane.cpp.

◆ handleVariable()

◆ makeWrapper()

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

Definition at line 380 of file libsumo/Lane.cpp.

◆ setAllowed() [1/2]

void Lane::setAllowed ( std::string  laneID,
std::string  allowedClass 
)
static

Definition at line 303 of file libsumo/Lane.cpp.

◆ setAllowed() [2/2]

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 338 of file libsumo/Lane.cpp.

References MSLane::setLength().

◆ setMaxSpeed()

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

Definition at line 331 of file libsumo/Lane.cpp.

References MSLane::setMaxSpeed().

◆ 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 374 of file libsumo/Lane.cpp.

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Lane::myContextSubscriptionResults
staticprivate

Definition at line 106 of file Lane.h.

◆ mySubscriptionResults

SubscriptionResults Lane::mySubscriptionResults
staticprivate

Definition at line 105 of file Lane.h.


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