![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Scope for interaction with routes. More...
#include <TraCIAPI.h>
Public Member Functions | |
void | add (const std::string &routeID, const std::vector< std::string > &edges) const |
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 > | getEdges (const std::string &routeID) const |
std::vector< std::string > | getIDList () 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 |
RouteScope (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 | ~RouteScope () |
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 | |
RouteScope & | operator= (const RouteScope &src) |
invalidated assignment operator More... | |
RouteScope (const RouteScope &src) | |
invalidated copy constructor More... | |
Scope for interaction with routes.
Definition at line 482 of file TraCIAPI.h.
|
inline |
Definition at line 484 of file TraCIAPI.h.
|
inlinevirtual |
Definition at line 485 of file TraCIAPI.h.
|
private |
invalidated copy constructor
void TraCIAPI::RouteScope::add | ( | const std::string & | routeID, |
const std::vector< std::string > & | edges | ||
) | const |
Definition at line 1612 of file TraCIAPI.cpp.
References libsumo::ADD, libsumo::CMD_SET_ROUTE_VARIABLE, libsumo::TYPE_STRINGLIST, tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3707 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3691 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3675 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3697 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
std::vector< std::string > TraCIAPI::RouteScope::getEdges | ( | const std::string & | routeID | ) | const |
Definition at line 1606 of file TraCIAPI.cpp.
References libsumo::CMD_GET_ROUTE_VARIABLE, and libsumo::VAR_EDGES.
std::vector< std::string > TraCIAPI::RouteScope::getIDList | ( | ) | const |
Definition at line 1601 of file TraCIAPI.cpp.
References libsumo::CMD_GET_ROUTE_VARIABLE, and libsumo::TRACI_ID_LIST.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3720 of file TraCIAPI.cpp.
|
inherited |
Definition at line 3714 of file TraCIAPI.cpp.
|
inherited |
retrieve generic paramter
Definition at line 3630 of file TraCIAPI.cpp.
References libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, tcpip::Storage::writeByte(), and tcpip::Storage::writeString().
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3681 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
private |
invalidated assignment operator
|
inherited |
set generic paramter
Definition at line 3639 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().
|
inherited |
Definition at line 3653 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
inherited |
Definition at line 3665 of file TraCIAPI.cpp.
Referenced by TraCITestClient::testAPI().
|
protectedinherited |
Definition at line 145 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 146 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 148 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 150 of file TraCIAPI.h.
|
protectedinherited |
The parent TraCI client which offers the connection.
Definition at line 144 of file TraCIAPI.h.
Referenced by TraCIAPI::EdgeScope::getIDList().
|
protectedinherited |
Definition at line 147 of file TraCIAPI.h.
|
protectedinherited |
Definition at line 149 of file TraCIAPI.h.