![]() |
SUMO - Simulation of Urban MObility
|
Scope for interaction with the simulation. More...
#include <TraCIAPI.h>


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 | |
| TraCIAPI & | myParent |
| The parent TraCI client which offers the connection. More... | |
Private Member Functions | |
| SimulationScope & | operator= (const SimulationScope &src) |
| invalidated assignment operator More... | |
| SimulationScope (const SimulationScope &src) | |
| invalidated copy constructor More... | |
Scope for interaction with the simulation.
Definition at line 568 of file TraCIAPI.h.
|
inline |
Definition at line 570 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 571 of file TraCIAPI.h.
References SUMOReal.
|
private |
invalidated copy constructor
| std::vector< std::string > TraCIAPI::SimulationScope::getArrivedIDList | ( | ) | const |
Definition at line 1353 of file TraCIAPI.cpp.
References CMD_GET_SIM_VARIABLE, and VAR_ARRIVED_VEHICLES_IDS.
| int TraCIAPI::SimulationScope::getArrivedNumber | ( | ) | const |
Definition at line 1348 of file TraCIAPI.cpp.
References CMD_GET_SIM_VARIABLE, and VAR_ARRIVED_VEHICLES_NUMBER.
| TraCIAPI::SubscribedContextValues TraCIAPI::SimulationScope::getContextSubscriptionResults | ( | ) |
Definition at line 1428 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
| TraCIAPI::SubscribedValues TraCIAPI::SimulationScope::getContextSubscriptionResults | ( | const std::string & | objID | ) |
Definition at line 1434 of file TraCIAPI.cpp.
| SUMOTime TraCIAPI::SimulationScope::getCurrentTime | ( | ) | const |
Definition at line 1323 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 1378 of file TraCIAPI.cpp.
References CMD_GET_SIM_VARIABLE, and VAR_DELTA_T.
| std::vector< std::string > TraCIAPI::SimulationScope::getDepartedIDList | ( | ) | const |
Definition at line 1343 of file TraCIAPI.cpp.
References CMD_GET_SIM_VARIABLE, and VAR_DEPARTED_VEHICLES_IDS.
| int TraCIAPI::SimulationScope::getDepartedNumber | ( | ) | const |
Definition at line 1338 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 1373 of file TraCIAPI.cpp.
References CMD_GET_SIM_VARIABLE, and VAR_TELEPORT_ENDING_VEHICLES_IDS.
| int TraCIAPI::SimulationScope::getEndingTeleportNumber | ( | ) | const |
Definition at line 1368 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 1333 of file TraCIAPI.cpp.
References CMD_GET_SIM_VARIABLE, and VAR_LOADED_VEHICLES_IDS.
| int TraCIAPI::SimulationScope::getLoadedNumber | ( | ) | const |
Definition at line 1328 of file TraCIAPI.cpp.
References CMD_GET_SIM_VARIABLE, and VAR_LOADED_VEHICLES_NUMBER.
| int TraCIAPI::SimulationScope::getMinExpectedNumber | ( | ) | const |
Definition at line 1388 of file TraCIAPI.cpp.
References CMD_GET_SIM_VARIABLE, and VAR_MIN_EXPECTED_VEHICLES.
| TraCIAPI::TraCIBoundary TraCIAPI::SimulationScope::getNetBoundary | ( | ) | const |
Definition at line 1383 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 1363 of file TraCIAPI.cpp.
References CMD_GET_SIM_VARIABLE, and VAR_TELEPORT_STARTING_VEHICLES_IDS.
| int TraCIAPI::SimulationScope::getStartingTeleportNumber | ( | ) | const |
Definition at line 1358 of file TraCIAPI.cpp.
References CMD_GET_SIM_VARIABLE, and VAR_TELEPORT_STARTING_VEHICLES_NUMBER.
| TraCIAPI::SubscribedValues TraCIAPI::SimulationScope::getSubscriptionResults | ( | ) |
Definition at line 1412 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
| TraCIAPI::TraCIValues TraCIAPI::SimulationScope::getSubscriptionResults | ( | const std::string & | objID | ) |
Definition at line 1418 of file TraCIAPI.cpp.
|
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 1393 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 1402 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 208 of file TraCIAPI.h.