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

Scope for interaction with multi entry/-exit detectors. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::MeMeScope:
Collaboration diagram for TraCIAPI::MeMeScope:

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
 
int getLastStepHaltingNumber (const std::string &detID) const
 
double getLastStepMeanSpeed (const std::string &detID) const
 
std::vector< std::string > getLastStepVehicleIDs (const std::string &detID) const
 
int getLastStepVehicleNumber (const std::string &detID) 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...
 
const libsumo::TraCIResults getSubscriptionResults (const std::string &objID) const
 
 MeMeScope (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 ~MeMeScope ()
 

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

 MeMeScope (const MeMeScope &src)
 invalidated copy constructor More...
 
MeMeScopeoperator= (const MeMeScope &src)
 invalidated assignment operator More...
 

Detailed Description

Scope for interaction with multi entry/-exit detectors.

Definition at line 380 of file TraCIAPI.h.

Constructor & Destructor Documentation

◆ MeMeScope() [1/2]

TraCIAPI::MeMeScope::MeMeScope ( TraCIAPI parent)
inline

Definition at line 382 of file TraCIAPI.h.

◆ ~MeMeScope()

virtual TraCIAPI::MeMeScope::~MeMeScope ( )
inlinevirtual

Definition at line 383 of file TraCIAPI.h.

◆ MeMeScope() [2/2]

TraCIAPI::MeMeScope::MeMeScope ( const MeMeScope 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.

◆ getAllSubscriptionResults()

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

Definition at line 3675 of file TraCIAPI.cpp.

◆ 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().

◆ getIDList()

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

◆ getLastStepHaltingNumber()

int TraCIAPI::MeMeScope::getLastStepHaltingNumber ( const std::string &  detID) const

◆ getLastStepMeanSpeed()

double TraCIAPI::MeMeScope::getLastStepMeanSpeed ( const std::string &  detID) const

◆ getLastStepVehicleIDs()

std::vector< std::string > TraCIAPI::MeMeScope::getLastStepVehicleIDs ( const std::string &  detID) const

◆ getLastStepVehicleNumber()

int TraCIAPI::MeMeScope::getLastStepVehicleNumber ( const std::string &  detID) const

◆ 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.

◆ 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().

◆ 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().

◆ operator=()

MeMeScope& TraCIAPI::MeMeScope::operator= ( const MeMeScope 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

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: