Eclipse SUMO - Simulation of Urban MObility
libsumo::Calibrator Class Reference

#include <Calibrator.h>

Static Public Member Functions

static double getBegin (const std::string &calibratorID)
 
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 &routeID)
 
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper)
 
static std::shared_ptr< VariableWrappermakeWrapper ()
 
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 More...
 

Static Private Member Functions

static MSCalibratorgetCalibrator (const std::string &id)
 
static MSCalibrator::AspiredState getCalibratorState (const MSCalibrator *c)
 

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
 
static SubscriptionResults mySubscriptionResults
 

Detailed Description

Definition at line 44 of file Calibrator.h.

Constructor & Destructor Documentation

◆ Calibrator()

libsumo::Calibrator::Calibrator ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ getBegin()

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

Definition at line 88 of file Calibrator.cpp.

References getCalibrator(), getCalibratorState(), and STEPS2TIME.

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getCalibrator()

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

Definition at line 178 of file Calibrator.cpp.

References MSCalibrator::getInstances().

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

Here is the caller graph for this function:

◆ getCalibratorState()

MSCalibrator::AspiredState Calibrator::getCalibratorState ( const MSCalibrator c)
staticprivate

Definition at line 188 of file Calibrator.cpp.

References MSCalibrator::getCurrentStateInterval().

Referenced by getBegin(), getEnd(), getRouteID(), getSpeed(), getTypeID(), and getVehsPerHour().

Here is the caller graph for this function:

◆ getEdgeID()

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

Definition at line 58 of file Calibrator.cpp.

References getCalibrator(), MSCalibrator::getEdge(), and Named::getID().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getEnd()

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

Definition at line 93 of file Calibrator.cpp.

References getCalibrator(), getCalibratorState(), and STEPS2TIME.

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getInserted()

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

Definition at line 128 of file Calibrator.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getLaneID()

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

Definition at line 63 of file Calibrator.cpp.

References getCalibrator(), Named::getID(), and MSCalibrator::getLane().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getPassed()

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

Definition at line 123 of file Calibrator.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getRemoved()

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

Definition at line 133 of file Calibrator.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getRouteID()

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

Definition at line 98 of file Calibrator.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getRouteProbeID()

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

Definition at line 103 of file Calibrator.cpp.

References getCalibrator(), Named::getID(), and MSCalibrator::getRouteProbe().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getSpeed()

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

Definition at line 78 of file Calibrator.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getTypeID()

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

Definition at line 83 of file Calibrator.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getVehsPerHour()

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

Definition at line 73 of file Calibrator.cpp.

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

Referenced by handleVariable().

Here is the caller graph for this function:

◆ getVTypes()

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

Definition at line 113 of file Calibrator.cpp.

References getCalibrator(), and MSDetectorFileOutput::getVehicleTypes().

Referenced by handleVariable().

Here is the caller graph for this function:

◆ handleVariable()

◆ makeWrapper()

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

◆ 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 79 of file Calibrator.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults Calibrator::mySubscriptionResults
staticprivate

Definition at line 78 of file Calibrator.h.

Referenced by makeWrapper().


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