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 (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xa8: Get Polygon Variable) | |
static bool | processSet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xc8: Change Polygon State) |
Private Member Functions | |
TraCIServerAPI_Polygon & | operator= (const TraCIServerAPI_Polygon &s) |
invalidated assignment operator | |
TraCIServerAPI_Polygon (const TraCIServerAPI_Polygon &s) | |
invalidated copy constructor |
APIs for getting/setting polygon values via TraCI.
Definition at line 48 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 57 of file TraCIServerAPI_Polygon.cpp.
References RGBColor::blue(), CMD_GET_POLYGON_VARIABLE, Polygon::fill(), Polygon::getColor(), MSNet::getInstance(), ShapeContainer::getMaxLayer(), ShapeContainer::getMinLayer(), ShapeContainer::getPolygonCont(), Polygon::getShape(), MSNet::getShapeContainer(), Polygon::getType(), RGBColor::green(), ID_COUNT, ID_LIST, MIN2(), tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), RGBColor::red(), RESPONSE_GET_POLYGON_VARIABLE, RTYPE_ERR, RTYPE_OK, PositionVector::size(), TYPE_COLOR, TYPE_INTEGER, TYPE_POLYGON, TYPE_STRING, TYPE_STRINGLIST, TYPE_UBYTE, VAR_COLOR, VAR_FILL, VAR_SHAPE, VAR_TYPE, tcpip::Storage::writeDouble(), tcpip::Storage::writeInt(), traci::TraCIServer::writeResponseWithLength(), traci::TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by traci::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 134 of file TraCIServerAPI_Polygon.cpp.
References ADD, ShapeContainer::addPolygon(), CMD_SET_POI_VARIABLE, CMD_SET_POLYGON_VARIABLE, MSNet::getInstance(), ShapeContainer::getMaxLayer(), ShapeContainer::getMinLayer(), ShapeContainer::getPolygonCont(), MSNet::getShapeContainer(), PositionVector::push_back(), tcpip::Storage::readDouble(), tcpip::Storage::readInt(), tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), REMOVE, ShapeContainer::removePolygon(), ShapeContainer::reshapePolygon(), RTYPE_ERR, RTYPE_OK, Polygon::setColor(), Polygon::setFill(), Polygon::setType(), SUMOReal, TYPE_COLOR, TYPE_COMPOUND, TYPE_INTEGER, TYPE_POLYGON, TYPE_STRING, TYPE_UBYTE, VAR_COLOR, VAR_FILL, VAR_SHAPE, VAR_TYPE, and traci::TraCIServer::writeStatusCmd().
Referenced by traci::TraCIServer::TraCIServer().