Eclipse SUMO - Simulation of Urban MObility
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. More...
 
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. 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
 
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.

◆ getIncomingEdges()

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

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

◆ getJunction()

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

◆ getOutgoingEdges()

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

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

◆ getPosition()

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

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

References libsumo::Helper::makeTraCIPosition().

◆ getShape()

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

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

References libsumo::Helper::makeTraCIPositionVector().

◆ 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 PositionVector::getBoxBoundary(), MSNet::getInstance(), Boundary::getShape(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().

◆ 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.

◆ 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.

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Junction::myContextSubscriptionResults
staticprivate

Definition at line 78 of file Junction.h.

◆ mySubscriptionResults

SubscriptionResults Junction::mySubscriptionResults
staticprivate

Definition at line 77 of file Junction.h.

◆ myTree

NamedRTree * Junction::myTree
staticprivate

Definition at line 79 of file Junction.h.


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