Eclipse SUMO - Simulation of Urban MObility
TraCIServerAPI_Polygon Class Reference

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_Polygonoperator= (const TraCIServerAPI_Polygon &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_Polygon (const TraCIServerAPI_Polygon &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting polygon values via TraCI.

Definition at line 35 of file TraCIServerAPI_Polygon.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_Polygon()

TraCIServerAPI_Polygon::TraCIServerAPI_Polygon ( const TraCIServerAPI_Polygon s)
private

invalidated copy constructor

Member Function Documentation

◆ operator=()

TraCIServerAPI_Polygon& TraCIServerAPI_Polygon::operator= ( const TraCIServerAPI_Polygon s)
private

invalidated assignment operator

◆ processGet()

bool TraCIServerAPI_Polygon::processGet ( TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

Processes a get value command (Command 0xa8: Get Polygon Variable)

Parameters
[in]serverThe TraCI-server-instance which schedules this request
[in]inputStorageThe storage to read the command from
[out]outputStorageThe storage to write the result to

length

Definition at line 40 of file TraCIServerAPI_Polygon.cpp.

References libsumo::CMD_GET_POLYGON_VARIABLE, libsumo::Polygon::getShape(), TraCIServer::getWrapperStorage(), libsumo::Polygon::handleVariable(), TraCIServer::initWrapper(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_POLYGON_VARIABLE, libsumo::RTYPE_OK, toHex(), libsumo::TYPE_COMPOUND, libsumo::TYPE_STRING, libsumo::VAR_PARAMETER, libsumo::VAR_PARAMETER_WITH_KEY, libsumo::VAR_SHAPE, TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writePositionVector(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), and tcpip::Storage::writeUnsignedByte().

Referenced by TraCIServer::TraCIServer().

Here is the caller graph for this function:

◆ processSet()

bool TraCIServerAPI_Polygon::processSet ( TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

Processes a set value command (Command 0xc8: Change Polygon State)

Parameters
[in]serverThe TraCI-server-instance which schedules this request
[in]inputStorageThe storage to read the command from
[out]outputStorageThe storage to write the result to

Definition at line 86 of file TraCIServerAPI_Polygon.cpp.

References libsumo::Polygon::add(), libsumo::ADD, libsumo::Polygon::addDynamics(), libsumo::CMD_SET_POLYGON_VARIABLE, libsumo::CMD_SET_VEHICLE_VARIABLE, libsumo::Helper::makeTraCIPositionVector(), tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingColor(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingDoubleList(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingPolygon(), TraCIServer::readTypeCheckingString(), TraCIServer::readTypeCheckingUnsignedByte(), tcpip::Storage::readUnsignedByte(), libsumo::Polygon::remove(), libsumo::REMOVE, libsumo::RTYPE_OK, libsumo::Polygon::setColor(), libsumo::Polygon::setFilled(), libsumo::Polygon::setLineWidth(), libsumo::Polygon::setShape(), libsumo::Polygon::setType(), toHex(), libsumo::TYPE_COMPOUND, libsumo::VAR_ADD_DYNAMICS, libsumo::VAR_COLOR, libsumo::VAR_FILL, libsumo::VAR_MOVE_TO, libsumo::VAR_PARAMETER, libsumo::VAR_SHAPE, libsumo::VAR_TYPE, libsumo::VAR_WIDTH, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().

Referenced by TraCIServer::TraCIServer().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: