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

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

#include <TraCIServerAPI_Junction.h>

Static Public Member Functions

static bool getPosition (const std::string &id, Position &p)
 Returns the named junction's position. More...
 
static NamedRTreegetTree ()
 Returns a tree filled with junction instances. More...
 
static bool processGet (TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xa9: Get Junction Variable) More...
 

Private Member Functions

TraCIServerAPI_Junctionoperator= (const TraCIServerAPI_Junction &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_Junction (const TraCIServerAPI_Junction &s)
 invalidated copy constructor More...
 

Detailed Description

APIs for getting/setting junction values via TraCI.

Definition at line 48 of file TraCIServerAPI_Junction.h.

Constructor & Destructor Documentation

TraCIServerAPI_Junction::TraCIServerAPI_Junction ( const TraCIServerAPI_Junction s)
private

invalidated copy constructor

Member Function Documentation

bool TraCIServerAPI_Junction::getPosition ( const std::string &  id,
Position p 
)
static

Returns the named junction's position.

Parameters
[in]idThe id of the searched junction
[out]pThe position, if the junction is known
Returns
Whether the junction is known (and on road)

Definition at line 110 of file TraCIServerAPI_Junction.cpp.

References NamedObjectCont< T >::get(), MSNet::getInstance(), MSNet::getJunctionControl(), and MSJunction::getPosition().

Referenced by TraCIServer::findObjectShape().

NamedRTree * TraCIServerAPI_Junction::getTree ( )
static

Returns a tree filled with junction instances.

Returns
The rtree of junctions

Definition at line 121 of file TraCIServerAPI_Junction.cpp.

References MSNet::getInstance(), MSNet::getJunctionControl(), NamedObjectCont< T >::getMyMap(), NamedRTree::Insert(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().

Referenced by TraCIServer::collectObjectsInRange().

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

invalidated assignment operator


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