![]() |
SUMO - Simulation of Urban MObility
|
APIs for getting/setting POI values via TraCI. More...
#include <TraCIServerAPI_POI.h>
Static Public Member Functions | |
static bool | getPosition (const std::string &id, Position &p) |
Returns the named PoI's position. More... | |
static bool | processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xa7: Get PoI Variable) More... | |
static bool | processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xc7: Change PoI State) More... | |
Private Member Functions | |
TraCIServerAPI_POI & | operator= (const TraCIServerAPI_POI &s) |
invalidated assignment operator More... | |
TraCIServerAPI_POI (const TraCIServerAPI_POI &s) | |
invalidated copy constructor More... | |
Static Private Member Functions | |
static PointOfInterest * | getPoI (const std::string &id) |
Returns the named PoI. More... | |
APIs for getting/setting POI values via TraCI.
Definition at line 46 of file TraCIServerAPI_POI.h.
|
private |
invalidated copy constructor
|
staticprivate |
Returns the named PoI.
[in] | id | The id of the searched PoI |
Definition at line 246 of file TraCIServerAPI_POI.cpp.
References NamedObjectCont< T >::get(), MSNet::getInstance(), ShapeContainer::getPOIs(), and MSNet::getShapeContainer().
Referenced by getPosition().
|
static |
Returns the named PoI's position.
[in] | id | The id of the searched PoI |
[out] | p | The position, if the PoI is known |
Definition at line 235 of file TraCIServerAPI_POI.cpp.
References getPoI().
Referenced by TraCIServer::findObjectShape().
|
private |
invalidated assignment operator
|
static |
Processes a get value command (Command 0xa7: Get PoI 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 47 of file TraCIServerAPI_POI.cpp.
References CMD_GET_POI_VARIABLE, libsumo::POI::getColor(), libsumo::POI::getIDCount(), libsumo::POI::getIDList(), libsumo::POI::getParameter(), libsumo::POI::getPosition(), libsumo::POI::getType(), ID_COUNT, ID_LIST, POSITION_2D, POSITION_3D, tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_POI_VARIABLE, RTYPE_OK, toHex(), TYPE_COLOR, TYPE_INTEGER, TYPE_STRING, TYPE_STRINGLIST, VAR_COLOR, VAR_PARAMETER, VAR_POSITION, VAR_POSITION3D, VAR_TYPE, tcpip::Storage::writeDouble(), TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServer::TraCIServer().
|
static |
Processes a set value command (Command 0xc7: Change PoI State)
[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 126 of file TraCIServerAPI_POI.cpp.
References libsumo::POI::add(), ADD, CMD_SET_POI_VARIABLE, tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingColor(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingPosition2D(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), libsumo::POI::remove(), REMOVE, RTYPE_OK, libsumo::POI::setColor(), libsumo::POI::setParameter(), libsumo::POI::setPosition(), libsumo::POI::setType(), toHex(), TYPE_COMPOUND, VAR_COLOR, VAR_PARAMETER, VAR_POSITION, VAR_TYPE, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().