Eclipse SUMO - Simulation of Urban MObility
LIBSUMO_NAMESPACE::LaneArea Class Reference

#include <LaneArea.h>

Collaboration diagram for LIBSUMO_NAMESPACE::LaneArea:
[legend]

Static Public Member Functions

static void cleanup ()
 
static double getJamLengthMeters (const std::string &detID)
 
static int getJamLengthVehicle (const std::string &detID)
 
static std::string getLaneID (const std::string &detID)
 
static int getLastStepHaltingNumber (const std::string &detID)
 
static double getLastStepMeanSpeed (const std::string &detID)
 
static double getLastStepOccupancy (const std::string &detID)
 
static std::vector< std::string > getLastStepVehicleIDs (const std::string &detID)
 
static int getLastStepVehicleNumber (const std::string &detID)
 
static double getLength (const std::string &detID)
 
static double getPosition (const std::string &detID)
 
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API NamedRTreegetTree ()
 Returns a tree filled with inductive loop instances. More...
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
 
static std::shared_ptr< VariableWrapper > makeWrapper ()
 
static void overrideVehicleNumber (const std::string &detID, int num)
 
static void storeShape (const std::string &id, PositionVector &shape)
 Saves the shape of the requested object in the given container. More...
 

Private Member Functions

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

Static Private Member Functions

static MSE2CollectorgetDetector (const std::string &detID)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 
static NamedRTreemyTree
 

Detailed Description

Definition at line 42 of file LaneArea.h.

Constructor & Destructor Documentation

◆ LaneArea()

LIBSUMO_NAMESPACE::LaneArea::LaneArea ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ cleanup()

void LaneArea::cleanup ( )
static

Definition at line 167 of file libsumo/LaneArea.cpp.

◆ getDetector()

MSE2Collector * LaneArea::getDetector ( const std::string &  detID)
staticprivate

◆ getJamLengthMeters()

double LaneArea::getJamLengthMeters ( const std::string &  detID)
static

Definition at line 67 of file libsumo/LaneArea.cpp.

◆ getJamLengthVehicle()

int LaneArea::getJamLengthVehicle ( const std::string &  detID)
static

Definition at line 61 of file libsumo/LaneArea.cpp.

◆ getLaneID()

std::string LaneArea::getLaneID ( const std::string &  detID)
static

Definition at line 97 of file libsumo/LaneArea.cpp.

◆ getLastStepHaltingNumber()

int LaneArea::getLastStepHaltingNumber ( const std::string &  detID)
static

Definition at line 116 of file libsumo/LaneArea.cpp.

◆ getLastStepMeanSpeed()

double LaneArea::getLastStepMeanSpeed ( const std::string &  detID)
static

Definition at line 73 of file libsumo/LaneArea.cpp.

◆ getLastStepOccupancy()

double LaneArea::getLastStepOccupancy ( const std::string &  detID)
static

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

◆ getLastStepVehicleIDs()

std::vector< std::string > LaneArea::getLastStepVehicleIDs ( const std::string &  detID)
static

Definition at line 79 of file libsumo/LaneArea.cpp.

◆ getLastStepVehicleNumber()

int LaneArea::getLastStepVehicleNumber ( const std::string &  detID)
static

Definition at line 110 of file libsumo/LaneArea.cpp.

◆ getLength()

double LaneArea::getLength ( const std::string &  detID)
static

Definition at line 103 of file libsumo/LaneArea.cpp.

References MSE2Collector::getLength().

◆ getPosition()

double LaneArea::getPosition ( const std::string &  detID)
static

Definition at line 91 of file libsumo/LaneArea.cpp.

◆ getTree()

NamedRTree * LaneArea::getTree ( )
static

Returns a tree filled with inductive loop instances.

Returns
The rtree of inductive loops

Definition at line 150 of file libsumo/LaneArea.cpp.

References PositionVector::getBoxBoundary(), Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().

◆ handleVariable()

◆ makeWrapper()

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

Definition at line 182 of file libsumo/LaneArea.cpp.

◆ overrideVehicleNumber()

void LaneArea::overrideVehicleNumber ( const std::string &  detID,
int  num 
)
static

Definition at line 188 of file libsumo/LaneArea.cpp.

◆ storeShape()

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

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

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

Definition at line 174 of file libsumo/LaneArea.cpp.

References MSE2Collector::getEndPos(), MSE2Collector::getLanes(), and MSE2Collector::getStartPos().

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults LaneArea::myContextSubscriptionResults
staticprivate

Definition at line 85 of file LaneArea.h.

◆ mySubscriptionResults

SubscriptionResults LaneArea::mySubscriptionResults
staticprivate

Definition at line 84 of file LaneArea.h.

◆ myTree

NamedRTree * LaneArea::myTree
staticprivate

Definition at line 83 of file LaneArea.h.


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