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

Scope for interaction with inductive loops. More...

#include <TraCIAPI.h>

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

Public Member Functions

void clearSubscriptionResults ()
 
const libsumo::ContextSubscriptionResults getAllContextSubscriptionResults () const
 
const libsumo::SubscriptionResults getAllSubscriptionResults () const
 
const libsumo::SubscriptionResults getContextSubscriptionResults (const std::string &objID) const
 
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
 
libsumo::SubscriptionResultsgetModifiableContextSubscriptionResults (const std::string &objID)
 
libsumo::SubscriptionResultsgetModifiableSubscriptionResults ()
 
std::string getParameter (const std::string &objectID, const std::string &key) const
 retrieve generic paramter More...
 
double getPosition (const std::string &loopID) const
 
const libsumo::TraCIResults getSubscriptionResults (const std::string &objID) const
 
double getTimeSinceDetection (const std::string &loopID) const
 
std::vector< libsumo::TraCIVehicleDatagetVehicleData (const std::string &loopID) const
 
 InductionLoopScope (TraCIAPI &parent)
 
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 ~InductionLoopScope ()
 

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

 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 250 of file TraCIAPI.h.

Constructor & Destructor Documentation

◆ InductionLoopScope() [1/2]

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

Definition at line 252 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

◆ clearSubscriptionResults()

void TraCIAPI::TraCIScopeWrapper::clearSubscriptionResults ( )
inherited

Definition at line 3667 of file TraCIAPI.cpp.

Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().

◆ getAllContextSubscriptionResults()

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

Definition at line 3651 of file TraCIAPI.cpp.

Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().

◆ getAllSubscriptionResults()

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

Definition at line 3635 of file TraCIAPI.cpp.

Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().

◆ getContextSubscriptionResults()

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

◆ getIDList()

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

◆ getLaneID()

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

Definition at line 937 of file TraCIAPI.cpp.

References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::VAR_LANE_ID.

◆ getLastStepMeanLength()

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

◆ getLastStepMeanSpeed()

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

◆ getLastStepOccupancy()

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

◆ getLastStepVehicleIDs()

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

◆ getLastStepVehicleNumber()

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

◆ getModifiableContextSubscriptionResults()

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

Definition at line 3680 of file TraCIAPI.cpp.

Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().

◆ getModifiableSubscriptionResults()

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

Definition at line 3674 of file TraCIAPI.cpp.

Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().

◆ getParameter()

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

◆ getPosition()

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

Definition at line 932 of file TraCIAPI.cpp.

References libsumo::CMD_GET_INDUCTIONLOOP_VARIABLE, and libsumo::VAR_POSITION.

◆ getSubscriptionResults()

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

◆ getTimeSinceDetection()

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

◆ getVehicleData()

◆ operator=()

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

invalidated assignment operator

◆ 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

◆ subscribeContext()

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

Field Documentation

◆ myCmdGetID

int TraCIAPI::TraCIScopeWrapper::myCmdGetID
protectedinherited

Definition at line 146 of file TraCIAPI.h.

◆ myCmdSetID

int TraCIAPI::TraCIScopeWrapper::myCmdSetID
protectedinherited

Definition at line 147 of file TraCIAPI.h.

◆ myContextSubscribeID

int TraCIAPI::TraCIScopeWrapper::myContextSubscribeID
protectedinherited

Definition at line 149 of file TraCIAPI.h.

◆ myContextSubscriptionResults

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

Definition at line 151 of file TraCIAPI.h.

◆ myParent

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 145 of file TraCIAPI.h.

◆ mySubscribeID

int TraCIAPI::TraCIScopeWrapper::mySubscribeID
protectedinherited

Definition at line 148 of file TraCIAPI.h.

◆ mySubscriptionResults

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

Definition at line 150 of file TraCIAPI.h.


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