SUMO - Simulation of Urban MObility
|
APIs for getting/setting edge values via TraCI. More...
#include <TraCIServerAPI_Edge.h>
Static Public Member Functions | |
static bool | getShape (const std::string &id, PositionVector &shape) |
Returns the named edge's shape. | |
static bool | processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xaa: Get Edge Variable) | |
static bool | processSet (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.
|
private |
invalidated copy constructor
|
static |
Returns the named edge's shape.
[in] | id | The id of the searched edge |
[out] | shape | The shape, if the edge is known |
Definition at line 433 of file TraCIServerAPI_Edge.cpp.
References MSEdge::dictionary(), MSEdge::getLanes(), and PositionVector::push_back().
Referenced by TraCIServer::findObjectShape().
|
private |
invalidated assignment operator
|
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 58 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::readString(), TraCIServer::readTypeCheckingInt(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_EDGE_VARIABLE, RTYPE_OK, HelpersHarmonoise::sum(), SUMO_const_haltingSpeed, 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, VAR_WAITING_TIME, tcpip::Storage::writeDouble(), 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 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 304 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::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingStringList(), tcpip::Storage::readUnsignedByte(), MSEdge::rebuildAllowedLanes(), RTYPE_OK, SUMOTime_MAX, TYPE_COMPOUND, VAR_EDGE_EFFORT, VAR_EDGE_TRAVELTIME, VAR_MAXSPEED, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().