Eclipse SUMO - Simulation of Urban MObility
|
APIs for getting/setting person values via TraCI. More...
#include <TraCIServerAPI_Person.h>
Static Public Member Functions | |
static bool | processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xae: Get Person Variable) | |
static bool | processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xce: Change Person State) | |
Private Member Functions | |
TraCIServerAPI_Person & | operator= (const TraCIServerAPI_Person &s) |
invalidated assignment operator | |
TraCIServerAPI_Person (const TraCIServerAPI_Person &s) | |
invalidated copy constructor | |
APIs for getting/setting person values via TraCI.
Definition at line 39 of file TraCIServerAPI_Person.h.
|
private |
invalidated copy constructor
|
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 42 of file TraCIServerAPI_Person.cpp.
References libsumo::CMD_GET_PERSON_VARIABLE, TraCIServer::getWrapperStorage(), TraCIServer::initWrapper(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingStringList(), tcpip::Storage::readUnsignedByte(), libsumo::RESPONSE_GET_PERSON_VARIABLE, libsumo::RTYPE_OK, libsumo::SPLIT_TAXI_RESERVATIONS, toHex(), libsumo::TYPE_COMPOUND, libsumo::TYPE_DOUBLE, libsumo::TYPE_INTEGER, libsumo::TYPE_STRING, libsumo::TYPE_STRINGLIST, libsumo::VAR_EDGES, libsumo::VAR_STAGE, libsumo::VAR_TAXI_RESERVATIONS, tcpip::Storage::writeDouble(), TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), libsumo::StorageHelper::writeStage(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
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 126 of file TraCIServerAPI_Person.cpp.
References libsumo::ADD, libsumo::APPEND_STAGE, libsumo::CMD_REROUTE_TRAVELTIME, libsumo::CMD_SET_PERSON_VARIABLE, libsumo::CMD_SET_VEHICLE_VARIABLE, MSTransportableControl::get(), MSVehicleType::getID(), MSNet::getInstance(), MSNet::getPersonControl(), MSTransportable::getSingularType(), libsumo::MOVE_TO_XY, tcpip::Storage::readInt(), libsumo::StorageHelper::readStage(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingByte(), TraCIServer::readTypeCheckingColor(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingString(), TraCIServer::readTypeCheckingStringList(), tcpip::Storage::readUnsignedByte(), libsumo::REMOVE, libsumo::REMOVE_STAGE, libsumo::REPLACE_STAGE, libsumo::RTYPE_OK, TraCIServerAPI_VehicleType::setVariable(), libsumo::STAGE_DRIVING, libsumo::STAGE_WAITING, libsumo::STAGE_WALKING, toHex(), libsumo::TYPE_COMPOUND, libsumo::VAR_COLOR, libsumo::VAR_HEIGHT, libsumo::VAR_LENGTH, libsumo::VAR_MINGAP, libsumo::VAR_MOVE_TO, libsumo::VAR_PARAMETER, libsumo::VAR_SPEED, libsumo::VAR_SPEED_FACTOR, libsumo::VAR_TYPE, libsumo::VAR_WIDTH, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().