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. More...
 
static TraCIRTreegetTree ()
 Returns a tree filled with edge instances. More...
 
static bool processGet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xaa: Get Edge Variable) More...
 
static bool processSet (traci::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 ( 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 428 of file TraCIServerAPI_Edge.cpp.

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

Referenced by traci::TraCIServer::findObjectShape().

TraCIRTree * TraCIServerAPI_Edge::getTree ( )
static

Returns a tree filled with edge instances.

Returns
The rtree of edges

Definition at line 443 of file TraCIServerAPI_Edge.cpp.

References Boundary::add(), TraCIRTree::addObject(), MSNet::getEdgeControl(), MSEdgeControl::getEdges(), and MSNet::getInstance().

Referenced by traci::TraCIServer::collectObjectsInRange().

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

invalidated assignment operator

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

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