SUMO - Simulation of Urban MObility
TraCIAPI::EdgeScope Class Reference

Scope for interaction with edges. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::EdgeScope:
TraCIAPI::TraCIScopeWrapper

Public Member Functions

void adaptTraveltime (const std::string &edgeID, SUMOReal time) const
 
 EdgeScope (TraCIAPI &parent)
 
SUMOReal getAdaptedTraveltime (const std::string &edgeID, SUMOTime time) const
 
SUMOReal getCO2Emission (const std::string &edgeID) const
 
SUMOReal getCOEmission (const std::string &edgeID) const
 
SUMOReal getEffort (const std::string &edgeID, SUMOTime time) const
 
SUMOReal getFuelConsumption (const std::string &edgeID) const
 
SUMOReal getHCEmission (const std::string &edgeID) const
 
unsigned int getIDCount () const
 
std::vector< std::string > getIDList () const
 
SUMOReal getLastStepHaltingNumber (const std::string &edgeID) const
 
SUMOReal getLastStepLength (const std::string &edgeID) const
 
SUMOReal getLastStepMeanSpeed (const std::string &edgeID) const
 
SUMOReal getLastStepOccupancy (const std::string &edgeID) const
 
std::vector< std::string > getLastStepVehicleIDs (const std::string &edgeID) const
 
unsigned int getLastStepVehicleNumber (const std::string &edgeID) const
 
SUMOReal getNoiseEmission (const std::string &edgeID) const
 
SUMOReal getNOxEmission (const std::string &edgeID) const
 
SUMOReal getPMxEmission (const std::string &edgeID) const
 
SUMOReal getTraveltime (const std::string &edgeID) const
 
void setEffort (const std::string &edgeID, SUMOReal effort) const
 
void setMaxSpeed (const std::string &edgeID, SUMOReal speed) const
 
virtual ~EdgeScope ()
 

Protected Attributes

TraCIAPImyParent
 The parent TraCI client which offers the connection. More...
 

Private Member Functions

 EdgeScope (const EdgeScope &src)
 invalidated copy constructor More...
 
EdgeScopeoperator= (const EdgeScope &src)
 invalidated assignment operator More...
 

Detailed Description

Scope for interaction with edges.

Definition at line 209 of file TraCIAPI.h.

Constructor & Destructor Documentation

TraCIAPI::EdgeScope::EdgeScope ( TraCIAPI parent)
inline

Definition at line 211 of file TraCIAPI.h.

virtual TraCIAPI::EdgeScope::~EdgeScope ( )
inlinevirtual

Definition at line 212 of file TraCIAPI.h.

TraCIAPI::EdgeScope::EdgeScope ( const EdgeScope src)
private

invalidated copy constructor

Member Function Documentation

void TraCIAPI::EdgeScope::adaptTraveltime ( const std::string &  edgeID,
SUMOReal  time 
) const
SUMOReal TraCIAPI::EdgeScope::getAdaptedTraveltime ( const std::string &  edgeID,
SUMOTime  time 
) const

Definition at line 446 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, VAR_CO2EMISSION, and tcpip::Storage::writeInt().

SUMOReal TraCIAPI::EdgeScope::getCO2Emission ( const std::string &  edgeID) const

Definition at line 460 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and VAR_CO2EMISSION.

SUMOReal TraCIAPI::EdgeScope::getCOEmission ( const std::string &  edgeID) const

Definition at line 465 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and VAR_COEMISSION.

SUMOReal TraCIAPI::EdgeScope::getEffort ( const std::string &  edgeID,
SUMOTime  time 
) const

Definition at line 453 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, VAR_CO2EMISSION, and tcpip::Storage::writeInt().

SUMOReal TraCIAPI::EdgeScope::getFuelConsumption ( const std::string &  edgeID) const

Definition at line 485 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and VAR_FUELCONSUMPTION.

SUMOReal TraCIAPI::EdgeScope::getHCEmission ( const std::string &  edgeID) const

Definition at line 470 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and VAR_HCEMISSION.

unsigned int TraCIAPI::EdgeScope::getIDCount ( ) const

Definition at line 441 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and ID_COUNT.

std::vector< std::string > TraCIAPI::EdgeScope::getIDList ( ) const
SUMOReal TraCIAPI::EdgeScope::getLastStepHaltingNumber ( const std::string &  edgeID) const

Definition at line 520 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and LAST_STEP_VEHICLE_HALTING_NUMBER.

SUMOReal TraCIAPI::EdgeScope::getLastStepLength ( const std::string &  edgeID) const

Definition at line 505 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and LAST_STEP_LENGTH.

SUMOReal TraCIAPI::EdgeScope::getLastStepMeanSpeed ( const std::string &  edgeID) const

Definition at line 495 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and LAST_STEP_MEAN_SPEED.

SUMOReal TraCIAPI::EdgeScope::getLastStepOccupancy ( const std::string &  edgeID) const

Definition at line 500 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and LAST_STEP_OCCUPANCY.

std::vector< std::string > TraCIAPI::EdgeScope::getLastStepVehicleIDs ( const std::string &  edgeID) const

Definition at line 525 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and LAST_STEP_VEHICLE_ID_LIST.

unsigned int TraCIAPI::EdgeScope::getLastStepVehicleNumber ( const std::string &  edgeID) const

Definition at line 515 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and LAST_STEP_VEHICLE_NUMBER.

SUMOReal TraCIAPI::EdgeScope::getNoiseEmission ( const std::string &  edgeID) const

Definition at line 490 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and VAR_NOISEEMISSION.

SUMOReal TraCIAPI::EdgeScope::getNOxEmission ( const std::string &  edgeID) const

Definition at line 480 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and VAR_NOXEMISSION.

SUMOReal TraCIAPI::EdgeScope::getPMxEmission ( const std::string &  edgeID) const

Definition at line 475 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and VAR_PMXEMISSION.

SUMOReal TraCIAPI::EdgeScope::getTraveltime ( const std::string &  edgeID) const

Definition at line 510 of file TraCIAPI.cpp.

References CMD_GET_EDGE_VARIABLE, and VAR_CURRENT_TRAVELTIME.

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

invalidated assignment operator

void TraCIAPI::EdgeScope::setEffort ( const std::string &  edgeID,
SUMOReal  effort 
) const
void TraCIAPI::EdgeScope::setMaxSpeed ( const std::string &  edgeID,
SUMOReal  speed 
) const

Definition at line 546 of file TraCIAPI.cpp.

References CMD_SET_EDGE_VARIABLE, VAR_MAXSPEED, and tcpip::Storage::writeDouble().

Field Documentation

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 190 of file TraCIAPI.h.

Referenced by getIDList().


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