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

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

#include <TraCIServerAPI_POI.h>

Static Public Member Functions

static bool getPosition (const std::string &id, Position &p)
 Returns the named PoI's position. More...
 
static TraCIRTreegetTree ()
 Returns a tree filled with inductive loop instances. More...
 
static bool processGet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a get value command (Command 0xa7: Get PoI Variable) More...
 
static bool processSet (traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
 Processes a set value command (Command 0xc7: Change PoI State) More...
 

Private Member Functions

TraCIServerAPI_POIoperator= (const TraCIServerAPI_POI &s)
 invalidated assignment operator More...
 
 TraCIServerAPI_POI (const TraCIServerAPI_POI &s)
 invalidated copy constructor More...
 

Static Private Member Functions

static PointOfInterestgetPoI (const std::string &id, int &layer)
 Returns the named PoI. More...
 

Detailed Description

APIs for getting/setting POI values via TraCI.

Definition at line 48 of file TraCIServerAPI_POI.h.

Constructor & Destructor Documentation

TraCIServerAPI_POI::TraCIServerAPI_POI ( const TraCIServerAPI_POI s)
private

invalidated copy constructor

Member Function Documentation

PointOfInterest * TraCIServerAPI_POI::getPoI ( const std::string &  id,
int layer 
)
staticprivate

Returns the named PoI.

Parameters
[in]idThe id of the searched PoI
[out]layerThe layer the PoI is located in
Returns
The named PoI, or 0 if it is not known

Definition at line 255 of file TraCIServerAPI_POI.cpp.

References NamedObjectCont< T >::get(), MSNet::getInstance(), ShapeContainer::getPOIs(), and MSNet::getShapeContainer().

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

Returns the named PoI's position.

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

Definition at line 243 of file TraCIServerAPI_POI.cpp.

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

TraCIRTree * TraCIServerAPI_POI::getTree ( )
static

Returns a tree filled with inductive loop instances.

Returns
The rtree of inductive loop

Definition at line 262 of file TraCIServerAPI_POI.cpp.

References TraCIRTree::addObject(), MSNet::getInstance(), NamedObjectCont< T >::getMyMap(), ShapeContainer::getPOIs(), and MSNet::getShapeContainer().

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

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

invalidated assignment operator

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

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