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

Scope for interaction with the simulation. More...

#include <TraCIAPI.h>

Inheritance diagram for TraCIAPI::SimulationScope:
Inheritance graph
Collaboration diagram for TraCIAPI::SimulationScope:
Collaboration graph

Public Member Functions

std::vector< std::string > getArrivedIDList () const
 
int getArrivedNumber () const
 
SubscribedContextValues getContextSubscriptionResults ()
 
SubscribedValues getContextSubscriptionResults (const std::string &objID)
 
SUMOTime getCurrentTime () const
 
SUMOTime getDeltaT () const
 
std::vector< std::string > getDepartedIDList () const
 
int getDepartedNumber () const
 
std::vector< std::string > getEndingTeleportIDList () const
 
int getEndingTeleportNumber () const
 
std::vector< std::string > getLoadedIDList () const
 
int getLoadedNumber () const
 
int getMinExpectedNumber () const
 
TraCIBoundary getNetBoundary () const
 
std::vector< std::string > getStartingTeleportIDList () const
 
int getStartingTeleportNumber () const
 
SubscribedValues getSubscriptionResults ()
 
TraCIValues getSubscriptionResults (const std::string &objID)
 
 SimulationScope (TraCIAPI &parent)
 
void subscribe (int domID, const std::string &objID, SUMOTime beginTime, SUMOTime endTime, const std::vector< int > &vars) const
 
void subscribeContext (int domID, const std::string &objID, SUMOTime beginTime, SUMOTime endTime, int domain, SUMOReal range, const std::vector< int > &vars) const
 
virtual ~SimulationScope ()
 

Protected Attributes

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

Private Member Functions

SimulationScopeoperator= (const SimulationScope &src)
 invalidated assignment operator More...
 
 SimulationScope (const SimulationScope &src)
 invalidated copy constructor More...
 

Detailed Description

Scope for interaction with the simulation.

Definition at line 566 of file TraCIAPI.h.

Constructor & Destructor Documentation

TraCIAPI::SimulationScope::SimulationScope ( TraCIAPI parent)
inline

Definition at line 568 of file TraCIAPI.h.

virtual TraCIAPI::SimulationScope::~SimulationScope ( )
inlinevirtual

Definition at line 569 of file TraCIAPI.h.

References SUMOReal.

TraCIAPI::SimulationScope::SimulationScope ( const SimulationScope src)
private

invalidated copy constructor

Member Function Documentation

std::vector< std::string > TraCIAPI::SimulationScope::getArrivedIDList ( ) const

Definition at line 1336 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_ARRIVED_VEHICLES_IDS.

int TraCIAPI::SimulationScope::getArrivedNumber ( ) const

Definition at line 1331 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_ARRIVED_VEHICLES_NUMBER.

TraCIAPI::SubscribedContextValues TraCIAPI::SimulationScope::getContextSubscriptionResults ( )

Definition at line 1411 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

TraCIAPI::SubscribedValues TraCIAPI::SimulationScope::getContextSubscriptionResults ( const std::string &  objID)

Definition at line 1417 of file TraCIAPI.cpp.

SUMOTime TraCIAPI::SimulationScope::getCurrentTime ( ) const

Definition at line 1306 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_TIME_STEP.

Referenced by TraCITestClient::testAPI().

SUMOTime TraCIAPI::SimulationScope::getDeltaT ( ) const

Definition at line 1361 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_DELTA_T.

std::vector< std::string > TraCIAPI::SimulationScope::getDepartedIDList ( ) const

Definition at line 1326 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_DEPARTED_VEHICLES_IDS.

int TraCIAPI::SimulationScope::getDepartedNumber ( ) const

Definition at line 1321 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_DEPARTED_VEHICLES_NUMBER.

std::vector< std::string > TraCIAPI::SimulationScope::getEndingTeleportIDList ( ) const

Definition at line 1356 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_TELEPORT_ENDING_VEHICLES_IDS.

int TraCIAPI::SimulationScope::getEndingTeleportNumber ( ) const

Definition at line 1351 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_TELEPORT_ENDING_VEHICLES_NUMBER.

std::vector< std::string > TraCIAPI::SimulationScope::getLoadedIDList ( ) const

Definition at line 1316 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_LOADED_VEHICLES_IDS.

int TraCIAPI::SimulationScope::getLoadedNumber ( ) const

Definition at line 1311 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_LOADED_VEHICLES_NUMBER.

int TraCIAPI::SimulationScope::getMinExpectedNumber ( ) const

Definition at line 1371 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_MIN_EXPECTED_VEHICLES.

TraCIAPI::TraCIBoundary TraCIAPI::SimulationScope::getNetBoundary ( ) const

Definition at line 1366 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_NET_BOUNDING_BOX.

std::vector< std::string > TraCIAPI::SimulationScope::getStartingTeleportIDList ( ) const

Definition at line 1346 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_TELEPORT_STARTING_VEHICLES_IDS.

int TraCIAPI::SimulationScope::getStartingTeleportNumber ( ) const

Definition at line 1341 of file TraCIAPI.cpp.

References CMD_GET_SIM_VARIABLE, and VAR_TELEPORT_STARTING_VEHICLES_NUMBER.

TraCIAPI::SubscribedValues TraCIAPI::SimulationScope::getSubscriptionResults ( )

Definition at line 1395 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

TraCIAPI::TraCIValues TraCIAPI::SimulationScope::getSubscriptionResults ( const std::string &  objID)

Definition at line 1401 of file TraCIAPI.cpp.

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

invalidated assignment operator

void TraCIAPI::SimulationScope::subscribe ( int  domID,
const std::string &  objID,
SUMOTime  beginTime,
SUMOTime  endTime,
const std::vector< int > &  vars 
) const

Definition at line 1376 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

void TraCIAPI::SimulationScope::subscribeContext ( int  domID,
const std::string &  objID,
SUMOTime  beginTime,
SUMOTime  endTime,
int  domain,
SUMOReal  range,
const std::vector< int > &  vars 
) const

Definition at line 1385 of file TraCIAPI.cpp.

Referenced by TraCITestClient::testAPI().

Field Documentation

TraCIAPI& TraCIAPI::TraCIScopeWrapper::myParent
protectedinherited

The parent TraCI client which offers the connection.

Definition at line 206 of file TraCIAPI.h.


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