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.

References cleanup(), and myTree.

Referenced by cleanup().

Here is the caller graph for this function:

◆ getDetector()

◆ getIntervalMeanSpeed()

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

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

References getDetector(), MEInductLoop::getEdge(), getIntervalMeanSpeed(), MSEdge::getLength(), MEInductLoop::getMeanData(), getMEDetector(), MSEdge::getSpeedLimit(), and MSGlobals::gUseMesoSim.

Referenced by getIntervalMeanSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getIntervalOccupancy()

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

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

References getDetector(), MEInductLoop::getEdge(), getIntervalOccupancy(), MEInductLoop::getMeanData(), getMEDetector(), MSEdge::getNumLanes(), MSMeanData_Net::MSLaneMeanDataValues::getOccupancy(), MSGlobals::gUseMesoSim, and SIMSTEP.

Referenced by getIntervalOccupancy(), and handleVariable().

Here is the caller graph for this function:

◆ getIntervalVehicleIDs()

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

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

References getDetector(), getIntervalVehicleIDs(), MSGlobals::gUseMesoSim, and WRITE_ERROR.

Referenced by getIntervalVehicleIDs(), and handleVariable().

Here is the caller graph for this function:

◆ getIntervalVehicleNumber()

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

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

References getDetector(), getIntervalVehicleNumber(), getMEDetector(), and MSGlobals::gUseMesoSim.

Referenced by getIntervalVehicleNumber(), and handleVariable().

Here is the caller graph for this function:

◆ getLaneID()

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

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

References getDetector(), and getLaneID().

Referenced by getLaneID(), and handleVariable().

Here is the caller graph for this function:

◆ getLastIntervalMeanSpeed()

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

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

References getDetector(), getLastIntervalMeanSpeed(), MSGlobals::gUseMesoSim, libsumo::INVALID_DOUBLE_VALUE, and WRITE_ERROR.

Referenced by getLastIntervalMeanSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getLastIntervalOccupancy()

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

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

References getDetector(), getLastIntervalOccupancy(), MSGlobals::gUseMesoSim, libsumo::INVALID_DOUBLE_VALUE, and WRITE_ERROR.

Referenced by getLastIntervalOccupancy(), and handleVariable().

Here is the caller graph for this function:

◆ getLastIntervalVehicleIDs()

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

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

References getDetector(), getLastIntervalVehicleIDs(), MSGlobals::gUseMesoSim, and WRITE_ERROR.

Referenced by getLastIntervalVehicleIDs(), and handleVariable().

Here is the caller graph for this function:

◆ getLastIntervalVehicleNumber()

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

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

References getDetector(), getLastIntervalVehicleNumber(), MSGlobals::gUseMesoSim, libsumo::INVALID_INT_VALUE, and WRITE_ERROR.

Referenced by getLastIntervalVehicleNumber(), and handleVariable().

Here is the caller graph for this function:

◆ getLastStepMeanLength()

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

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

References DELTA_T, getDetector(), and getLastStepMeanLength().

Referenced by getLastStepMeanLength(), and handleVariable().

Here is the caller graph for this function:

◆ getLastStepMeanSpeed()

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

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

References DELTA_T, getDetector(), and getLastStepMeanSpeed().

Referenced by getLastStepMeanSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getLastStepOccupancy()

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

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

References getDetector(), and getLastStepOccupancy().

Referenced by getLastStepOccupancy(), and handleVariable().

Here is the caller graph for this function:

◆ getLastStepVehicleIDs()

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

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

References DELTA_T, getDetector(), and getLastStepVehicleIDs().

Referenced by getLastStepVehicleIDs(), and handleVariable().

Here is the caller graph for this function:

◆ getLastStepVehicleNumber()

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

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

References DELTA_T, getDetector(), and getLastStepVehicleNumber().

Referenced by getLastStepVehicleNumber(), and handleVariable().

Here is the caller graph for this function:

◆ getMEDetector()

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

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

References NamedObjectCont< T >::get(), MSNet::getDetectorControl(), MSNet::getInstance(), getMEDetector(), MSDetectorControl::getTypedDetectors(), and SUMO_TAG_INDUCTION_LOOP.

Referenced by getIntervalMeanSpeed(), getIntervalOccupancy(), getIntervalVehicleNumber(), and getMEDetector().

Here is the caller graph for this function:

◆ getPosition()

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

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

References getDetector(), and getPosition().

Referenced by getPosition(), and handleVariable().

Here is the caller graph for this function:

◆ getTimeSinceDetection()

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

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

References getDetector(), and getTimeSinceDetection().

Referenced by getTimeSinceDetection(), and handleVariable().

Here is the caller graph for this function:

◆ getTree()

NamedRTree * InductionLoop::getTree ( )
static

Returns a tree filled with inductive loop instances.

Returns
The rtree of inductive loops

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

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

Referenced by getTree().

Here is the caller graph for this function:

◆ getVehicleData()

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

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

References DELTA_T, getDetector(), getVehicleData(), and SIMSTEP.

Referenced by getVehicleData(), and handleVariable().

Here is the caller graph for this function:

◆ handleVariable()

bool InductionLoop::handleVariable ( const std::string & objID,
const int variable,
VariableWrapper * wrapper,
tcpip::Storage * paramData )
static

◆ makeWrapper()

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

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

References handleVariable(), makeWrapper(), myContextSubscriptionResults, and mySubscriptionResults.

Referenced by makeWrapper().

Here is the caller graph for this function:

◆ overrideTimeSinceDetection()

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

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

References getDetector(), and overrideTimeSinceDetection().

Referenced by overrideTimeSinceDetection().

Here is the caller graph for this function:

◆ 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 getDetector(), MSMoveReminder::getLane(), MSInductLoop::getPosition(), MSLane::getShape(), PositionVector::positionAtOffset(), and storeShape().

Referenced by storeShape().

Here is the caller graph for this function:

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults InductionLoop::myContextSubscriptionResults
staticprivate

Definition at line 96 of file InductionLoop.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults InductionLoop::mySubscriptionResults
staticprivate

Definition at line 95 of file InductionLoop.h.

Referenced by makeWrapper().

◆ myTree

NamedRTree * InductionLoop::myTree
staticprivate

Definition at line 97 of file InductionLoop.h.

Referenced by cleanup(), and getTree().


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