Eclipse SUMO - Simulation of Urban MObility
libsumo::Junction Class Reference

#include <Junction.h>

Collaboration diagram for libsumo::Junction:

Static Public Member Functions

static int getIDCount ()
 
static std::vector< std::string > getIDList ()
 
static TraCIPosition getPosition (const std::string &junctionID, const bool includeZ=false)
 
static TraCIPositionVector getShape (const std::string &junctionID)
 
static LIBSUMO_SUBSCRIPTION_API NamedRTreegetTree ()
 Returns a tree filled with junction instances. More...
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static std::shared_ptr< VariableWrappermakeWrapper ()
 
static void storeShape (const std::string &id, PositionVector &shape)
 Saves the shape of the requested object in the given container. More...
 

Private Member Functions

 Junction ()=delete
 invalidated standard constructor More...
 

Static Private Member Functions

static MSJunctiongetJunction (const std::string &id)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 51 of file Junction.h.

Constructor & Destructor Documentation

◆ Junction()

libsumo::Junction::Junction ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ getIDCount()

int Junction::getIDCount ( )
static

Definition at line 56 of file Junction.cpp.

References getIDList().

Referenced by handleVariable().

◆ getIDList()

std::vector< std::string > Junction::getIDList ( )
static

◆ getJunction()

MSJunction * Junction::getJunction ( const std::string &  id)
staticprivate

◆ getPosition()

TraCIPosition Junction::getPosition ( const std::string &  junctionID,
const bool  includeZ = false 
)
static

Definition at line 62 of file Junction.cpp.

References getJunction(), and libsumo::Helper::makeTraCIPosition().

Referenced by handleVariable(), and storeShape().

◆ getShape()

TraCIPositionVector Junction::getShape ( const std::string &  junctionID)
static

◆ getTree()

NamedRTree * Junction::getTree ( )
static

Returns a tree filled with junction instances.

Returns
The rtree of junctions

Definition at line 87 of file Junction.cpp.

References MSNet::getInstance(), NamedRTree::Insert(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().

Referenced by libsumo::Helper::collectObjectsInRange().

◆ handleVariable()

◆ makeWrapper()

std::shared_ptr< VariableWrapper > Junction::makeWrapper ( )
static

◆ storeShape()

void Junction::storeShape ( const std::string &  id,
PositionVector shape 
)
static

Saves the shape of the requested object in the given container.

Parameters
idThe id of the poi to retrieve
shapeThe container to fill

Definition at line 100 of file Junction.cpp.

References getJunction(), and getPosition().

Referenced by libsumo::Helper::findObjectShape().

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Junction::myContextSubscriptionResults
staticprivate

Definition at line 80 of file Junction.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Junction::mySubscriptionResults
staticprivate

Definition at line 79 of file Junction.h.

Referenced by makeWrapper().


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