Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
LIBSUMO_NAMESPACE::Junction Class Reference

#include <Junction.h>

Collaboration diagram for LIBSUMO_NAMESPACE::Junction:
[legend]

Static Public Member Functions

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

Private Member Functions

 Junction ()=delete
 invalidated standard constructor

Static Private Member Functions

static MSJunctiongetJunction (const std::string &id)

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults
static NamedRTreemyTree

Detailed Description

Definition at line 45 of file Junction.h.

Constructor & Destructor Documentation

◆ Junction()

LIBSUMO_NAMESPACE::Junction::Junction ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ cleanup()

void Junction::cleanup ( )
static

Definition at line 137 of file libsumo/Junction.cpp.

References cleanup(), and myTree.

Referenced by cleanup().

Here is the caller graph for this function:

◆ getIncomingEdges()

const std::vector< std::string > Junction::getIncomingEdges ( const std::string & junctionID)
static

Definition at line 75 of file libsumo/Junction.cpp.

References getIncomingEdges(), and getJunction().

Referenced by getIncomingEdges(), and handleVariable().

Here is the caller graph for this function:

◆ getJunction()

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

Definition at line 95 of file libsumo/Junction.cpp.

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

Referenced by getIncomingEdges(), getJunction(), getOutgoingEdges(), getPosition(), getShape(), and storeShape().

Here is the caller graph for this function:

◆ getOutgoingEdges()

const std::vector< std::string > Junction::getOutgoingEdges ( const std::string & junctionID)
static

Definition at line 85 of file libsumo/Junction.cpp.

References getJunction(), and getOutgoingEdges().

Referenced by getOutgoingEdges(), and handleVariable().

Here is the caller graph for this function:

◆ getPosition()

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

Definition at line 63 of file libsumo/Junction.cpp.

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

Referenced by getPosition(), handleVariable(), and storeShape().

Here is the caller graph for this function:

◆ getShape()

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

Definition at line 69 of file libsumo/Junction.cpp.

References getJunction(), getShape(), and libsumo::Helper::makeTraCIPositionVector().

Referenced by getShape(), and handleVariable().

Here is the caller graph for this function:

◆ getTree()

NamedRTree * Junction::getTree ( )
static

Returns a tree filled with junction instances.

Returns
The rtree of junctions

Definition at line 123 of file libsumo/Junction.cpp.

References MSNet::getInstance(), getTree(), and myTree.

Referenced by getTree().

Here is the caller graph for this function:

◆ handleVariable()

bool Junction::handleVariable ( const std::string & objID,
const int variable,
VariableWrapper * wrapper,
tcpip::Storage * paramData )
static

◆ makeWrapper()

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

Definition at line 149 of file libsumo/Junction.cpp.

References handleVariable(), makeWrapper(), myContextSubscriptionResults, and mySubscriptionResults.

Referenced by makeWrapper().

Here is the caller graph for this function:

◆ 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 143 of file libsumo/Junction.cpp.

References getJunction(), getPosition(), and storeShape().

Referenced by storeShape().

Here is the caller graph for this function:

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Junction::myContextSubscriptionResults
staticprivate

Definition at line 78 of file Junction.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Junction::mySubscriptionResults
staticprivate

Definition at line 77 of file Junction.h.

Referenced by makeWrapper().

◆ myTree

NamedRTree * Junction::myTree
staticprivate

Definition at line 79 of file Junction.h.

Referenced by cleanup(), and getTree().


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