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

#include <Lane.h>

Collaboration diagram for libsumo::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 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 const MSLane * getLane (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< TraCIConnection > getLinks (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

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

Detailed Description

Definition at line 52 of file Lane.h.

Constructor & Destructor Documentation

libsumo::Lane::Lane ( )
private

invalidated standard constructor

libsumo::Lane::Lane ( const Lane &  src)
private

invalidated copy constructor

Member Function Documentation

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

Definition at line 146 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 152 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 119 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 61 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 187 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 175 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 158 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

int Lane::getIDCount ( )
static

Definition at line 55 of file Lane.cpp.

References getIDList().

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 47 of file Lane.cpp.

References MSLane::insertIDs().

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

std::vector< std::string > Lane::getInternalFoes ( const std::string &  laneID)
static
int Lane::getLastStepHaltingNumber ( std::string  laneID)
static
double Lane::getLastStepLength ( std::string  laneID)
static
double Lane::getLastStepMeanSpeed ( std::string  laneID)
static

Definition at line 193 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 199 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 239 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 67 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 79 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 73 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 181 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 170 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 336 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 164 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 227 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 221 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

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

Definition at line 140 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processGet().

Lane& libsumo::Lane::operator= ( const Lane &  src)
private

invalidated assignment operator

void Lane::setAllowed ( std::string  laneID,
std::vector< std::string >  allowedClasses 
)
static
void Lane::setDisallowed ( std::string  laneID,
std::vector< std::string >  disallowedClasses 
)
static
void Lane::setLength ( std::string  laneID,
double  length 
)
static

Definition at line 329 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processSet().

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

Definition at line 322 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processSet().

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

Definition at line 342 of file Lane.cpp.

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

Referenced by TraCIServerAPI_Lane::processSet().

static void libsumo::Lane::subscribe ( const std::string &  objID,
SUMOTime  beginTime,
SUMOTime  endTime,
const std::vector< int > &  vars 
)
static
static void libsumo::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: