![]() |
SUMO - Simulation of Urban MObility
|
APIs for getting/setting junction values via TraCI. More...
#include <TraCIServerAPI_Junction.h>
Static Public Member Functions | |
static bool | getPosition (const std::string &id, Position &p) |
Returns the named junction's position. More... | |
static bool | processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xa9: Get Junction Variable) More... | |
Private Member Functions | |
TraCIServerAPI_Junction & | operator= (const TraCIServerAPI_Junction &s) |
invalidated assignment operator More... | |
TraCIServerAPI_Junction (const TraCIServerAPI_Junction &s) | |
invalidated copy constructor More... | |
APIs for getting/setting junction values via TraCI.
Definition at line 53 of file TraCIServerAPI_Junction.h.
|
private |
invalidated copy constructor
|
static |
Returns the named junction's position.
[in] | id | The id of the searched junction |
[out] | p | The position, if the junction is known |
Definition at line 103 of file TraCIServerAPI_Junction.cpp.
References libsumo::Junction::getJunction(), and MSJunction::getPosition().
Referenced by TraCIServer::findObjectShape().
|
private |
invalidated assignment operator
|
static |
Processes a get value command (Command 0xa9: Get Junction Variable)
[in] | server | The TraCI-server-instance which schedules this request |
[in] | inputStorage | The storage to read the command from |
[out] | outputStorage | The storage to write the result to |
Definition at line 46 of file TraCIServerAPI_Junction.cpp.
References CMD_GET_JUNCTION_VARIABLE, libsumo::Junction::getIDCount(), libsumo::Junction::getIDList(), libsumo::Junction::getPosition(), libsumo::Junction::getShape(), ID_COUNT, ID_LIST, MIN2(), POSITION_2D, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_JUNCTION_VARIABLE, RTYPE_OK, toHex(), TYPE_INTEGER, TYPE_POLYGON, TYPE_STRINGLIST, VAR_POSITION, VAR_SHAPE, tcpip::Storage::writeDouble(), TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), tcpip::Storage::writeUnsignedByte(), libsumo::TraCIPosition::x, and libsumo::TraCIPosition::y.
Referenced by TraCIServer::TraCIServer().