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

Scope for interaction with inductive loops. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::InductionLoopScope:
Inheritance graph
Collaboration diagram for TraCIAPI::InductionLoopScope:
Collaboration graph

Public Member Functions

std::vector< std::string > getIDList () const
 
std::string getLaneID (const std::string &loopID) const
 
double getLastStepMeanLength (const std::string &loopID) const
 
double getLastStepMeanSpeed (const std::string &loopID) const
 
double getLastStepOccupancy (const std::string &loopID) const
 
std::vector< std::string > getLastStepVehicleIDs (const std::string &loopID) const
 
int getLastStepVehicleNumber (const std::string &loopID) const
 
double getPosition (const std::string &loopID) const
 
double getTimeSinceDetection (const std::string &loopID) const
 
std::vector< TraCIVehicleDatagetVehicleData (const std::string &loopID) const
 
 InductionLoopScope (TraCIAPI &parent)
 
virtual ~InductionLoopScope ()
 

Protected Attributes

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

Private Member Functions

 InductionLoopScope (const InductionLoopScope &src)
 invalidated copy constructor More...
 
InductionLoopScopeoperator= (const InductionLoopScope &src)
 invalidated assignment operator More...
 

Detailed Description

Scope for interaction with inductive loops.

Definition at line 228 of file TraCIAPI.h.

Constructor & Destructor Documentation

◆ InductionLoopScope() [1/2]

TraCIAPI::InductionLoopScope::InductionLoopScope ( TraCIAPI parent)
inline

Definition at line 230 of file TraCIAPI.h.

◆ ~InductionLoopScope()

virtual TraCIAPI::InductionLoopScope::~InductionLoopScope ( )
inlinevirtual

◆ InductionLoopScope() [2/2]

TraCIAPI::InductionLoopScope::InductionLoopScope ( const InductionLoopScope src)
private

invalidated copy constructor

Member Function Documentation

◆ getIDList()

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

Definition at line 828 of file TraCIAPI.cpp.

References CMD_GET_INDUCTIONLOOP_VARIABLE, and ID_LIST.

Referenced by TraCITestClient::testAPI().

◆ getLaneID()

std::string TraCIAPI::InductionLoopScope::getLaneID ( const std::string &  loopID) const

Definition at line 838 of file TraCIAPI.cpp.

References CMD_GET_INDUCTIONLOOP_VARIABLE, and VAR_LANE_ID.

◆ getLastStepMeanLength()

double TraCIAPI::InductionLoopScope::getLastStepMeanLength ( const std::string &  loopID) const

Definition at line 863 of file TraCIAPI.cpp.

References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_LENGTH.

◆ getLastStepMeanSpeed()

double TraCIAPI::InductionLoopScope::getLastStepMeanSpeed ( const std::string &  loopID) const

Definition at line 848 of file TraCIAPI.cpp.

References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_MEAN_SPEED.

◆ getLastStepOccupancy()

double TraCIAPI::InductionLoopScope::getLastStepOccupancy ( const std::string &  loopID) const

Definition at line 858 of file TraCIAPI.cpp.

References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_OCCUPANCY.

◆ getLastStepVehicleIDs()

std::vector< std::string > TraCIAPI::InductionLoopScope::getLastStepVehicleIDs ( const std::string &  loopID) const

Definition at line 853 of file TraCIAPI.cpp.

References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_VEHICLE_ID_LIST.

◆ getLastStepVehicleNumber()

int TraCIAPI::InductionLoopScope::getLastStepVehicleNumber ( const std::string &  loopID) const

Definition at line 843 of file TraCIAPI.cpp.

References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_VEHICLE_NUMBER.

◆ getPosition()

double TraCIAPI::InductionLoopScope::getPosition ( const std::string &  loopID) const

Definition at line 833 of file TraCIAPI.cpp.

References CMD_GET_INDUCTIONLOOP_VARIABLE, and VAR_POSITION.

◆ getTimeSinceDetection()

double TraCIAPI::InductionLoopScope::getTimeSinceDetection ( const std::string &  loopID) const

Definition at line 868 of file TraCIAPI.cpp.

References CMD_GET_INDUCTIONLOOP_VARIABLE, and LAST_STEP_TIME_SINCE_DETECTION.

◆ getVehicleData()

◆ operator=()

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

invalidated assignment operator

Field Documentation

◆ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 131 of file TraCIAPI.h.


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