![]() |
Eclipse SUMO - Simulation of Urban MObility
|
An abstract interface for accessing type-dependent values. More...
#include <TraCIAPI.h>
Public Member Functions | |
void | clearSubscriptionResults () |
const libsumo::ContextSubscriptionResults | getAllContextSubscriptionResults () const |
const libsumo::SubscriptionResults | getAllSubscriptionResults () const |
const libsumo::SubscriptionResults | getContextSubscriptionResults (const std::string &objID) const |
libsumo::SubscriptionResults & | getModifiableContextSubscriptionResults (const std::string &objID) |
libsumo::SubscriptionResults & | getModifiableSubscriptionResults () |
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 |
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 |
TraCIScopeWrapper (TraCIAPI &parent, int cmdGetID, int cmdSetID, int subscribeID, int contextSubscribeID) | |
Constructor. More... | |
virtual | ~TraCIScopeWrapper () |
Destructor. More... | |
Protected Attributes | |
int | myCmdGetID |
int | myCmdSetID |
int | myContextSubscribeID |
libsumo::ContextSubscriptionResults | myContextSubscriptionResults |
TraCIAPI & | myParent |
The parent TraCI client which offers the connection. More... | |
int | mySubscribeID |
libsumo::SubscriptionResults | mySubscriptionResults |
Private Member Functions | |
TraCIScopeWrapper & | operator= (const TraCIScopeWrapper &src) |
invalidated assignment operator More... | |
TraCIScopeWrapper (const TraCIScopeWrapper &src) | |
invalidated copy constructor More... | |
An abstract interface for accessing type-dependent values.
Must be derived by interfaces which implement access methods to certain object types
Definition at line 106 of file TraCIAPI.h.
|
inline |
Constructor.
[in] | parent | The parent TraCI client which offers the connection |
Definition at line 111 of file TraCIAPI.h.
|
inlinevirtual |
Destructor.
Definition at line 120 of file TraCIAPI.h.
|
private |
invalidated copy constructor
void TraCIAPI::TraCIScopeWrapper::clearSubscriptionResults | ( | ) |
Definition at line 3667 of file TraCIAPI.cpp.
const libsumo::ContextSubscriptionResults TraCIAPI::TraCIScopeWrapper::getAllContextSubscriptionResults | ( | ) | const |
Definition at line 3651 of file TraCIAPI.cpp.
const libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::getAllSubscriptionResults | ( | ) | const |
Definition at line 3635 of file TraCIAPI.cpp.
const libsumo::SubscriptionResults TraCIAPI::TraCIScopeWrapper::getContextSubscriptionResults | ( | const std::string & | objID | ) | const |
Definition at line 3657 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
libsumo::SubscriptionResults & TraCIAPI::TraCIScopeWrapper::getModifiableContextSubscriptionResults | ( | const std::string & | objID | ) |
Definition at line 3680 of file TraCIAPI.cpp.
libsumo::SubscriptionResults & TraCIAPI::TraCIScopeWrapper::getModifiableSubscriptionResults | ( | ) |
Definition at line 3674 of file TraCIAPI.cpp.
std::string TraCIAPI::TraCIScopeWrapper::getParameter | ( | const std::string & | objectID, |
const std::string & | key | ||
) | const |
retrieve generic paramter
Definition at line 3590 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().
Referenced by TraCITestClient::testAPI().
const libsumo::TraCIResults TraCIAPI::TraCIScopeWrapper::getSubscriptionResults | ( | const std::string & | objID | ) | const |
Definition at line 3641 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
private |
invalidated assignment operator
void TraCIAPI::TraCIScopeWrapper::setParameter | ( | const std::string & | objectID, |
const std::string & | key, | ||
const std::string & | value | ||
) | const |
set generic paramter
Definition at line 3599 of file TraCIAPI.cpp.
References libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::TraCIScopeWrapper::subscribe | ( | const std::string & | objID, |
const std::vector< int > & | vars, | ||
double | beginTime, | ||
double | endTime | ||
) | const |
Definition at line 3613 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
void TraCIAPI::TraCIScopeWrapper::subscribeContext | ( | const std::string & | objID, |
int | domain, | ||
double | range, | ||
const std::vector< int > & | vars, | ||
double | beginTime, | ||
double | endTime | ||
) | const |
Definition at line 3625 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
protected |
Definition at line 146 of file TraCIAPI.h.
|
protected |
Definition at line 147 of file TraCIAPI.h.
|
protected |
Definition at line 149 of file TraCIAPI.h.
|
protected |
Definition at line 151 of file TraCIAPI.h.
|
protected |
The parent TraCI client which offers the connection.
Definition at line 145 of file TraCIAPI.h.
Referenced by TraCIAPI::EdgeScope::getIDList().
|
protected |
Definition at line 148 of file TraCIAPI.h.
|
protected |
Definition at line 150 of file TraCIAPI.h.