SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TraCIServerAPI_Edge Class Reference

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

#include <TraCIServerAPI_Edge.h>

Static Public Member Functions

static bool getShape (const std::string &id, PositionVector &shape)
 Returns the named edge's shape.
static bool processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xaa: Get Edge Variable)
static bool processSet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xca: Change Edge State)

Private Member Functions

TraCIServerAPI_Edgeoperator= (const TraCIServerAPI_Edge &s)
 invalidated assignment operator
 TraCIServerAPI_Edge (const TraCIServerAPI_Edge &s)
 invalidated copy constructor

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 ( const TraCIServerAPI_Edge s)
private

invalidated copy constructor

Member Function Documentation

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 433 of file TraCIServerAPI_Edge.cpp.

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

Referenced by TraCIServer::findObjectShape().

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

invalidated assignment operator

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

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