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 getFriction (std::string laneID)
 
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 const std::vector< std::string > getPendingVehicles (const 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, tcpip::Storage *paramData)
 
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 setFriction (std::string laneID, double friction)
 
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 MSLanegetLane (const std::string &id)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 45 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 114 of file libsumo/Lane.cpp.

References getVehicleClassNamesList(), and SVCAll.

◆ getCO2Emission()

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

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

References PollutantsInterface::CO2.

◆ getCOEmission()

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

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

References PollutantsInterface::CO.

◆ getDisallowed()

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

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

References getVehicleClassNamesList(), and invertPermissions().

◆ getEdgeID()

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

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

◆ getElectricityConsumption()

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

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

References PollutantsInterface::ELEC.

◆ getFoes()

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

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

References MSLink::getFoeLinks().

◆ getFriction()

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

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

◆ getFuelConsumption()

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

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

References PollutantsInterface::FUEL.

◆ getHCEmission()

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

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

References PollutantsInterface::HC.

◆ getInternalFoes()

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

◆ getLane()

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

Definition at line 382 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 210 of file libsumo/Lane.cpp.

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

◆ getLastStepMeanSpeed()

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

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

◆ getLastStepOccupancy()

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

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

◆ getLastStepVehicleIDs()

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

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

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

◆ getLastStepVehicleNumber()

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

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

◆ getLength()

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

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

◆ getLinkNumber()

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

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

◆ getLinks()

◆ getMaxSpeed()

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

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

◆ getNoiseEmission()

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

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

◆ getNOxEmission()

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

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

References PollutantsInterface::NO_X.

◆ getPendingVehicles()

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

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

References MSNet::getInstance().

◆ getPMxEmission()

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

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

References PollutantsInterface::PM_X.

◆ getShape()

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

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

◆ getTraveltime()

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

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

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

◆ getWaitingTime()

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

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

◆ getWidth()

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

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

◆ handleVariable()

◆ makeWrapper()

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

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

◆ setAllowed() [1/2]

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

Definition at line 324 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

◆ setFriction()

void Lane::setFriction ( std::string  laneID,
double  friction 
)
static

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

◆ setLength()

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

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

◆ setMaxSpeed()

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

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

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

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Lane::myContextSubscriptionResults
staticprivate

Definition at line 110 of file Lane.h.

◆ mySubscriptionResults

SubscriptionResults Lane::mySubscriptionResults
staticprivate

Definition at line 109 of file Lane.h.


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