SUMO - Simulation of Urban MObility
|
APIs for getting/setting edge values via TraCI. More...
#include <TraCIServerAPI_Edge.h>
Static Public Member Functions | |
static bool | processGet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xaa: Get Edge Variable) | |
static bool | processSet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xca: Change Edge State) | |
Private Member Functions | |
TraCIServerAPI_Edge & | operator= (const TraCIServerAPI_Edge &s) |
invalidated assignment operator | |
TraCIServerAPI_Edge (const TraCIServerAPI_Edge &s) | |
invalidated copy constructor |
APIs for getting/setting edge values via TraCI.
Definition at line 47 of file TraCIServerAPI_Edge.h.
TraCIServerAPI_Edge::TraCIServerAPI_Edge | ( | const TraCIServerAPI_Edge & | s | ) | [private] |
invalidated copy constructor
TraCIServerAPI_Edge& TraCIServerAPI_Edge::operator= | ( | const TraCIServerAPI_Edge & | s | ) | [private] |
invalidated assignment operator
bool TraCIServerAPI_Edge::processGet | ( | traci::TraCIServer & | server, |
tcpip::Storage & | inputStorage, | ||
tcpip::Storage & | outputStorage | ||
) | [static] |
Processes a get value command (Command 0xaa: Get Edge 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 62 of file TraCIServerAPI_Edge.cpp.
References CMD_GET_EDGE_VARIABLE, MSEdge::dictionary(), MSEdge::getCurrentTravelTime(), MSNet::getInstance(), MSEdge::getLanes(), ID_COUNT, ID_LIST, MSEdge::insertIDs(), LAST_STEP_LENGTH, LAST_STEP_MEAN_SPEED, LAST_STEP_OCCUPANCY, LAST_STEP_VEHICLE_HALTING_NUMBER, LAST_STEP_VEHICLE_ID_LIST, LAST_STEP_VEHICLE_NUMBER, tcpip::Storage::readInt(), tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_EDGE_VARIABLE, RTYPE_ERR, RTYPE_OK, HelpersHarmonoise::sum(), SUMOReal, TYPE_DOUBLE, TYPE_INTEGER, TYPE_STRINGLIST, VAR_CO2EMISSION, VAR_COEMISSION, VAR_CURRENT_TRAVELTIME, VAR_EDGE_EFFORT, VAR_EDGE_TRAVELTIME, VAR_FUELCONSUMPTION, VAR_HCEMISSION, VAR_NOISEEMISSION, VAR_NOXEMISSION, VAR_PMXEMISSION, 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().
bool TraCIServerAPI_Edge::processSet | ( | traci::TraCIServer & | server, |
tcpip::Storage & | inputStorage, | ||
tcpip::Storage & | outputStorage | ||
) | [static] |
Processes a set value command (Command 0xca: Change Edge 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 303 of file TraCIServerAPI_Edge.cpp.
References MSEdgeWeightsStorage::addEffort(), MSEdgeWeightsStorage::addTravelTime(), CMD_GET_EDGE_VARIABLE, CMD_SET_EDGE_VARIABLE, CMD_SET_VEHICLE_VARIABLE, MSEdge::dictionary(), MSNet::getInstance(), MSEdge::getLanes(), MSNet::getWeightsStorage(), LANE_ALLOWED, LANE_DISALLOWED, parseVehicleClasses(), tcpip::Storage::readDouble(), tcpip::Storage::readInt(), tcpip::Storage::readString(), tcpip::Storage::readStringList(), tcpip::Storage::readUnsignedByte(), MSEdge::rebuildAllowedLanes(), RTYPE_ERR, RTYPE_OK, SUMOReal, SUMOTime_MAX, TYPE_COMPOUND, TYPE_DOUBLE, TYPE_INTEGER, TYPE_STRINGLIST, VAR_EDGE_EFFORT, VAR_EDGE_TRAVELTIME, VAR_MAXSPEED, and traci::TraCIServer::writeStatusCmd().
Referenced by traci::TraCIServer::TraCIServer().