![]() |
SUMO - Simulation of Urban MObility
|
APIs for getting/setting polygon values via TraCI. More...
#include <TraCIServerAPI_Polygon.h>
Static Public Member Functions | |
static bool | processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xa8: Get Polygon Variable) More... | |
static bool | processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xc8: Change Polygon State) More... | |
Private Member Functions | |
TraCIServerAPI_Polygon & | operator= (const TraCIServerAPI_Polygon &s) |
invalidated assignment operator More... | |
TraCIServerAPI_Polygon (const TraCIServerAPI_Polygon &s) | |
invalidated copy constructor More... | |
APIs for getting/setting polygon values via TraCI.
Definition at line 38 of file TraCIServerAPI_Polygon.h.
|
private |
invalidated copy constructor
|
private |
invalidated assignment operator
|
static |
Processes a get value command (Command 0xa8: Get Polygon 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 41 of file TraCIServerAPI_Polygon.cpp.
References CMD_GET_POLYGON_VARIABLE, libsumo::Polygon::getParameter(), libsumo::Polygon::getShape(), TraCIServer::getWrapperStorage(), libsumo::Polygon::handleVariable(), TraCIServer::initWrapper(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_POLYGON_VARIABLE, RTYPE_OK, toHex(), TYPE_STRING, VAR_PARAMETER, VAR_SHAPE, TraCIServer::writeErrorStatusCmd(), TraCIServer::writePositionVector(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServer::TraCIServer().
|
static |
Processes a set value command (Command 0xc8: Change Polygon 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 74 of file TraCIServerAPI_Polygon.cpp.
References libsumo::Polygon::add(), ADD, CMD_SET_POLYGON_VARIABLE, CMD_SET_VEHICLE_VARIABLE, libsumo::Helper::makeTraCIPositionVector(), tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingColor(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingPolygon(), TraCIServer::readTypeCheckingString(), TraCIServer::readTypeCheckingUnsignedByte(), tcpip::Storage::readUnsignedByte(), libsumo::Polygon::remove(), REMOVE, RTYPE_OK, libsumo::Polygon::setColor(), libsumo::Polygon::setFilled(), libsumo::Polygon::setLineWidth(), libsumo::Polygon::setParameter(), libsumo::Polygon::setShape(), libsumo::Polygon::setType(), toHex(), TYPE_COMPOUND, VAR_COLOR, VAR_FILL, VAR_PARAMETER, VAR_SHAPE, VAR_TYPE, VAR_WIDTH, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().