SUMO - Simulation of Urban MObility
TraCI_Lane Class Reference

C++ TraCI client API implementation. More...

#include <TraCI_Lane.h>

Collaboration diagram for TraCI_Lane:
Collaboration graph

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 double getFuelConsumption (std::string laneID)
 
static double getHCEmission (std::string laneID)
 
static int getIDCount ()
 
static std::vector< std::string > getIDList ()
 
static const MSLanegetLane (const std::string &id)
 
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 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 void subscribe (const std::string &objID, SUMOTime beginTime, SUMOTime endTime, const std::vector< int > &vars)
 
static void subscribeContext (const std::string &objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector< int > &vars)
 

Private Member Functions

TraCI_Laneoperator= (const TraCI_Lane &src)
 invalidated assignment operator More...
 
 TraCI_Lane ()
 invalidated standard constructor More...
 
 TraCI_Lane (const TraCI_Lane &src)
 invalidated copy constructor More...
 

Detailed Description

C++ TraCI client API implementation.

Definition at line 52 of file TraCI_Lane.h.

Constructor & Destructor Documentation

◆ TraCI_Lane() [1/2]

TraCI_Lane::TraCI_Lane ( )
private

invalidated standard constructor

◆ TraCI_Lane() [2/2]

TraCI_Lane::TraCI_Lane ( const TraCI_Lane src)
private

invalidated copy constructor

Member Function Documentation

◆ getAllowed()

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

◆ getCO2Emission()

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

Definition at line 146 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getCOEmission()

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

Definition at line 152 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getDisallowed()

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

Definition at line 119 of file TraCI_Lane.cpp.

References getLane(), and getVehicleClassNamesList().

Referenced by TraCIServerAPI_Lane::processGet().

◆ getEdgeID()

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

Definition at line 61 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getElectricityConsumption()

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

Definition at line 187 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getFuelConsumption()

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

Definition at line 175 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getHCEmission()

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

Definition at line 158 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getIDCount()

int TraCI_Lane::getIDCount ( )
static

Definition at line 55 of file TraCI_Lane.cpp.

References getIDList().

Referenced by TraCIServerAPI_Lane::processGet().

◆ getIDList()

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

Definition at line 47 of file TraCI_Lane.cpp.

References MSLane::insertIDs().

Referenced by getIDCount(), and TraCIServerAPI_Lane::processGet().

◆ getLane()

◆ getLastStepHaltingNumber()

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

◆ getLastStepLength()

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

◆ getLastStepMeanSpeed()

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

Definition at line 193 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getLastStepOccupancy()

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

Definition at line 199 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getLastStepVehicleIDs()

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

◆ getLastStepVehicleNumber()

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

Definition at line 239 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getLength()

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

Definition at line 67 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getLinkNumber()

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

Definition at line 79 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getLinks()

◆ getMaxSpeed()

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

Definition at line 73 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getNoiseEmission()

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

Definition at line 181 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getNOxEmission()

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

Definition at line 170 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getParameter()

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

Definition at line 304 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getPMxEmission()

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

Definition at line 164 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getShape()

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

◆ getTraveltime()

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

Definition at line 227 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getWaitingTime()

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

Definition at line 221 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ getWidth()

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

Definition at line 140 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

◆ operator=()

TraCI_Lane& TraCI_Lane::operator= ( const TraCI_Lane src)
private

invalidated assignment operator

◆ setAllowed()

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

◆ setDisallowed()

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

◆ setLength()

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

Definition at line 297 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processSet().

◆ setMaxSpeed()

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

Definition at line 290 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processSet().

◆ setParameter()

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

Definition at line 310 of file TraCI_Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processSet().

◆ subscribe()

static void TraCI_Lane::subscribe ( const std::string &  objID,
SUMOTime  beginTime,
SUMOTime  endTime,
const std::vector< int > &  vars 
)
static

◆ subscribeContext()

static void TraCI_Lane::subscribeContext ( const std::string &  objID,
SUMOTime  beginTime,
SUMOTime  endTime,
int  domain,
double  range,
const std::vector< int > &  vars 
)
static

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