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, tcpip::Storage *paramData)
 
static std::shared_ptr< VariableWrapper > makeWrapper ()
 
static void overrideTimeSinceDetection (const std::string &detID, double time)
 
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 44 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 174 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 68 of file libsumo/InductionLoop.cpp.

◆ getLastStepMeanLength()

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

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

References DELTA_T.

◆ getLastStepMeanSpeed()

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

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

References DELTA_T.

◆ getLastStepOccupancy()

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

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

◆ getLastStepVehicleIDs()

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

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

References DELTA_T.

◆ getLastStepVehicleNumber()

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

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

References DELTA_T.

◆ getPosition()

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

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

◆ getTimeSinceDetection()

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

Definition at line 104 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 159 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 187 of file libsumo/InductionLoop.cpp.

◆ overrideTimeSinceDetection()

void InductionLoop::overrideTimeSinceDetection ( const std::string &  detID,
double  time 
)
static

Definition at line 125 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 180 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 84 of file InductionLoop.h.

◆ mySubscriptionResults

SubscriptionResults InductionLoop::mySubscriptionResults
staticprivate

Definition at line 83 of file InductionLoop.h.

◆ myTree

NamedRTree * InductionLoop::myTree
staticprivate

Definition at line 85 of file InductionLoop.h.


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