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

#include <Junction.h>

Collaboration diagram for libsumo::Junction:
Collaboration graph

Static Public Member Functions

static TraCIColor getColor (const std::string &poiID)
 
static int getIDCount ()
 
static std::vector< std::string > getIDList ()
 
static MSJunctiongetJunction (const std::string &id)
 
static TraCIPosition getPosition (const std::string &junctionID)
 
static TraCIPositionVector getShape (const std::string &junctionID)
 
static NamedRTreegetTree ()
 Returns a tree filled with junction instances. More...
 
static std::string getType (const std::string &poiID)
 
static void subscribe (const std::string &objID, SUMOTime beginTime, SUMOTime endTime, const std::vector< int > &vars)
 
static void subscribeContext (const std::string &objID, SUMOTime beginTime, SUMOTime endTime, int domain, double range, const std::vector< int > &vars)
 

Private Member Functions

 Junction ()
 invalidated standard constructor More...
 
 Junction (const Junction &src)
 invalidated copy constructor More...
 
Junctionoperator= (const Junction &src)
 invalidated assignment operator More...
 

Detailed Description

Definition at line 52 of file Junction.h.

Constructor & Destructor Documentation

◆ Junction() [1/2]

libsumo::Junction::Junction ( )
private

invalidated standard constructor

◆ Junction() [2/2]

libsumo::Junction::Junction ( const Junction src)
private

invalidated copy constructor

Member Function Documentation

◆ getColor()

static TraCIColor libsumo::Junction::getColor ( const std::string &  poiID)
static

◆ getIDCount()

int Junction::getIDCount ( )
static

Definition at line 54 of file Junction.cpp.

References getIDList().

Referenced by TraCIServerAPI_Junction::processGet().

◆ getIDList()

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

◆ getJunction()

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

◆ getPosition()

TraCIPosition Junction::getPosition ( const std::string &  junctionID)
static

◆ 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 78 of file Junction.cpp.

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

◆ getType()

static std::string libsumo::Junction::getType ( const std::string &  poiID)
static

◆ operator=()

Junction& libsumo::Junction::operator= ( const Junction src)
private

invalidated assignment operator

◆ subscribe()

static void libsumo::Junction::subscribe ( const std::string &  objID,
SUMOTime  beginTime,
SUMOTime  endTime,
const std::vector< int > &  vars 
)
static

◆ subscribeContext()

static void libsumo::Junction::subscribeContext ( const std::string &  objID,
SUMOTime  beginTime,
SUMOTime  endTime,
int  domain,
double  range,
const std::vector< int > &  vars 
)
static

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