SUMO - Simulation of Urban MObility
TraCIServerAPI_Edge Class Reference

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

#include <TraCIServerAPI_Edge.h>

Collaboration diagram for TraCIServerAPI_Edge:
Collaboration graph

Static Public Member Functions

static bool getShape (const std::string &id, PositionVector &shape)
 Returns the named edge's shape. More...
 
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_Edgeoperator= (const TraCIServerAPI_Edge &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_Edge (const TraCIServerAPI_Edge &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting edge values via TraCI.

Definition at line 47 of file TraCIServerAPI_Edge.h.

Constructor & Destructor Documentation

◆ TraCIServerAPI_Edge()

TraCIServerAPI_Edge::TraCIServerAPI_Edge ( const TraCIServerAPI_Edge s)
private

invalidated copy constructor

Member Function Documentation

◆ getShape()

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

Returns the named edge's shape.

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

Definition at line 473 of file TraCIServerAPI_Edge.cpp.

References MSEdge::dictionary(), and MSEdge::getLanes().

Referenced by TraCIServer::findObjectShape().

◆ operator=()

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

invalidated assignment operator

◆ processGet()

bool TraCIServerAPI_Edge::processGet ( TraCIServer server,
tcpip::Storage inputStorage,
tcpip::Storage outputStorage 
)
static

Processes a get value command (Command 0xaa: Get Edge 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 55 of file TraCIServerAPI_Edge.cpp.

References CMD_GET_EDGE_VARIABLE, MSEdge::dictionary(), MSEdge::getCurrentTravelTime(), MSNet::getInstance(), MSEdge::getLanes(), MSEdge::getMeanSpeed(), Parameterised::getParameter(), MSEdge::getSortedPersons(), ID_COUNT, ID_LIST, MSEdge::insertIDs(), LAST_STEP_LENGTH, LAST_STEP_MEAN_SPEED, LAST_STEP_OCCUPANCY, LAST_STEP_PERSON_ID_LIST, LAST_STEP_VEHICLE_HALTING_NUMBER, LAST_STEP_VEHICLE_ID_LIST, LAST_STEP_VEHICLE_NUMBER, tcpip::Storage::readString(), TraCIServer::readTypeCheckingInt(), TraCIServer::readTypeCheckingString(), tcpip::Storage::readUnsignedByte(), RESPONSE_GET_EDGE_VARIABLE, RTYPE_OK, HelpersHarmonoise::sum(), SUMO_const_haltingSpeed, toHex(), TYPE_DOUBLE, TYPE_INTEGER, TYPE_STRING, TYPE_STRINGLIST, VAR_CO2EMISSION, VAR_COEMISSION, VAR_CURRENT_TRAVELTIME, VAR_EDGE_EFFORT, VAR_EDGE_TRAVELTIME, VAR_ELECTRICITYCONSUMPTION, VAR_FUELCONSUMPTION, VAR_HCEMISSION, VAR_NOISEEMISSION, VAR_NOXEMISSION, VAR_PARAMETER, 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().

◆ processSet()


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