Eclipse SUMO - Simulation of Urban MObility
TraCIAPI::LaneScope Class Reference

Scope for interaction with lanes. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::LaneScope:
Collaboration diagram for TraCIAPI::LaneScope:

Public Member Functions

void clearSubscriptionResults ()
 
const libsumo::ContextSubscriptionResults getAllContextSubscriptionResults () const
 
std::vector< std::string > getAllowed (const std::string &laneID) const
 
const libsumo::SubscriptionResults getAllSubscriptionResults () const
 
double getCO2Emission (const std::string &laneID) const
 
double getCOEmission (const std::string &laneID) const
 
const libsumo::SubscriptionResults getContextSubscriptionResults (const std::string &objID) const
 
std::vector< std::string > getDisallowed (const std::string &laneID) const
 
std::string getEdgeID (const std::string &laneID) const
 
double getElectricityConsumption (const std::string &laneID) const
 
std::vector< std::string > getFoes (const std::string &laneID, const std::string &toLaneID) const
 
double getFuelConsumption (const std::string &laneID) const
 
double getHCEmission (const std::string &laneID) const
 
int getIDCount () const
 
std::vector< std::string > getIDList () const
 
std::vector< std::string > getInternalFoes (const std::string &laneID) const
 
int getLastStepHaltingNumber (const std::string &laneID) const
 
double getLastStepLength (const std::string &laneID) const
 
double getLastStepMeanSpeed (const std::string &laneID) const
 
double getLastStepOccupancy (const std::string &laneID) const
 
std::vector< std::string > getLastStepVehicleIDs (const std::string &laneID) const
 
int getLastStepVehicleNumber (const std::string &laneID) const
 
double getLength (const std::string &laneID) const
 
int getLinkNumber (const std::string &laneID) const
 
std::vector< libsumo::TraCIConnectiongetLinks (const std::string &laneID) const
 
double getMaxSpeed (const std::string &laneID) const
 
libsumo::SubscriptionResultsgetModifiableContextSubscriptionResults (const std::string &objID)
 
libsumo::SubscriptionResultsgetModifiableSubscriptionResults ()
 
double getNoiseEmission (const std::string &laneID) const
 
double getNOxEmission (const std::string &laneID) const
 
std::string getParameter (const std::string &objectID, const std::string &key) const
 retrieve generic paramter More...
 
double getPMxEmission (const std::string &laneID) const
 
libsumo::TraCIPositionVector getShape (const std::string &laneID) const
 
const libsumo::TraCIResults getSubscriptionResults (const std::string &objID) const
 
double getTraveltime (const std::string &laneID) const
 
double getWidth (const std::string &laneID) const
 
 LaneScope (TraCIAPI &parent)
 
void setAllowed (const std::string &laneID, const std::vector< std::string > &allowedClasses) const
 
void setDisallowed (const std::string &laneID, const std::vector< std::string > &disallowedClasses) const
 
void setLength (const std::string &laneID, double length) const
 
void setMaxSpeed (const std::string &laneID, double speed) const
 
void setParameter (const std::string &objectID, const std::string &key, const std::string &value) const
 set generic paramter More...
 
void subscribe (const std::string &objID, const std::vector< int > &vars, double beginTime, double endTime) const
 
void subscribeContext (const std::string &objID, int domain, double range, const std::vector< int > &vars, double beginTime, double endTime) const
 
virtual ~LaneScope ()
 

Protected Attributes

int myCmdGetID
 
int myCmdSetID
 
int myContextSubscribeID
 
libsumo::ContextSubscriptionResults myContextSubscriptionResults
 
TraCIAPImyParent
 The parent TraCI client which offers the connection. More...
 
int mySubscribeID
 
libsumo::SubscriptionResults mySubscriptionResults
 

Private Member Functions

 LaneScope (const LaneScope &src)
 invalidated copy constructor More...
 
LaneScopeoperator= (const LaneScope &src)
 invalidated assignment operator More...
 

Detailed Description

Scope for interaction with lanes.

Definition at line 308 of file TraCIAPI.h.

Constructor & Destructor Documentation

◆ LaneScope() [1/2]

TraCIAPI::LaneScope::LaneScope ( TraCIAPI parent)
inline

Definition at line 310 of file TraCIAPI.h.

◆ ~LaneScope()

virtual TraCIAPI::LaneScope::~LaneScope ( )
inlinevirtual

Definition at line 311 of file TraCIAPI.h.

◆ LaneScope() [2/2]

TraCIAPI::LaneScope::LaneScope ( const LaneScope src)
private

invalidated copy constructor

Member Function Documentation

◆ clearSubscriptionResults()

void TraCIAPI::TraCIScopeWrapper::clearSubscriptionResults ( )
inherited

Definition at line 3707 of file TraCIAPI.cpp.

◆ getAllContextSubscriptionResults()

const libsumo::ContextSubscriptionResults TraCIAPI::TraCIScopeWrapper::getAllContextSubscriptionResults ( ) const
inherited

Definition at line 3691 of file TraCIAPI.cpp.

◆ getAllowed()

std::vector< std::string > TraCIAPI::LaneScope::getAllowed ( const std::string &  laneID) const

Definition at line 1058 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::LANE_ALLOWED.

◆ getAllSubscriptionResults()

const libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::getAllSubscriptionResults ( ) const
inherited

Definition at line 3675 of file TraCIAPI.cpp.

◆ getCO2Emission()

double TraCIAPI::LaneScope::getCO2Emission ( const std::string &  laneID) const

Definition at line 1133 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_CO2EMISSION.

◆ getCOEmission()

double TraCIAPI::LaneScope::getCOEmission ( const std::string &  laneID) const

Definition at line 1138 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_COEMISSION.

◆ getContextSubscriptionResults()

const libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::getContextSubscriptionResults ( const std::string &  objID) const
inherited

Definition at line 3697 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

◆ getDisallowed()

std::vector< std::string > TraCIAPI::LaneScope::getDisallowed ( const std::string &  laneID) const

Definition at line 1063 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::LANE_DISALLOWED.

◆ getEdgeID()

std::string TraCIAPI::LaneScope::getEdgeID ( const std::string &  laneID) const

Definition at line 1128 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::LANE_EDGE_ID.

◆ getElectricityConsumption()

double TraCIAPI::LaneScope::getElectricityConsumption ( const std::string &  laneID) const

◆ getFoes()

std::vector< std::string > TraCIAPI::LaneScope::getFoes ( const std::string &  laneID,
const std::string &  toLaneID 
) const

◆ getFuelConsumption()

double TraCIAPI::LaneScope::getFuelConsumption ( const std::string &  laneID) const

Definition at line 1158 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_FUELCONSUMPTION.

◆ getHCEmission()

double TraCIAPI::LaneScope::getHCEmission ( const std::string &  laneID) const

Definition at line 1143 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_HCEMISSION.

◆ getIDCount()

int TraCIAPI::LaneScope::getIDCount ( ) const

Definition at line 1038 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::ID_COUNT.

Referenced by TraCITestClient::testAPI().

◆ getIDList()

std::vector< std::string > TraCIAPI::LaneScope::getIDList ( ) const

Definition at line 1033 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::TRACI_ID_LIST.

Referenced by TraCITestClient::testAPI().

◆ getInternalFoes()

std::vector< std::string > TraCIAPI::LaneScope::getInternalFoes ( const std::string &  laneID) const

Definition at line 1225 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

◆ getLastStepHaltingNumber()

int TraCIAPI::LaneScope::getLastStepHaltingNumber ( const std::string &  laneID) const

◆ getLastStepLength()

double TraCIAPI::LaneScope::getLastStepLength ( const std::string &  laneID) const

Definition at line 1183 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::LAST_STEP_LENGTH.

◆ getLastStepMeanSpeed()

double TraCIAPI::LaneScope::getLastStepMeanSpeed ( const std::string &  laneID) const

Definition at line 1173 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::LAST_STEP_MEAN_SPEED.

◆ getLastStepOccupancy()

double TraCIAPI::LaneScope::getLastStepOccupancy ( const std::string &  laneID) const

Definition at line 1178 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::LAST_STEP_OCCUPANCY.

◆ getLastStepVehicleIDs()

std::vector< std::string > TraCIAPI::LaneScope::getLastStepVehicleIDs ( const std::string &  laneID) const

◆ getLastStepVehicleNumber()

int TraCIAPI::LaneScope::getLastStepVehicleNumber ( const std::string &  laneID) const

◆ getLength()

double TraCIAPI::LaneScope::getLength ( const std::string &  laneID) const

Definition at line 1043 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_LENGTH.

◆ getLinkNumber()

int TraCIAPI::LaneScope::getLinkNumber ( const std::string &  laneID) const

Definition at line 1068 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::LANE_LINK_NUMBER.

Referenced by TraCITestClient::testAPI().

◆ getLinks()

std::vector< libsumo::TraCIConnection > TraCIAPI::LaneScope::getLinks ( const std::string &  laneID) const

◆ getMaxSpeed()

double TraCIAPI::LaneScope::getMaxSpeed ( const std::string &  laneID) const

Definition at line 1048 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_MAXSPEED.

Referenced by TraCITestClient::testAPI().

◆ getModifiableContextSubscriptionResults()

libsumo::SubscriptionResults & TraCIAPI::TraCIScopeWrapper::getModifiableContextSubscriptionResults ( const std::string &  objID)
inherited

Definition at line 3720 of file TraCIAPI.cpp.

◆ getModifiableSubscriptionResults()

libsumo::SubscriptionResults & TraCIAPI::TraCIScopeWrapper::getModifiableSubscriptionResults ( )
inherited

Definition at line 3714 of file TraCIAPI.cpp.

◆ getNoiseEmission()

double TraCIAPI::LaneScope::getNoiseEmission ( const std::string &  laneID) const

Definition at line 1163 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_NOISEEMISSION.

◆ getNOxEmission()

double TraCIAPI::LaneScope::getNOxEmission ( const std::string &  laneID) const

Definition at line 1153 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_NOXEMISSION.

◆ getParameter()

std::string TraCIAPI::TraCIScopeWrapper::getParameter ( const std::string &  objectID,
const std::string &  key 
) const
inherited

retrieve generic paramter

Definition at line 3630 of file TraCIAPI.cpp.

References libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().

Referenced by TraCITestClient::testAPI().

◆ getPMxEmission()

double TraCIAPI::LaneScope::getPMxEmission ( const std::string &  laneID) const

Definition at line 1148 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_PMXEMISSION.

◆ getShape()

libsumo::TraCIPositionVector TraCIAPI::LaneScope::getShape ( const std::string &  laneID) const

Definition at line 1123 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_SHAPE.

◆ getSubscriptionResults()

const libsumo::TraCIResults TraCIAPI::TraCIScopeWrapper::getSubscriptionResults ( const std::string &  objID) const
inherited

Definition at line 3681 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

◆ getTraveltime()

double TraCIAPI::LaneScope::getTraveltime ( const std::string &  laneID) const

◆ getWidth()

double TraCIAPI::LaneScope::getWidth ( const std::string &  laneID) const

Definition at line 1053 of file TraCIAPI.cpp.

References libsumo::CMD_GET_LANE_VARIABLE, and libsumo::VAR_WIDTH.

◆ operator=()

LaneScope& TraCIAPI::LaneScope::operator= ( const LaneScope src)
private

invalidated assignment operator

◆ setAllowed()

void TraCIAPI::LaneScope::setAllowed ( const std::string &  laneID,
const std::vector< std::string > &  allowedClasses 
) const

◆ setDisallowed()

void TraCIAPI::LaneScope::setDisallowed ( const std::string &  laneID,
const std::vector< std::string > &  disallowedClasses 
) const

◆ setLength()

void TraCIAPI::LaneScope::setLength ( const std::string &  laneID,
double  length 
) const

◆ setMaxSpeed()

void TraCIAPI::LaneScope::setMaxSpeed ( const std::string &  laneID,
double  speed 
) const

◆ setParameter()

void TraCIAPI::TraCIScopeWrapper::setParameter ( const std::string &  objectID,
const std::string &  key,
const std::string &  value 
) const
inherited

◆ subscribe()

void TraCIAPI::TraCIScopeWrapper::subscribe ( const std::string &  objID,
const std::vector< int > &  vars,
double  beginTime,
double  endTime 
) const
inherited

Definition at line 3653 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

◆ subscribeContext()

void TraCIAPI::TraCIScopeWrapper::subscribeContext ( const std::string &  objID,
int  domain,
double  range,
const std::vector< int > &  vars,
double  beginTime,
double  endTime 
) const
inherited

Definition at line 3665 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Field Documentation

◆ myCmdGetID

int TraCIAPI::TraCIScopeWrapper::myCmdGetID
protectedinherited

Definition at line 145 of file TraCIAPI.h.

◆ myCmdSetID

int TraCIAPI::TraCIScopeWrapper::myCmdSetID
protectedinherited

Definition at line 146 of file TraCIAPI.h.

◆ myContextSubscribeID

int TraCIAPI::TraCIScopeWrapper::myContextSubscribeID
protectedinherited

Definition at line 148 of file TraCIAPI.h.

◆ myContextSubscriptionResults

libsumo::ContextSubscriptionResults TraCIAPI::TraCIScopeWrapper::myContextSubscriptionResults
protectedinherited

Definition at line 150 of file TraCIAPI.h.

◆ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 144 of file TraCIAPI.h.

Referenced by TraCIAPI::EdgeScope::getIDList().

◆ mySubscribeID

int TraCIAPI::TraCIScopeWrapper::mySubscribeID
protectedinherited

Definition at line 147 of file TraCIAPI.h.

◆ mySubscriptionResults

libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::mySubscriptionResults
protectedinherited

Definition at line 149 of file TraCIAPI.h.


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