![]() |
SUMO - Simulation of Urban MObility
|
APIs for getting/setting lane values via TraCI. More...
#include <TraCIServerAPI_Lane.h>
Static Public Member Functions | |
static bool | getShape (const std::string &id, PositionVector &shape) |
Returns the named lane's shape. More... | |
static bool | processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a get value command (Command 0xa3: Get Lane Variable) More... | |
static bool | processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage) |
Processes a set value command (Command 0xc3: Change Lane State) More... | |
Private Member Functions | |
TraCIServerAPI_Lane & | operator= (const TraCIServerAPI_Lane &s) |
invalidated assignment operator More... | |
TraCIServerAPI_Lane (const TraCIServerAPI_Lane &s) | |
invalidated copy constructor More... | |
APIs for getting/setting lane values via TraCI.
Definition at line 52 of file TraCIServerAPI_Lane.h.
|
private |
invalidated copy constructor
|
static |
Returns the named lane's shape.
[in] | id | The id of the searched lane |
[out] | shape | The shape, if the lane is known |
Definition at line 353 of file TraCIServerAPI_Lane.cpp.
References MSLane::dictionary(), and MSLane::getShape().
Referenced by TraCIServer::findObjectShape().
|
private |
invalidated assignment operator
|
static |
Processes a get value command (Command 0xa3: Get Lane 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 53 of file TraCIServerAPI_Lane.cpp.
References CMD_GET_LANE_VARIABLE, libsumo::Lane::getAllowed(), libsumo::Lane::getCO2Emission(), libsumo::Lane::getCOEmission(), libsumo::Lane::getDisallowed(), libsumo::Lane::getEdgeID(), libsumo::Lane::getElectricityConsumption(), libsumo::Lane::getFoes(), libsumo::Lane::getFuelConsumption(), libsumo::Lane::getHCEmission(), libsumo::Lane::getIDCount(), libsumo::Lane::getIDList(), libsumo::Lane::getInternalFoes(), libsumo::Lane::getLastStepHaltingNumber(), libsumo::Lane::getLastStepLength(), libsumo::Lane::getLastStepMeanSpeed(), libsumo::Lane::getLastStepOccupancy(), libsumo::Lane::getLastStepVehicleIDs(), libsumo::Lane::getLastStepVehicleNumber(), libsumo::Lane::getLength(), libsumo::Lane::getLinkNumber(), libsumo::Lane::getLinks(), libsumo::Lane::getMaxSpeed(), libsumo::Lane::getNoiseEmission(), libsumo::Lane::getNOxEmission(), libsumo::Lane::getParameter(), libsumo::Lane::getPMxEmission(), libsumo::Lane::getShape(), libsumo::Lane::getTraveltime(), libsumo::Lane::getWaitingTime(), libsumo::Lane::getWidth(), ID_COUNT, ID_LIST, LANE_ALLOWED, LANE_DISALLOWED, LANE_EDGE_ID, LANE_LINK_NUMBER, LANE_LINKS, LAST_STEP_LENGTH, LAST_STEP_MEAN_SPEED, LAST_STEP_OCCUPANCY, LAST_STEP_VEHICLE_HALTING_NUMBER, LAST_STEP_VEHICLE_ID_LIST, LAST_STEP_VEHICLE_NUMBER, MIN2(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_LANE_VARIABLE, RTYPE_OK, toHex(), TYPE_COMPOUND, TYPE_DOUBLE, TYPE_INTEGER, TYPE_POLYGON, TYPE_STRING, TYPE_STRINGLIST, TYPE_UBYTE, VAR_CO2EMISSION, VAR_COEMISSION, VAR_CURRENT_TRAVELTIME, VAR_ELECTRICITYCONSUMPTION, VAR_FOES, VAR_FUELCONSUMPTION, VAR_HCEMISSION, VAR_LENGTH, VAR_MAXSPEED, VAR_NOISEEMISSION, VAR_NOXEMISSION, VAR_PARAMETER, VAR_PMXEMISSION, VAR_SHAPE, VAR_WAITING_TIME, VAR_WIDTH, tcpip::Storage::writeDouble(), TraCIServer::writeErrorStatusCmd(), tcpip::Storage::writeInt(), TraCIServer::writeResponseWithLength(), TraCIServer::writeStatusCmd(), tcpip::Storage::writeStorage(), tcpip::Storage::writeString(), tcpip::Storage::writeStringList(), and tcpip::Storage::writeUnsignedByte().
Referenced by TraCIServer::TraCIServer().
|
static |
Processes a set value command (Command 0xc3: Change Lane 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 278 of file TraCIServerAPI_Lane.cpp.
References CMD_SET_LANE_VARIABLE, MSLane::dictionary(), LANE_ALLOWED, LANE_DISALLOWED, tcpip::Storage::readInt(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingDouble(), TraCIServer::readTypeCheckingString(), TraCIServer::readTypeCheckingStringList(), tcpip::Storage::readUnsignedByte(), RTYPE_OK, libsumo::Lane::setAllowed(), libsumo::Lane::setDisallowed(), libsumo::Lane::setLength(), libsumo::Lane::setMaxSpeed(), libsumo::Lane::setParameter(), toHex(), TYPE_COMPOUND, VAR_LENGTH, VAR_MAXSPEED, VAR_PARAMETER, TraCIServer::writeErrorStatusCmd(), and TraCIServer::writeStatusCmd().
Referenced by TraCIServer::TraCIServer().