![]() |
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) 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 42 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 CMD_GET_PERSON_VARIABLE, libsumo::Person::getEdges(), libsumo::Person::getParameter(), libsumo::Person::getStage(), libsumo::Person::getTypeID(), TraCIServer::getWrapperStorage(), libsumo::Person::handleVariable(), libsumo::VehicleType::handleVariable(), TraCIServer::initWrapper(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_PERSON_VARIABLE, RTYPE_OK, toHex(), TYPE_INTEGER, TYPE_STRING, TYPE_STRINGLIST, VAR_EDGES, VAR_PARAMETER, VAR_STAGE, TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), 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 92 of file TraCIServerAPI_Person.cpp.
References libsumo::Person::add(), ADD, APPEND_STAGE, libsumo::Person::appendDrivingStage(), libsumo::Person::appendWaitingStage(), libsumo::Person::appendWalkingStage(), CMD_GET_PERSON_VARIABLE, CMD_REROUTE_TRAVELTIME, CMD_SET_PERSON_VARIABLE, CMD_SET_VEHICLE_VARIABLE, MSTransportable::DRIVING, MSTransportableControl::get(), MSVehicleType::getID(), MSNet::getInstance(), MSNet::getPersonControl(), MSTransportable::getSingularType(), MOVE_TO_XY, libsumo::Person::moveToXY(), MSTransportable::MOVING_WITHOUT_VEHICLE, tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingByte(), TraCIServer::readTypeCheckingColor(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingString(), TraCIServer::readTypeCheckingStringList(), tcpip::Storage::readUnsignedByte(), REMOVE_STAGE, libsumo::Person::removeStage(), libsumo::Person::rerouteTraveltime(), RTYPE_OK, libsumo::Person::setParameter(), libsumo::Person::setSpeed(), libsumo::Person::setType(), TraCIServerAPI_VehicleType::setVariable(), STEPS2TIME, toHex(), TYPE_COMPOUND, VAR_COLOR, VAR_HEIGHT, VAR_LENGTH, VAR_MINGAP, VAR_PARAMETER, VAR_SPEED, VAR_TYPE, VAR_WIDTH, MSTransportable::WAITING, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().