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 &loopID)
 
static double getIntervalOccupancy (const std::string &loopID)
 
static std::vector< std::string > getIntervalVehicleIDs (const std::string &loopID)
 
static int getIntervalVehicleNumber (const std::string &loopID)
 
static std::string getLaneID (const std::string &loopID)
 
static double getLastIntervalMeanSpeed (const std::string &loopID)
 
static double getLastIntervalOccupancy (const std::string &loopID)
 
static std::vector< std::string > getLastIntervalVehicleIDs (const std::string &loopID)
 
static int getLastIntervalVehicleNumber (const std::string &loopID)
 
static double getLastStepMeanLength (const std::string &loopID)
 
static double getLastStepMeanSpeed (const std::string &loopID)
 
static double getLastStepOccupancy (const std::string &loopID)
 
static std::vector< std::string > getLastStepVehicleIDs (const std::string &loopID)
 
static int getLastStepVehicleNumber (const std::string &loopID)
 
static double getPosition (const std::string &loopID)
 
static double getTimeSinceDetection (const std::string &loopID)
 
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 &loopID)
 
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 &loopID, 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 &loopID)
 
static MEInductLoopgetMEDetector (const std::string &loopID)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 
static NamedRTreemyTree
 

Detailed Description

Definition at line 45 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 277 of file libsumo/InductionLoop.cpp.

◆ getDetector()

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

◆ getIntervalMeanSpeed()

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

◆ getIntervalOccupancy()

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

◆ getIntervalVehicleIDs()

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

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

References MSGlobals::gUseMesoSim, and WRITE_ERROR.

◆ getIntervalVehicleNumber()

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

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

References MSGlobals::gUseMesoSim.

◆ getLaneID()

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

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

◆ getLastIntervalMeanSpeed()

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

◆ getLastIntervalOccupancy()

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

◆ getLastIntervalVehicleIDs()

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

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

References MSGlobals::gUseMesoSim, and WRITE_ERROR.

◆ getLastIntervalVehicleNumber()

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

◆ getLastStepMeanLength()

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

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

References DELTA_T.

◆ getLastStepMeanSpeed()

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

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

References DELTA_T.

◆ getLastStepOccupancy()

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

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

◆ getLastStepVehicleIDs()

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

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

References DELTA_T.

◆ getLastStepVehicleNumber()

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

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

References DELTA_T.

◆ getMEDetector()

MEInductLoop * InductionLoop::getMEDetector ( const std::string &  loopID)
staticprivate

◆ getPosition()

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

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

◆ getTimeSinceDetection()

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

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

◆ getTree()

NamedRTree * InductionLoop::getTree ( )
static

◆ getVehicleData()

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

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

References DELTA_T, and SIMSTEP.

◆ handleVariable()

◆ makeWrapper()

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

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

◆ overrideTimeSinceDetection()

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

Definition at line 217 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 283 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 96 of file InductionLoop.h.

◆ mySubscriptionResults

SubscriptionResults InductionLoop::mySubscriptionResults
staticprivate

Definition at line 95 of file InductionLoop.h.

◆ myTree

NamedRTree * InductionLoop::myTree
staticprivate

Definition at line 97 of file InductionLoop.h.


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