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

#include <RouteProbe.h>

Static Public Member Functions

static std::string getEdgeID (const std::string &probeID)
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper ()
static std::string sampleCurrentRouteID (const std::string &probeID)
static std::string sampleLastRouteID (const std::string &probeID)

Private Member Functions

 RouteProbe ()=delete
 invalidated standard constructor

Static Private Member Functions

static MSRouteProbegetRouteProbe (const std::string &id)

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults

Detailed Description

Definition at line 41 of file RouteProbe.h.

Constructor & Destructor Documentation

◆ RouteProbe()

LIBSUMO_NAMESPACE::RouteProbe::RouteProbe ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ getEdgeID()

std::string RouteProbe::getEdgeID ( const std::string & probeID)
static

Definition at line 57 of file libsumo/RouteProbe.cpp.

References MSRouteProbe::getEdge(), getEdgeID(), Named::getID(), and getRouteProbe().

Referenced by getEdgeID(), and handleVariable().

Here is the caller graph for this function:

◆ getRouteProbe()

MSRouteProbe * RouteProbe::getRouteProbe ( const std::string & id)
staticprivate

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

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

Referenced by getEdgeID(), getRouteProbe(), sampleCurrentRouteID(), and sampleLastRouteID().

Here is the caller graph for this function:

◆ handleVariable()

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

Definition at line 116 of file libsumo/RouteProbe.cpp.

References getEdgeID(), handleVariable(), libsumo::ID_COUNT, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), sampleCurrentRouteID(), sampleLastRouteID(), libsumo::TRACI_ID_LIST, libsumo::VAR_PARAMETER, libsumo::VAR_PARAMETER_WITH_KEY, libsumo::VAR_ROAD_ID, libsumo::VAR_SAMPLE_CURRENT, and libsumo::VAR_SAMPLE_LAST.

Referenced by handleVariable(), and makeWrapper().

Here is the caller graph for this function:

◆ makeWrapper()

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

Definition at line 110 of file libsumo/RouteProbe.cpp.

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

Referenced by makeWrapper().

Here is the caller graph for this function:

◆ sampleCurrentRouteID()

std::string RouteProbe::sampleCurrentRouteID ( const std::string & probeID)
static

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

References getRouteProbe(), sampleCurrentRouteID(), and MSRouteProbe::sampleRoute().

Referenced by handleVariable(), and sampleCurrentRouteID().

Here is the caller graph for this function:

◆ sampleLastRouteID()

std::string RouteProbe::sampleLastRouteID ( const std::string & probeID)
static

Definition at line 63 of file libsumo/RouteProbe.cpp.

References getRouteProbe(), sampleLastRouteID(), and MSRouteProbe::sampleRoute().

Referenced by handleVariable(), and sampleLastRouteID().

Here is the caller graph for this function:

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults RouteProbe::myContextSubscriptionResults
staticprivate

Definition at line 64 of file RouteProbe.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults RouteProbe::mySubscriptionResults
staticprivate

Definition at line 63 of file RouteProbe.h.

Referenced by makeWrapper().


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