![]() |
SUMO - Simulation of Urban MObility
|
APIs for getting/setting person values via TraCI. More...
#include <TraCIServerAPI_Person.h>
Static Public Member Functions | |
static bool | getPosition (const std::string &id, Position &p) |
Returns the named persons's position. More... | |
static bool | processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xae: Get Person Variable) More... | |
static bool | processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xce: Change Person State) More... | |
Private Member Functions | |
TraCIServerAPI_Person & | operator= (const TraCIServerAPI_Person &s) |
invalidated assignment operator More... | |
TraCIServerAPI_Person (const TraCIServerAPI_Person &s) | |
invalidated copy constructor More... | |
APIs for getting/setting person values via TraCI.
Definition at line 51 of file TraCIServerAPI_Person.h.
|
private |
invalidated copy constructor
|
static |
Returns the named persons's position.
[in] | id | The id of the searched person |
[out] | p | The position, if the person is on the network |
Definition at line 212 of file TraCIServerAPI_Person.cpp.
References MSPersonControl::get(), MSNet::getInstance(), MSNet::getPersonControl(), and MSTransportable::getPosition().
Referenced by TraCIServer::findObjectShape().
|
private |
invalidated assignment operator
|
static |
Processes a get value command (Command 0xae: Get Person 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 51 of file TraCIServerAPI_Person.cpp.
References RGBColor::alpha(), RGBColor::blue(), CMD_GET_PERSON_VARIABLE, SUMOVehicleParameter::color, MSPersonControl::get(), MSTransportable::getAngle(), MSTransportable::getEdge(), MSTransportable::getEdgePos(), Named::getID(), MSVehicleType::getID(), MSNet::getInstance(), Parameterised::getParameter(), MSTransportable::getParameter(), MSNet::getPersonControl(), MSTransportable::getPosition(), MSTransportable::getSpeed(), TraCIServerAPI_VehicleType::getVariable(), MSTransportable::getVehicleType(), MSTransportable::getWaitingSeconds(), RGBColor::green(), ID_COUNT, ID_LIST, MSPersonControl::loadedPersonsBegin(), MSPersonControl::loadedPersonsEnd(), GeomHelper::naviDegree(), POSITION_2D, POSITION_3D, tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), RGBColor::red(), RESPONSE_GET_PERSON_VARIABLE, RTYPE_OK, MSPersonControl::size(), TYPE_COLOR, TYPE_DOUBLE, TYPE_INTEGER, TYPE_STRING, TYPE_STRINGLIST, VAR_ANGLE, VAR_COLOR, VAR_LANEPOSITION, VAR_LENGTH, VAR_MINGAP, VAR_NEXT_EDGE, VAR_PARAMETER, VAR_POSITION, VAR_POSITION3D, VAR_ROAD_ID, VAR_SHAPECLASS, VAR_SPEED, VAR_TYPE, VAR_WAITING_TIME, VAR_WIDTH, tcpip::Storage::writeDouble(), TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), tcpip::Storage::writeUnsignedByte(), Position::x(), Position::y(), and Position::z().
Referenced by TraCIServer::TraCIServer().
|
static |
Processes a set value command (Command 0xce: Change Person 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 159 of file TraCIServerAPI_Person.cpp.
References CMD_SET_PERSON_VARIABLE, MSPersonControl::get(), MSNet::getInstance(), MSTransportable::getParameter(), MSNet::getPersonControl(), tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), RTYPE_OK, TYPE_COMPOUND, VAR_PARAMETER, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().