![]() |
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 NamedRTree * | getTree () |
Returns a tree filled with junction instances. 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 48 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 110 of file TraCIServerAPI_Junction.cpp.
References NamedObjectCont< T >::get(), MSNet::getInstance(), MSNet::getJunctionControl(), and MSJunction::getPosition().
Referenced by TraCIServer::findObjectShape().
|
static |
Returns a tree filled with junction instances.
Definition at line 121 of file TraCIServerAPI_Junction.cpp.
References MSNet::getInstance(), MSNet::getJunctionControl(), NamedObjectCont< T >::getMyMap(), NamedRTree::Insert(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by TraCIServer::collectObjectsInRange().
|
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 53 of file TraCIServerAPI_Junction.cpp.
References CMD_GET_JUNCTION_VARIABLE, NamedObjectCont< T >::get(), MSNet::getInstance(), MSNet::getJunctionControl(), MSJunction::getPosition(), MSJunction::getShape(), ID_COUNT, ID_LIST, NamedObjectCont< T >::insertIDs(), MIN2(), POSITION_2D, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_JUNCTION_VARIABLE, RTYPE_OK, 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(), Position::x(), and Position::y().
Referenced by TraCIServer::TraCIServer().