SUMO - Simulation of Urban MObility
TraCIServerAPI_Lane Class Reference

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

#include <TraCIServerAPI_Lane.h>

Data Structures

class  StoringVisitor
 Allows to store the object; used as context while traveling the rtree in TraCI. More...
 

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_Laneoperator= (const TraCIServerAPI_Lane &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_Lane (const TraCIServerAPI_Lane &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting lane values via TraCI.

Definition at line 53 of file TraCIServerAPI_Lane.h.

Constructor & Destructor Documentation

TraCIServerAPI_Lane::TraCIServerAPI_Lane ( const TraCIServerAPI_Lane s)
private

invalidated copy constructor

Member Function Documentation

bool TraCIServerAPI_Lane::getShape ( const std::string &  id,
PositionVector shape 
)
static

Returns the named lane's shape.

Parameters
[in]idThe id of the searched lane
[out]shapeThe shape, if the lane is known
Returns
Whether the lane is known

Definition at line 380 of file TraCIServerAPI_Lane.cpp.

References MSLane::dictionary(), MSLane::getShape(), and PositionVector::push_back().

Referenced by TraCIServer::findObjectShape().

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

invalidated assignment operator

bool TraCIServerAPI_Lane::processGet ( 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 54 of file TraCIServerAPI_Lane.cpp.

References CMD_GET_LANE_VARIABLE, MSLane::dictionary(), MSLane::getCO2Emissions(), MSLane::getCOEmissions(), MSNet::getCurrentTimeStep(), SUMOVTypeParameter::getDefault(), SUMOVTypeParameter::getDefaultDecel(), MSLink::getDirection(), MSLane::getEdge(), MSLane::getFuelConsumption(), MSLane::getHarmonoise_NoiseEmissions(), MSLane::getHCEmissions(), Named::getID(), MSNet::getInstance(), MSLink::getLane(), MSLink::getLength(), MSLane::getLength(), MSLane::getLinkCont(), MSLane::getMeanSpeed(), MSLane::getNettoOccupancy(), MSLane::getNOxEmissions(), Parameterised::getParameter(), MSLane::getPermissions(), MSLane::getPMxEmissions(), MSLane::getShape(), MSLane::getSpeedLimit(), MSLink::getState(), getVehicleClassNamesList(), MSLane::getVehicleNumber(), MSLane::getVehiclesSecure(), MSLane::getWaitingSeconds(), MSLane::getWidth(), MSLink::hasApproachingFoe(), MSLink::havePriority(), ID_COUNT, ID_LIST, SUMOVTypeParameter::impatience, 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, SUMOVTypeParameter::length, SUMOXMLDefinitions::LinkDirections, SUMOXMLDefinitions::LinkStates, MIN2(), MSLink::opened(), tcpip::Storage::readString(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), MSLane::releaseVehicles(), RESPONSE_GET_LANE_VARIABLE, RTYPE_OK, SUMO_const_haltingSpeed, SUMOReal, SVCAll, 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_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().

bool TraCIServerAPI_Lane::processSet ( TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

The documentation for this class was generated from the following files: