Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
LIBSUMO_NAMESPACE::InductionLoop Class Reference

#include <InductionLoop.h>

Collaboration diagram for LIBSUMO_NAMESPACE::InductionLoop:
[legend]

Static Public Member Functions

static void cleanup ()
 
static double getIntervalMeanSpeed (const std::string &detID)
 
static double getIntervalOccupancy (const std::string &detID)
 
static std::vector< std::string > getIntervalVehicleIDs (const std::string &detID)
 
static int getIntervalVehicleNumber (const std::string &detID)
 
static std::string getLaneID (const std::string &detID)
 
static double getLastIntervalMeanSpeed (const std::string &detID)
 
static double getLastIntervalOccupancy (const std::string &detID)
 
static std::vector< std::string > getLastIntervalVehicleIDs (const std::string &detID)
 
static int getLastIntervalVehicleNumber (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.
 
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.
 

Private Member Functions

 InductionLoop ()=delete
 invalidated standard constructor
 

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 222 of file libsumo/InductionLoop.cpp.

◆ getDetector()

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

◆ getIntervalMeanSpeed()

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

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

◆ getIntervalOccupancy()

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

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

◆ getIntervalVehicleIDs()

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

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

◆ getIntervalVehicleNumber()

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

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

◆ getLaneID()

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

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

◆ getLastIntervalMeanSpeed()

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

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

◆ getLastIntervalOccupancy()

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

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

◆ getLastIntervalVehicleIDs()

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

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

◆ getLastIntervalVehicleNumber()

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

Definition at line 161 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

◆ 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 235 of file libsumo/InductionLoop.cpp.

◆ overrideTimeSinceDetection()

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

Definition at line 173 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 228 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 94 of file InductionLoop.h.

◆ mySubscriptionResults

SubscriptionResults InductionLoop::mySubscriptionResults
staticprivate

Definition at line 93 of file InductionLoop.h.

◆ myTree

NamedRTree * InductionLoop::myTree
staticprivate

Definition at line 95 of file InductionLoop.h.


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