![]() |
SUMO - Simulation of Urban MObility
|
Scope for interaction with multi entry/-exit detectors. 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 |
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::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 |
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 |
TraCIAPI & | myParent |
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... | |
MeMeScope & | operator= (const MeMeScope &src) |
invalidated assignment operator More... | |
Scope for interaction with multi entry/-exit detectors.
Definition at line 379 of file TraCIAPI.h.
|
inline |
Definition at line 381 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 382 of file TraCIAPI.h.
References TraCIAPI::TraCIScopeWrapper::operator=().
|
private |
invalidated copy constructor
|
inherited |
Definition at line 3313 of file TraCIAPI.cpp.
Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
inherited |
Definition at line 3297 of file TraCIAPI.cpp.
Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
inherited |
Definition at line 3281 of file TraCIAPI.cpp.
Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
inherited |
Definition at line 3303 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
std::vector< std::string > TraCIAPI::MeMeScope::getIDList | ( | ) | const |
Definition at line 1242 of file TraCIAPI.cpp.
References CMD_GET_MULTIENTRYEXIT_VARIABLE, and TRACI_ID_LIST.
int TraCIAPI::MeMeScope::getLastStepHaltingNumber | ( | const std::string & | detID | ) | const |
Definition at line 1262 of file TraCIAPI.cpp.
References CMD_GET_MULTIENTRYEXIT_VARIABLE, and LAST_STEP_VEHICLE_HALTING_NUMBER.
double TraCIAPI::MeMeScope::getLastStepMeanSpeed | ( | const std::string & | detID | ) | const |
Definition at line 1252 of file TraCIAPI.cpp.
References CMD_GET_MULTIENTRYEXIT_VARIABLE, and LAST_STEP_MEAN_SPEED.
std::vector< std::string > TraCIAPI::MeMeScope::getLastStepVehicleIDs | ( | const std::string & | detID | ) | const |
Definition at line 1257 of file TraCIAPI.cpp.
References CMD_GET_MULTIENTRYEXIT_VARIABLE, and LAST_STEP_VEHICLE_ID_LIST.
int TraCIAPI::MeMeScope::getLastStepVehicleNumber | ( | const std::string & | detID | ) | const |
Definition at line 1247 of file TraCIAPI.cpp.
References CMD_GET_MULTIENTRYEXIT_VARIABLE, and LAST_STEP_VEHICLE_NUMBER.
|
inherited |
Definition at line 3326 of file TraCIAPI.cpp.
Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
inherited |
Definition at line 3320 of file TraCIAPI.cpp.
Referenced by TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
inherited |
retrieve generic paramter
Definition at line 3235 of file TraCIAPI.cpp.
References TYPE_STRING, VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
inherited |
Definition at line 3287 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
invalidated assignment operator
|
inherited |
set generic paramter
Definition at line 3244 of file TraCIAPI.cpp.
References TYPE_COMPOUND, TYPE_STRING, VAR_PARAMETER, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
inherited |
Definition at line 3259 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
inherited |
Definition at line 3271 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI(), and TraCIAPI::TraCIScopeWrapper::~TraCIScopeWrapper().
|
protectedinherited |
Definition at line 146 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 147 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 149 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 151 of file TraCIAPI.h.
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 145 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 148 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 150 of file TraCIAPI.h.