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

#include <InductionLoop.h>

Collaboration diagram for LIBSUMO_NAMESPACE::InductionLoop:
[legend]

Static Public Member Functions

static void cleanup ()
 
static std::string getLaneID (const std::string &detID)
 
static double getLastStepMeanLength (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 getPosition (const std::string &detID)
 
static double getTimeSinceDetection (const std::string &detID)
 
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API NamedRTreegetTree ()
 Returns a tree filled with inductive loop instances. More...
 
static std::vector< libsumo::TraCIVehicleDatagetVehicleData (const std::string &detID)
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static std::shared_ptr< VariableWrapper > makeWrapper ()
 
static void storeShape (const std::string &id, PositionVector &shape)
 Saves the shape of the requested object in the given container. More...
 

Private Member Functions

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

Static Private Member Functions

static MSInductLoopgetDetector (const std::string &detID)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 
static NamedRTreemyTree
 

Detailed Description

Definition at line 49 of file InductionLoop.h.

Constructor & Destructor Documentation

◆ InductionLoop()

LIBSUMO_NAMESPACE::InductionLoop::InductionLoop ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ cleanup()

void InductionLoop::cleanup ( )
static

Definition at line 168 of file libsumo/InductionLoop.cpp.

◆ getDetector()

MSInductLoop * InductionLoop::getDetector ( const std::string &  detID)
staticprivate

◆ getLaneID()

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

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

◆ getLastStepMeanLength()

double InductionLoop::getLastStepMeanLength ( const std::string &  detID)
static

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

References DELTA_T.

◆ getLastStepMeanSpeed()

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

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

References DELTA_T.

◆ getLastStepOccupancy()

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

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

◆ getLastStepVehicleIDs()

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

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

References DELTA_T.

◆ getLastStepVehicleNumber()

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

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

References DELTA_T.

◆ getPosition()

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

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

◆ getTimeSinceDetection()

double InductionLoop::getTimeSinceDetection ( const std::string &  detID)
static

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

◆ getTree()

NamedRTree * InductionLoop::getTree ( )
static

Returns a tree filled with inductive loop instances.

Returns
The rtree of inductive loops

Definition at line 153 of file libsumo/InductionLoop.cpp.

References MSNet::getInstance(), MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), PositionVector::positionAtOffset(), SUMO_TAG_INDUCTION_LOOP, Position::x(), and Position::y().

◆ getVehicleData()

std::vector< libsumo::TraCIVehicleData > InductionLoop::getVehicleData ( const std::string &  detID)
static

Definition at line 109 of file libsumo/InductionLoop.cpp.

References DELTA_T, and SIMSTEP.

◆ handleVariable()

◆ makeWrapper()

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

Definition at line 181 of file libsumo/InductionLoop.cpp.

◆ storeShape()

void InductionLoop::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/InductionLoop.cpp.

References MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), and PositionVector::positionAtOffset().

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults InductionLoop::myContextSubscriptionResults
staticprivate

Definition at line 86 of file InductionLoop.h.

◆ mySubscriptionResults

SubscriptionResults InductionLoop::mySubscriptionResults
staticprivate

Definition at line 85 of file InductionLoop.h.

◆ myTree

NamedRTree * InductionLoop::myTree
staticprivate

Definition at line 87 of file InductionLoop.h.


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