Eclipse SUMO - Simulation of Urban MObility
|
Scope for interaction with the gui. More...
#include <TraCIAPI.h>
Public Member Functions | |
void | clearSubscriptionResults () |
const libsumo::ContextSubscriptionResults | getAllContextSubscriptionResults () const |
const libsumo::SubscriptionResults | getAllSubscriptionResults () const |
libsumo::TraCIPositionVector | getBoundary (const std::string &viewID=DEFAULT_VIEW) const |
const libsumo::SubscriptionResults | getContextSubscriptionResults (const std::string &objID) const |
int | getIDCount () const |
std::vector< std::string > | getIDList () const |
libsumo::SubscriptionResults & | getModifiableContextSubscriptionResults (const std::string &objID) |
libsumo::SubscriptionResults & | getModifiableSubscriptionResults () |
libsumo::TraCIPosition | getOffset (const std::string &viewID=DEFAULT_VIEW) const |
std::string | getParameter (const std::string &objectID, const std::string &key) const |
retrieve generic parameter More... | |
std::pair< std::string, std::string > | getParameterWithKey (const std::string &objectID, const std::string &key) const |
retrieve generic parameter and return (key, value) tuple More... | |
std::string | getSchema (const std::string &viewID=DEFAULT_VIEW) const |
const libsumo::TraCIResults | getSubscriptionResults (const std::string &objID) const |
double | getZoom (const std::string &viewID=DEFAULT_VIEW) const |
GUIScope (TraCIAPI &parent) | |
void | screenshot (const std::string &viewID, const std::string &filename, const int width=-1, const int height=-1) const |
void | setBoundary (const std::string &viewID, double xmin, double ymin, double xmax, double ymax) const |
void | setOffset (const std::string &viewID, double x, double y) const |
void | setParameter (const std::string &objectID, const std::string &key, const std::string &value) const |
set generic paramter More... | |
void | setSchema (const std::string &viewID, const std::string &schemeName) const |
void | setZoom (const std::string &viewID, double zoom) 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 |
void | trackVehicle (const std::string &viewID, const std::string &vehID) const |
virtual | ~GUIScope () |
Protected Member Functions | |
int | getByte (int var, const std::string &id, tcpip::Storage *add=0) const |
libsumo::TraCIColor | getCol (int var, const std::string &id, tcpip::Storage *add=0) const |
double | getDouble (int var, const std::string &id, tcpip::Storage *add=0) const |
std::vector< double > | getDoubleVector (int var, const std::string &id, tcpip::Storage *add=0) const |
int | getInt (int var, const std::string &id, tcpip::Storage *add=0) const |
libsumo::TraCIPositionVector | getPolygon (int var, const std::string &id, tcpip::Storage *add=0) const |
libsumo::TraCIPosition | getPos (int var, const std::string &id, tcpip::Storage *add=0) const |
libsumo::TraCIPosition | getPos3D (int var, const std::string &id, tcpip::Storage *add=0) const |
std::string | getString (int var, const std::string &id, tcpip::Storage *add=0) const |
std::vector< std::string > | getStringVector (int var, const std::string &id, tcpip::Storage *add=0) const |
libsumo::TraCIStage | getTraCIStage (int var, const std::string &id, tcpip::Storage *add=0) const |
int | getUnsignedByte (int var, const std::string &id, tcpip::Storage *add=0) const |
void | setDouble (int var, const std::string &id, double value) const |
void | setInt (int var, const std::string &id, int value) const |
void | setString (int var, const std::string &id, const std::string &value) const |
void | setStringVector (int var, const std::string &id, const std::vector< std::string > &value) const |
Protected Attributes | |
TraCIAPI & | myParent |
The parent TraCI client which offers the connection. More... | |
Private Attributes | |
int | myCmdGetID |
int | myCmdSetID |
int | myContextSubscribeID |
libsumo::ContextSubscriptionResults | myContextSubscriptionResults |
int | mySubscribeID |
libsumo::SubscriptionResults | mySubscriptionResults |
Scope for interaction with the gui.
Definition at line 205 of file TraCIAPI.h.
|
inline |
Definition at line 207 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 208 of file TraCIAPI.h.
|
inherited |
Definition at line 3894 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3878 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3862 of file TraCIAPI.cpp.
libsumo::TraCIPositionVector TraCIAPI::GUIScope::getBoundary | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 665 of file TraCIAPI.cpp.
References libsumo::VAR_VIEW_BOUNDARY.
|
protectedinherited |
Definition at line 3564 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_BYTE.
|
protectedinherited |
Definition at line 3680 of file TraCIAPI.cpp.
References libsumo::TraCIColor::a, libsumo::TraCIColor::b, libsumo::TraCIColor::g, libsumo::TraCIColor::r, and libsumo::TYPE_COLOR.
|
inherited |
Definition at line 3884 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3585 of file TraCIAPI.cpp.
References libsumo::INVALID_DOUBLE_VALUE, and libsumo::TYPE_DOUBLE.
Referenced by TraCIAPI::EdgeScope::getAdaptedTraveltime().
|
protectedinherited |
Definition at line 3666 of file TraCIAPI.cpp.
References libsumo::TYPE_DOUBLELIST.
|
inherited |
Definition at line 3749 of file TraCIAPI.cpp.
References libsumo::ID_COUNT.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3743 of file TraCIAPI.cpp.
References libsumo::TRACI_ID_LIST.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3575 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_INTEGER.
|
inherited |
Definition at line 3907 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3901 of file TraCIAPI.cpp.
libsumo::TraCIPosition TraCIAPI::GUIScope::getOffset | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 655 of file TraCIAPI.cpp.
References libsumo::VAR_VIEW_OFFSET.
|
inherited |
retrieve generic parameter
Definition at line 3755 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().
Referenced by TraCITestClient::testAPI().
|
inherited |
retrieve generic parameter and return (key, value) tuple
Definition at line 3764 of file TraCIAPI.cpp.
References libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER_WITH_KEY, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3595 of file TraCIAPI.cpp.
References libsumo::TYPE_POLYGON, libsumo::TraCIPositionVector::value, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
|
protectedinherited |
Definition at line 3616 of file TraCIAPI.cpp.
References libsumo::POSITION_2D, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
|
protectedinherited |
Definition at line 3629 of file TraCIAPI.cpp.
References libsumo::POSITION_3D, libsumo::TraCIPosition::x, libsumo::TraCIPosition::y, and libsumo::TraCIPosition::z.
std::string TraCIAPI::GUIScope::getSchema | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 660 of file TraCIAPI.cpp.
References libsumo::VAR_VIEW_SCHEMA.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3642 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING.
|
protectedinherited |
Definition at line 3652 of file TraCIAPI.cpp.
References libsumo::TYPE_STRINGLIST.
|
inherited |
Definition at line 3868 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3694 of file TraCIAPI.cpp.
References libsumo::TraCIStage::arrivalPos, libsumo::TraCIStage::cost, libsumo::TraCIStage::depart, libsumo::TraCIStage::departPos, libsumo::TraCIStage::description, libsumo::TraCIStage::destStop, libsumo::TraCIStage::edges, libsumo::TraCIStage::intended, libsumo::TraCIStage::length, libsumo::TraCIStage::line, libsumo::TraCIStage::travelTime, libsumo::TraCIStage::type, libsumo::TYPE_COMPOUND, and libsumo::TraCIStage::vType.
|
protectedinherited |
Definition at line 3554 of file TraCIAPI.cpp.
References libsumo::INVALID_INT_VALUE, and libsumo::TYPE_UBYTE.
double TraCIAPI::GUIScope::getZoom | ( | const std::string & | viewID = DEFAULT_VIEW | ) | const |
Definition at line 650 of file TraCIAPI.cpp.
References libsumo::VAR_VIEW_ZOOM.
Referenced by TraCITestClient::testAPI().
void TraCIAPI::GUIScope::screenshot | ( | const std::string & | viewID, |
const std::string & | filename, | ||
const int | width = -1 , |
||
const int | height = -1 |
||
) | const |
Definition at line 704 of file TraCIAPI.cpp.
References libsumo::CMD_SET_GUI_VARIABLE, libsumo::TYPE_COMPOUND, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, libsumo::VAR_SCREENSHOT, tcpip::Storage::writeByte(), tcpip::Storage::writeInt(), and tcpip::Storage::writeString().
Referenced by TraCITestClient::testAPI().
void TraCIAPI::GUIScope::setBoundary | ( | const std::string & | viewID, |
double | xmin, | ||
double | ymin, | ||
double | xmax, | ||
double | ymax | ||
) | const |
Definition at line 691 of file TraCIAPI.cpp.
References libsumo::CMD_SET_GUI_VARIABLE, libsumo::TYPE_POLYGON, libsumo::VAR_VIEW_BOUNDARY, tcpip::Storage::writeByte(), tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 3807 of file TraCIAPI.cpp.
References libsumo::TYPE_DOUBLE, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 3797 of file TraCIAPI.cpp.
References libsumo::TYPE_INTEGER, tcpip::Storage::writeInt(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::GUIScope::setOffset | ( | const std::string & | viewID, |
double | x, | ||
double | y | ||
) | const |
Definition at line 676 of file TraCIAPI.cpp.
References libsumo::CMD_SET_GUI_VARIABLE, libsumo::POSITION_2D, libsumo::VAR_VIEW_OFFSET, tcpip::Storage::writeDouble(), and tcpip::Storage::writeUnsignedByte().
|
inherited |
set generic paramter
Definition at line 3783 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::GUIScope::setSchema | ( | const std::string & | viewID, |
const std::string & | schemeName | ||
) | const |
Definition at line 686 of file TraCIAPI.cpp.
References libsumo::VAR_VIEW_SCHEMA.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 3817 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING, tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
|
protectedinherited |
Definition at line 3827 of file TraCIAPI.cpp.
References libsumo::TYPE_STRINGLIST, tcpip::Storage::writeInt(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
void TraCIAPI::GUIScope::setZoom | ( | const std::string & | viewID, |
double | zoom | ||
) | const |
Definition at line 671 of file TraCIAPI.cpp.
References libsumo::VAR_VIEW_ZOOM.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3840 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3852 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
void TraCIAPI::GUIScope::trackVehicle | ( | const std::string & | viewID, |
const std::string & | vehID | ||
) | const |
Definition at line 719 of file TraCIAPI.cpp.
References libsumo::VAR_VIEW_SCHEMA.
|
privateinherited |
Definition at line 154 of file TraCIAPI.h.
|
privateinherited |
Definition at line 155 of file TraCIAPI.h.
|
privateinherited |
Definition at line 157 of file TraCIAPI.h.
|
privateinherited |
Definition at line 159 of file TraCIAPI.h.
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 151 of file TraCIAPI.h.
|
privateinherited |
Definition at line 156 of file TraCIAPI.h.
|
privateinherited |
Definition at line 158 of file TraCIAPI.h.