![]() |
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 (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xaa: Get Edge Variable) More... | |
static bool | processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xca: Change Edge State) More... | |
Private Member Functions | |
TraCIServerAPI_Edge & | operator= (const TraCIServerAPI_Edge &s) |
invalidated assignment operator More... | |
TraCIServerAPI_Edge (const TraCIServerAPI_Edge &s) | |
invalidated copy constructor More... | |
APIs for getting/setting edge values via TraCI.
Definition at line 37 of file TraCIServerAPI_Edge.h.
|
private |
invalidated copy constructor
|
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 48 of file TraCIServerAPI_Edge.cpp.
References CMD_GET_EDGE_VARIABLE, libsumo::Edge::getAdaptedTraveltime(), libsumo::Edge::getEffort(), libsumo::Edge::getParameter(), TraCIServer::getWrapperStorage(), libsumo::Edge::handleVariable(), TraCIServer::initWrapper(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_EDGE_VARIABLE, RTYPE_OK, toHex(), TYPE_DOUBLE, TYPE_STRING, VAR_EDGE_EFFORT, VAR_EDGE_TRAVELTIME, VAR_PARAMETER, tcpip::Storage::writeDouble(), TraCIServer::writeErrorStatusCmd(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeString(), 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 103 of file TraCIServerAPI_Edge.cpp.
References libsumo::Edge::adaptTraveltime(), CMD_SET_EDGE_VARIABLE, LANE_ALLOWED, LANE_DISALLOWED, tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingString(), TraCIServer::readTypeCheckingStringList(), tcpip::Storage::readUnsignedByte(), RTYPE_OK, libsumo::Edge::setAllowedVehicleClasses(), libsumo::Edge::setDisallowedVehicleClasses(), libsumo::Edge::setEffort(), libsumo::Edge::setMaxSpeed(), libsumo::Edge::setParameter(), toHex(), TYPE_COMPOUND, VAR_EDGE_EFFORT, VAR_EDGE_TRAVELTIME, VAR_MAXSPEED, VAR_PARAMETER, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().