SUMO - Simulation of Urban MObility

TraCIServerAPI_Lane Class Reference

APIs for getting/setting lane values via TraCI. More...

#include <TraCIServerAPI_Lane.h>

Static Public Member Functions

static bool processGet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xa3: Get Lane Variable)
static bool processSet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xc3: Change Lane State)

Private Member Functions

TraCIServerAPI_Lane & operator= (const TraCIServerAPI_Lane &s)
 invalidated assignment operator
 TraCIServerAPI_Lane (const TraCIServerAPI_Lane &s)
 invalidated copy constructor

Detailed Description

APIs for getting/setting lane values via TraCI.

Definition at line 46 of file TraCIServerAPI_Lane.h.


Constructor & Destructor Documentation

TraCIServerAPI_Lane::TraCIServerAPI_Lane ( const TraCIServerAPI_Lane &  s) [private]

invalidated copy constructor


Member Function Documentation

TraCIServerAPI_Lane& TraCIServerAPI_Lane::operator= ( const TraCIServerAPI_Lane &  s) [private]

invalidated assignment operator

bool TraCIServerAPI_Lane::processGet ( traci::TraCIServer &  server,
tcpip::Storage &  inputStorage,
tcpip::Storage &  outputStorage 
) [static]

Processes a get value command (Command 0xa3: Get Lane Variable)

Parameters:
[in]serverThe TraCI-server-instance which schedules this request
[in]inputStorageThe storage to read the command from
[out]outputStorageThe storage to write the result to

Definition at line 53 of file TraCIServerAPI_Lane.cpp.

References CMD_GET_LANE_VARIABLE, MSLane::dictionary(), MSLane::getAllowedClasses(), MSNet::getCurrentTimeStep(), MSLane::getEdge(), MSLane::getHarmonoise_NoiseEmissions(), MSLane::getHBEFA_CO2Emissions(), MSLane::getHBEFA_COEmissions(), MSLane::getHBEFA_FuelConsumption(), MSLane::getHBEFA_HCEmissions(), MSLane::getHBEFA_NOxEmissions(), MSLane::getHBEFA_PMxEmissions(), Named::getID(), MSEdge::getID(), MSNet::getInstance(), MSLink::getLane(), MSLink::getLength(), MSLane::getLength(), MSLane::getLinkCont(), MSLane::getMaxSpeed(), MSLane::getMeanSpeed(), MSLane::getNotAllowedClasses(), MSLane::getOccupancy(), MSLane::getShape(), MSLane::getVehicleNumber(), MSLane::getVehiclesSecure(), MSLane::getWidth(), MSLink::hasApproachingFoe(), MSLink::havePriority(), ID_COUNT, ID_LIST, MSLane::insertIDs(), 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(), MSLink::opened(), MSLane::releaseVehicles(), RESPONSE_GET_LANE_VARIABLE, RTYPE_ERR, RTYPE_OK, PositionVector::size(), SUMOReal, toString(), TYPE_COMPOUND, TYPE_DOUBLE, TYPE_INTEGER, TYPE_POLYGON, TYPE_STRING, TYPE_STRINGLIST, TYPE_UBYTE, VAR_CO2EMISSION, VAR_COEMISSION, VAR_CURRENT_TRAVELTIME, VAR_FUELCONSUMPTION, VAR_HCEMISSION, VAR_LENGTH, VAR_MAXSPEED, VAR_NOISEEMISSION, VAR_NOXEMISSION, VAR_PMXEMISSION, VAR_SHAPE, VAR_WIDTH, traci::TraCIServer::writeResponseWithLength(), and traci::TraCIServer::writeStatusCmd().

bool TraCIServerAPI_Lane::processSet ( traci::TraCIServer &  server,
tcpip::Storage &  inputStorage,
tcpip::Storage &  outputStorage 
) [static]

Processes a set value command (Command 0xc3: Change Lane State)

Parameters:
[in]serverThe TraCI-server-instance which schedules this request
[in]inputStorageThe storage to read the command from
[out]outputStorageThe storage to write the result to

Definition at line 292 of file TraCIServerAPI_Lane.cpp.

References CMD_SET_LANE_VARIABLE, MSLane::dictionary(), MSLane::getEdge(), LANE_ALLOWED, LANE_DISALLOWED, parseVehicleClasses(), MSEdge::rebuildAllowedLanes(), RTYPE_ERR, RTYPE_OK, MSLane::setAllowedClasses(), MSLane::setLength(), MSLane::setMaxSpeed(), MSLane::setNotAllowedClasses(), SUMOReal, TYPE_DOUBLE, TYPE_STRINGLIST, VAR_LENGTH, VAR_MAXSPEED, and traci::TraCIServer::writeStatusCmd().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines