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

#include <Calibrator.h>

Static Public Member Functions

static double getBegin (const std::string &calibratorID)
static MSCalibratorgetCalibrator (const std::string &id)
static std::string getEdgeID (const std::string &calibratorID)
static double getEnd (const std::string &calibratorID)
static int getInserted (const std::string &calibratorID)
static std::string getLaneID (const std::string &calibratorID)
static int getPassed (const std::string &calibratorID)
static int getRemoved (const std::string &calibratorID)
static std::string getRouteID (const std::string &calibratorID)
static std::string getRouteProbeID (const std::string &calibratorID)
static double getSpeed (const std::string &calibratorID)
static std::string getTypeID (const std::string &calibratorID)
static double getVehsPerHour (const std::string &calibratorID)
static std::vector< std::string > getVTypes (const std::string &calibratorID)
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
static std::shared_ptr< VariableWrapper > makeWrapper ()
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API void setFlow (const std::string &calibratorID, double begin, double end, double vehsPerHour, double speed, const std::string &typeID, const std::string &routeID, const std::string &departLane="first", const std::string &departSpeed="max")

Private Member Functions

 Calibrator ()=delete
 invalidated standard constructor

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults

Detailed Description

Definition at line 42 of file Calibrator.h.

Constructor & Destructor Documentation

◆ Calibrator()

LIBSUMO_NAMESPACE::Calibrator::Calibrator ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ getBegin()

double Calibrator::getBegin ( const std::string & calibratorID)
static

Definition at line 90 of file libsumo/Calibrator.cpp.

References getBegin(), getCalibrator(), libsumo::Helper::getCalibratorState(), and STEPS2TIME.

Referenced by getBegin(), and handleVariable().

Here is the caller graph for this function:

◆ getCalibrator()

MSCalibrator * Calibrator::getCalibrator ( const std::string & id)
static

Definition at line 180 of file libsumo/Calibrator.cpp.

References getCalibrator(), and MSCalibrator::getInstances().

Referenced by getBegin(), getCalibrator(), getEdgeID(), getEnd(), getInserted(), getLaneID(), getPassed(), getRemoved(), getRouteID(), getRouteProbeID(), getSpeed(), getTypeID(), getVehsPerHour(), getVTypes(), and setFlow().

Here is the caller graph for this function:

◆ getEdgeID()

std::string Calibrator::getEdgeID ( const std::string & calibratorID)
static

Definition at line 60 of file libsumo/Calibrator.cpp.

References getCalibrator(), and getEdgeID().

Referenced by getEdgeID(), and handleVariable().

Here is the caller graph for this function:

◆ getEnd()

double Calibrator::getEnd ( const std::string & calibratorID)
static

Definition at line 95 of file libsumo/Calibrator.cpp.

References getCalibrator(), libsumo::Helper::getCalibratorState(), getEnd(), and STEPS2TIME.

Referenced by getEnd(), and handleVariable().

Here is the caller graph for this function:

◆ getInserted()

int Calibrator::getInserted ( const std::string & calibratorID)
static

Definition at line 130 of file libsumo/Calibrator.cpp.

References getCalibrator(), and getInserted().

Referenced by getInserted(), and handleVariable().

Here is the caller graph for this function:

◆ getLaneID()

std::string Calibrator::getLaneID ( const std::string & calibratorID)
static

Definition at line 65 of file libsumo/Calibrator.cpp.

References getCalibrator(), Named::getID(), and getLaneID().

Referenced by getLaneID(), and handleVariable().

Here is the caller graph for this function:

◆ getPassed()

int Calibrator::getPassed ( const std::string & calibratorID)
static

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

References getCalibrator(), and getPassed().

Referenced by getPassed(), and handleVariable().

Here is the caller graph for this function:

◆ getRemoved()

int Calibrator::getRemoved ( const std::string & calibratorID)
static

Definition at line 135 of file libsumo/Calibrator.cpp.

References getCalibrator(), and getRemoved().

Referenced by getRemoved(), and handleVariable().

Here is the caller graph for this function:

◆ getRouteID()

std::string Calibrator::getRouteID ( const std::string & calibratorID)
static

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

References getCalibrator(), libsumo::Helper::getCalibratorState(), getRouteID(), SUMOVehicleParameter::routeid, and MSCalibrator::AspiredState::vehicleParameter.

Referenced by getRouteID(), and handleVariable().

Here is the caller graph for this function:

◆ getRouteProbeID()

std::string Calibrator::getRouteProbeID ( const std::string & calibratorID)
static

Definition at line 105 of file libsumo/Calibrator.cpp.

References getCalibrator(), Named::getID(), and getRouteProbeID().

Referenced by getRouteProbeID(), and handleVariable().

Here is the caller graph for this function:

◆ getSpeed()

double Calibrator::getSpeed ( const std::string & calibratorID)
static

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

References getCalibrator(), libsumo::Helper::getCalibratorState(), getSpeed(), and MSCalibrator::AspiredState::v.

Referenced by getSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getTypeID()

std::string Calibrator::getTypeID ( const std::string & calibratorID)
static

Definition at line 85 of file libsumo/Calibrator.cpp.

References getCalibrator(), libsumo::Helper::getCalibratorState(), getTypeID(), MSCalibrator::AspiredState::vehicleParameter, and SUMOVehicleParameter::vtypeid.

Referenced by getTypeID(), and handleVariable().

Here is the caller graph for this function:

◆ getVehsPerHour()

double Calibrator::getVehsPerHour ( const std::string & calibratorID)
static

Definition at line 75 of file libsumo/Calibrator.cpp.

References getCalibrator(), libsumo::Helper::getCalibratorState(), getVehsPerHour(), and MSCalibrator::AspiredState::q.

Referenced by getVehsPerHour(), and handleVariable().

Here is the caller graph for this function:

◆ getVTypes()

std::vector< std::string > Calibrator::getVTypes ( const std::string & calibratorID)
static

Definition at line 115 of file libsumo/Calibrator.cpp.

References getCalibrator(), and getVTypes().

Referenced by getVTypes(), and handleVariable().

Here is the caller graph for this function:

◆ handleVariable()

◆ makeWrapper()

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

Definition at line 191 of file libsumo/Calibrator.cpp.

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

Referenced by makeWrapper().

Here is the caller graph for this function:

◆ setFlow()

void Calibrator::setFlow ( const std::string & calibratorID,
double begin,
double end,
double vehsPerHour,
double speed,
const std::string & typeID,
const std::string & routeID,
const std::string & departLane = "first",
const std::string & departSpeed = "max" )
static

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults Calibrator::myContextSubscriptionResults
staticprivate

Definition at line 76 of file Calibrator.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Calibrator::mySubscriptionResults
staticprivate

Definition at line 75 of file Calibrator.h.

Referenced by makeWrapper().


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