![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Scope for interaction with POIs. More...
#include <TraCIAPI.h>
Public Member Functions | |
void | add (const std::string &poiID, double x, double y, const libsumo::TraCIColor &c, const std::string &type, int layer, const std::string &imgFile, double width, double height, double angle) const |
void | clearSubscriptionResults () |
const libsumo::ContextSubscriptionResults | getAllContextSubscriptionResults () const |
const libsumo::SubscriptionResults | getAllSubscriptionResults () const |
double | getAngle (const std::string &poiID) const |
libsumo::TraCIColor | getColor (const std::string &poiID) const |
const libsumo::SubscriptionResults | getContextSubscriptionResults (const std::string &objID) const |
double | getHeight (const std::string &poiID) const |
int | getIDCount () const |
std::vector< std::string > | getIDList () const |
std::string | getImageFile (const std::string &poiID) 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... | |
libsumo::TraCIPosition | getPosition (const std::string &poiID) const |
const libsumo::TraCIResults | getSubscriptionResults (const std::string &objID) const |
std::string | getType (const std::string &poiID) const |
double | getWidth (const std::string &poiID) const |
POIScope (TraCIAPI &parent) | |
void | remove (const std::string &poiID, int layer=0) const |
void | setAngle (const std::string &poiID, double angle) const |
void | setColor (const std::string &poiID, const libsumo::TraCIColor &c) const |
void | setHeight (const std::string &poiID, double height) const |
void | setImageFile (const std::string &poiID, const std::string &imageFile) const |
void | setParameter (const std::string &objectID, const std::string &key, const std::string &value) const |
set generic paramter More... | |
void | setPosition (const std::string &poiID, double x, double y) const |
void | setType (const std::string &poiID, const std::string &setType) const |
void | setWidth (const std::string &poiID, double width) const |
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 | ~POIScope () |
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 | |
POIScope & | operator= (const POIScope &src) |
invalidated assignment operator More... | |
POIScope (const POIScope &src) | |
invalidated copy constructor More... | |
Scope for interaction with POIs.
Definition at line 408 of file TraCIAPI.h.
|
inline |
Definition at line 410 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 411 of file TraCIAPI.h.
|
private |
invalidated copy constructor
void TraCIAPI::POIScope::add | ( | const std::string & | poiID, |
double | x, | ||
double | y, | ||
const libsumo::TraCIColor & | c, | ||
const std::string & | type, | ||
int | layer, | ||
const std::string & | imgFile, | ||
double | width, | ||
double | height, | ||
double | angle | ||
) | const |
Definition at line 1440 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::ADD, libsumo::TraCIColor::b, libsumo::CMD_SET_POI_VARIABLE, libsumo::TraCIColor::g, libsumo::POSITION_2D, libsumo::TraCIColor::r, libsumo::TYPE_COLOR, libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
Definition at line 3667 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3651 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3635 of file TraCIAPI.cpp.
double TraCIAPI::POIScope::getAngle | ( | const std::string & | poiID | ) | const |
Definition at line 1355 of file TraCIAPI.cpp.
References libsumo::CMD_GET_POI_VARIABLE, and libsumo::VAR_ANGLE.
libsumo::TraCIColor TraCIAPI::POIScope::getColor | ( | const std::string & | poiID | ) | const |
Definition at line 1340 of file TraCIAPI.cpp.
References libsumo::CMD_GET_POI_VARIABLE, and libsumo::VAR_COLOR.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3657 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
double TraCIAPI::POIScope::getHeight | ( | const std::string & | poiID | ) | const |
Definition at line 1350 of file TraCIAPI.cpp.
References libsumo::CMD_GET_POI_VARIABLE, and libsumo::VAR_HEIGHT.
int TraCIAPI::POIScope::getIDCount | ( | ) | const |
Definition at line 1325 of file TraCIAPI.cpp.
References libsumo::CMD_GET_POI_VARIABLE, and libsumo::ID_COUNT.
Referenced by TraCITestClient::testAPI().
std::vector< std::string > TraCIAPI::POIScope::getIDList | ( | ) | const |
Definition at line 1320 of file TraCIAPI.cpp.
References libsumo::CMD_GET_POI_VARIABLE, and libsumo::TRACI_ID_LIST.
Referenced by TraCITestClient::testAPI().
std::string TraCIAPI::POIScope::getImageFile | ( | const std::string & | poiID | ) | const |
Definition at line 1360 of file TraCIAPI.cpp.
References libsumo::CMD_GET_POI_VARIABLE, and libsumo::VAR_IMAGEFILE.
|
inherited |
Definition at line 3680 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3674 of file TraCIAPI.cpp.
|
inherited |
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().
libsumo::TraCIPosition TraCIAPI::POIScope::getPosition | ( | const std::string & | poiID | ) | const |
Definition at line 1335 of file TraCIAPI.cpp.
References libsumo::CMD_GET_POI_VARIABLE, and libsumo::VAR_POSITION.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3641 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
std::string TraCIAPI::POIScope::getType | ( | const std::string & | poiID | ) | const |
Definition at line 1330 of file TraCIAPI.cpp.
References libsumo::CMD_GET_POI_VARIABLE, and libsumo::VAR_TYPE.
double TraCIAPI::POIScope::getWidth | ( | const std::string & | poiID | ) | const |
Definition at line 1345 of file TraCIAPI.cpp.
References libsumo::CMD_GET_POI_VARIABLE, and libsumo::VAR_WIDTH.
invalidated assignment operator
void TraCIAPI::POIScope::remove | ( | const std::string & | poiID, |
int | layer = 0 |
||
) | const |
Definition at line 1469 of file TraCIAPI.cpp.
References libsumo::CMD_SET_POI_VARIABLE, libsumo::REMOVE, libsumo::TYPE_INTEGER, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::POIScope::setAngle | ( | const std::string & | poiID, |
double | angle | ||
) | const |
Definition at line 1420 of file TraCIAPI.cpp.
References libsumo::CMD_SET_POI_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_ANGLE, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::POIScope::setColor | ( | const std::string & | poiID, |
const libsumo::TraCIColor & | c | ||
) | const |
Definition at line 1387 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::CMD_SET_POI_VARIABLE, libsumo::TraCIColor::g, libsumo::TraCIColor::r, libsumo::TYPE_COLOR, libsumo::VAR_COLOR, and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::POIScope::setHeight | ( | const std::string & | poiID, |
double | height | ||
) | const |
Definition at line 1410 of file TraCIAPI.cpp.
References libsumo::CMD_SET_POI_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_HEIGHT, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::POIScope::setImageFile | ( | const std::string & | poiID, |
const std::string & | imageFile | ||
) | const |
Definition at line 1430 of file TraCIAPI.cpp.
References libsumo::CMD_SET_POI_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_IMAGEFILE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
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::POIScope::setPosition | ( | const std::string & | poiID, |
double | x, | ||
double | y | ||
) | const |
Definition at line 1376 of file TraCIAPI.cpp.
References libsumo::CMD_SET_POI_VARIABLE, libsumo::POSITION_2D, libsumo::VAR_POSITION, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::POIScope::setType | ( | const std::string & | poiID, |
const std::string & | setType | ||
) | const |
Definition at line 1366 of file TraCIAPI.cpp.
References libsumo::CMD_SET_POI_VARIABLE, libsumo::TYPE_STRING, libsumo::VAR_TYPE, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::POIScope::setWidth | ( | const std::string & | poiID, |
double | width | ||
) | const |
Definition at line 1400 of file TraCIAPI.cpp.
References libsumo::CMD_SET_POI_VARIABLE, libsumo::TYPE_DOUBLE, libsumo::VAR_WIDTH, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
Definition at line 3613 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3625 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
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.
Referenced by TraCIAPI::EdgeScope::getIDList().
|
protectedinherited |
Definition at line 148 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 150 of file TraCIAPI.h.