Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
LIBSUMO_NAMESPACE::Lane Class Reference

#include <Lane.h>

Static Public Member Functions

static std::vector< std::string > getAllowed (const std::string &laneID)
 
static double getAngle (const std::string &laneID, double relativePosition=libsumo::INVALID_DOUBLE_VALUE)
 
static std::vector< std::string > getChangePermissions (const std::string &laneID, const int direction)
 
static double getCO2Emission (const std::string &laneID)
 
static double getCOEmission (const std::string &laneID)
 
static std::vector< std::string > getDisallowed (const std::string &laneID)
 
static std::string getEdgeID (const std::string &laneID)
 
static double getElectricityConsumption (const std::string &laneID)
 
static std::vector< std::string > getFoes (const std::string &laneID, const std::string &toLaneID)
 
static double getFriction (const std::string &laneID)
 
static double getFuelConsumption (const std::string &laneID)
 
static double getHCEmission (const std::string &laneID)
 
static std::vector< std::string > getInternalFoes (const std::string &laneID)
 
static int getLastStepHaltingNumber (const std::string &laneID)
 
static double getLastStepLength (const std::string &laneID)
 
static double getLastStepMeanSpeed (const std::string &laneID)
 
static double getLastStepOccupancy (const std::string &laneID)
 
static std::vector< std::string > getLastStepVehicleIDs (const std::string &laneID)
 
static int getLastStepVehicleNumber (const std::string &laneID)
 
static double getLength (const std::string &laneID)
 
static int getLinkNumber (const std::string &laneID)
 
static std::vector< libsumo::TraCIConnectiongetLinks (const std::string &laneID)
 
static double getMaxSpeed (const std::string &laneID)
 
static double getNoiseEmission (const std::string &laneID)
 
static double getNOxEmission (const std::string &laneID)
 
static const std::vector< std::string > getPendingVehicles (const std::string &laneID)
 
static double getPMxEmission (const std::string &laneID)
 
static libsumo::TraCIPositionVector getShape (const std::string &laneID)
 
static double getTraveltime (const std::string &laneID)
 
static double getWaitingTime (const std::string &laneID)
 
static double getWidth (const 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 (const std::string &laneID, std::string allowedClasses)
 
static void setAllowed (const std::string &laneID, std::vector< std::string > allowedClasses)
 
static void setChangePermissions (const std::string &laneID, std::vector< std::string > allowedClasses, const int direction)
 
static void setDisallowed (const std::string &laneID, std::string disallowedClasses)
 
static void setDisallowed (const std::string &laneID, std::vector< std::string > disallowedClasses)
 
static void setFriction (const std::string &laneID, double friction)
 
static void setLength (const std::string &laneID, double length)
 
static void setMaxSpeed (const 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.
 

Private Member Functions

 Lane ()=delete
 invalidated standard constructor
 

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 ( const std::string &  laneID)
static

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

References getVehicleClassNamesList(), and SVCAll.

◆ getAngle()

double Lane::getAngle ( const std::string &  laneID,
double  relativePosition = libsumo::INVALID_DOUBLE_VALUE 
)
static

◆ getChangePermissions()

std::vector< std::string > Lane::getChangePermissions ( const std::string &  laneID,
const int  direction 
)
static

◆ getCO2Emission()

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

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

References PollutantsInterface::CO2.

◆ getCOEmission()

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

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

References PollutantsInterface::CO.

◆ getDisallowed()

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

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

References getVehicleClassNamesList(), and invertPermissions().

◆ getEdgeID()

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

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

◆ getElectricityConsumption()

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

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

References MSLink::getFoeLinks().

◆ getFriction()

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

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

◆ getFuelConsumption()

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

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

References PollutantsInterface::FUEL.

◆ getHCEmission()

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

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

References MSLane::dictionary().

Referenced by setAllowed().

Here is the caller graph for this function:

◆ getLastStepHaltingNumber()

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

◆ getLastStepLength()

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

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

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

◆ getLastStepMeanSpeed()

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

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

◆ getLastStepOccupancy()

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

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

◆ getLastStepVehicleIDs()

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

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

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

◆ getLastStepVehicleNumber()

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

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

◆ getLength()

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

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

◆ getLinkNumber()

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

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

◆ getLinks()

◆ getMaxSpeed()

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

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

◆ getNoiseEmission()

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

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

◆ getNOxEmission()

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

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

References PollutantsInterface::NO_X.

◆ getPendingVehicles()

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

◆ getPMxEmission()

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

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

References PollutantsInterface::PM_X.

◆ getShape()

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

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

◆ getTraveltime()

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

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

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

◆ getWaitingTime()

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

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

◆ getWidth()

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

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

◆ handleVariable()

◆ makeWrapper()

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

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

Referenced by setAllowed().

Here is the caller graph for this function:

◆ setAllowed() [1/2]

LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void LIBSUMO_NAMESPACE::Lane::setAllowed ( const std::string &  laneID,
std::string  allowedClasses 
)
static

References getLane(), handleVariable(), makeWrapper(), setAllowed(), setChangePermissions(), setDisallowed(), setFriction(), setLength(), setMaxSpeed(), and storeShape().

Referenced by setAllowed().

Here is the caller graph for this function:

◆ setAllowed() [2/2]

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

◆ setChangePermissions()

void Lane::setChangePermissions ( const std::string &  laneID,
std::vector< std::string >  allowedClasses,
const int  direction 
)
static

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

References libsumo::LANECHANGE_LEFT, libsumo::LANECHANGE_RIGHT, parseVehicleClasses(), MSLane::setChangeLeft(), MSLane::setChangeRight(), and toString().

Referenced by setAllowed().

Here is the caller graph for this function:

◆ setDisallowed() [1/2]

void Lane::setDisallowed ( const std::string &  laneID,
std::string  disallowedClasses 
)
static

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

Referenced by setAllowed().

Here is the caller graph for this function:

◆ setDisallowed() [2/2]

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

◆ setFriction()

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

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

Referenced by setAllowed().

Here is the caller graph for this function:

◆ setLength()

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

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

Referenced by setAllowed().

Here is the caller graph for this function:

◆ setMaxSpeed()

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

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

Referenced by setAllowed().

Here is the caller graph for this function:

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

Referenced by setAllowed().

Here is the caller graph for this function:

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Lane::myContextSubscriptionResults
staticprivate

Definition at line 114 of file Lane.h.

◆ mySubscriptionResults

SubscriptionResults Lane::mySubscriptionResults
staticprivate

Definition at line 113 of file Lane.h.


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