Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
PHEMlightdllV5::Correction Class Reference

#include <Correction.h>

Public Member Functions

 Correction (const std::vector< std::string > &dataPath)
const double & getAmbTemp () const
const std::string & getDETFilePath () const
const double & getTNOxFactor () const
const std::string & getTNOxFilePath () const
const bool & getUseDet () const
const bool & getUseTNOx () const
const double & getVehMileage () const
const std::string & getVMAFilePath () const
const int & getYear () const
bool IniDETfactor (Helpers *Helper)
bool IniTNOxfactor (Helpers *Helper)
bool ReadDet (std::string &ErrMSG)
bool ReadTNOx (std::string &ErrMSG)
void setAmbTemp (const double &value)
void setDETFilePath (const std::string &value)
void setTNOxFactor (const double &value)
void setTNOxFilePath (const std::string &value)
void setUseDet (const bool &value)
void setUseTNOx (const bool &value)
void setVehMileage (const double &value)
void setVMAFilePath (const std::string &value)
void setYear (const int &value)

Data Fields

std::map< std::string, double > DETFactors

Private Member Functions

double GetMileage (Helpers *Helper)
double Interpolate (double px, double p1, double p2, double e1, double e2)
bool ReadDETFile (std::string &ErrMSG)
bool ReadVMAFile (std::string &ErrMSG)

Private Attributes

nlohmann::json DETdata
double privateAmbTemp
const std::vector< std::string > privateDataPath
std::string privateDETFilePath
double privateTNOxFactor
std::string privateTNOxFilePath
bool privateUseDet
bool privateUseTNOx
double privateVehMileage
std::string privateVMAFilePath
int privateYear
nlohmann::json TNOxdata
nlohmann::json VMAdata

Detailed Description

Definition at line 35 of file Correction.h.

Constructor & Destructor Documentation

◆ Correction()

PHEMlightdllV5::Correction::Correction ( const std::vector< std::string > & dataPath)

Member Function Documentation

◆ getAmbTemp()

const double & PHEMlightdllV5::Correction::getAmbTemp ( ) const

Definition at line 282 of file Correction.cpp.

References privateAmbTemp.

Referenced by IniTNOxfactor().

Here is the caller graph for this function:

◆ getDETFilePath()

const std::string & PHEMlightdllV5::Correction::getDETFilePath ( ) const

Definition at line 54 of file Correction.cpp.

References privateDETFilePath.

Referenced by ReadDETFile().

Here is the caller graph for this function:

◆ GetMileage()

double PHEMlightdllV5::Correction::GetMileage ( Helpers * Helper)
private

Definition at line 207 of file Correction.cpp.

References PHEMlightdllV5::Helpers::geteClass(), PHEMlightdllV5::Helpers::getpClass(), PHEMlightdllV5::Helpers::getsClass(), PHEMlightdllV5::Helpers::getvClass(), getYear(), StringUtils::replace(), PHEMlightdllV5::Constants::strLNF, PHEMlightdllV5::Constants::strPKW, and VMAdata.

Referenced by IniDETfactor().

Here is the caller graph for this function:

◆ getTNOxFactor()

const double & PHEMlightdllV5::Correction::getTNOxFactor ( ) const

Definition at line 290 of file Correction.cpp.

References privateTNOxFactor.

Referenced by PHEMlightdllV5::CEPHandler::GetDetTempCor().

Here is the caller graph for this function:

◆ getTNOxFilePath()

const std::string & PHEMlightdllV5::Correction::getTNOxFilePath ( ) const

Definition at line 274 of file Correction.cpp.

References privateTNOxFilePath.

Referenced by ReadTNOx().

Here is the caller graph for this function:

◆ getUseDet()

const bool & PHEMlightdllV5::Correction::getUseDet ( ) const

Definition at line 46 of file Correction.cpp.

References privateUseDet.

Referenced by PHEMlightdllV5::CEPHandler::CalcCorrection(), and PHEMlightdllV5::CEPHandler::GetDetTempCor().

Here is the caller graph for this function:

◆ getUseTNOx()

const bool & PHEMlightdllV5::Correction::getUseTNOx ( ) const

Definition at line 266 of file Correction.cpp.

References privateUseTNOx.

Referenced by PHEMlightdllV5::CEPHandler::CalcCorrection(), and PHEMlightdllV5::CEPHandler::GetDetTempCor().

Here is the caller graph for this function:

◆ getVehMileage()

const double & PHEMlightdllV5::Correction::getVehMileage ( ) const

Definition at line 78 of file Correction.cpp.

References privateVehMileage.

Referenced by IniDETfactor().

Here is the caller graph for this function:

◆ getVMAFilePath()

const std::string & PHEMlightdllV5::Correction::getVMAFilePath ( ) const

Definition at line 62 of file Correction.cpp.

References privateVMAFilePath.

Referenced by ReadVMAFile().

Here is the caller graph for this function:

◆ getYear()

const int & PHEMlightdllV5::Correction::getYear ( ) const

Definition at line 70 of file Correction.cpp.

References privateYear.

Referenced by GetMileage().

Here is the caller graph for this function:

◆ IniDETfactor()

bool PHEMlightdllV5::Correction::IniDETfactor ( Helpers * Helper)

Definition at line 152 of file Correction.cpp.

References DETdata, DETFactors, PHEMlightdllV5::Helpers::geteClass(), GetMileage(), PHEMlightdllV5::Helpers::getpClass(), PHEMlightdllV5::Helpers::getvClass(), getVehMileage(), Interpolate(), StringUtils::replace(), setVehMileage(), PHEMlightdllV5::Constants::strLNF, and PHEMlightdllV5::Constants::strPKW.

Referenced by PHEMlightdllV5::CEPHandler::CalcCorrection().

Here is the caller graph for this function:

◆ IniTNOxfactor()

bool PHEMlightdllV5::Correction::IniTNOxfactor ( Helpers * Helper)

Definition at line 324 of file Correction.cpp.

References getAmbTemp(), PHEMlightdllV5::Helpers::geteClass(), PHEMlightdllV5::Helpers::getpClass(), PHEMlightdllV5::Helpers::getvClass(), StringUtils::replace(), setTNOxFactor(), PHEMlightdllV5::Constants::strDiesel, PHEMlightdllV5::Constants::strLNF, PHEMlightdllV5::Constants::strPKW, and TNOxdata.

Referenced by PHEMlightdllV5::CEPHandler::CalcCorrection().

Here is the caller graph for this function:

◆ Interpolate()

double PHEMlightdllV5::Correction::Interpolate ( double px,
double p1,
double p2,
double e1,
double e2 )
private

Definition at line 368 of file Correction.cpp.

Referenced by IniDETfactor().

Here is the caller graph for this function:

◆ ReadDet()

bool PHEMlightdllV5::Correction::ReadDet ( std::string & ErrMSG)

Definition at line 86 of file Correction.cpp.

References ReadDETFile(), and ReadVMAFile().

◆ ReadDETFile()

bool PHEMlightdllV5::Correction::ReadDETFile ( std::string & ErrMSG)
private

Definition at line 100 of file Correction.cpp.

References DETdata, getDETFilePath(), and privateDataPath.

Referenced by ReadDet().

Here is the caller graph for this function:

◆ ReadTNOx()

bool PHEMlightdllV5::Correction::ReadTNOx ( std::string & ErrMSG)

Definition at line 298 of file Correction.cpp.

References getTNOxFilePath(), privateDataPath, and TNOxdata.

◆ ReadVMAFile()

bool PHEMlightdllV5::Correction::ReadVMAFile ( std::string & ErrMSG)
private

Definition at line 126 of file Correction.cpp.

References getVMAFilePath(), privateDataPath, and VMAdata.

Referenced by ReadDet().

Here is the caller graph for this function:

◆ setAmbTemp()

void PHEMlightdllV5::Correction::setAmbTemp ( const double & value)

Definition at line 286 of file Correction.cpp.

References invalid_return< std::string >::value, and privateAmbTemp.

Referenced by Correction().

Here is the caller graph for this function:

◆ setDETFilePath()

void PHEMlightdllV5::Correction::setDETFilePath ( const std::string & value)

Definition at line 58 of file Correction.cpp.

References invalid_return< std::string >::value, and privateDETFilePath.

Referenced by Correction().

Here is the caller graph for this function:

◆ setTNOxFactor()

void PHEMlightdllV5::Correction::setTNOxFactor ( const double & value)

Definition at line 294 of file Correction.cpp.

References invalid_return< std::string >::value, and privateTNOxFactor.

Referenced by IniTNOxfactor().

Here is the caller graph for this function:

◆ setTNOxFilePath()

void PHEMlightdllV5::Correction::setTNOxFilePath ( const std::string & value)

Definition at line 278 of file Correction.cpp.

References invalid_return< std::string >::value, and privateTNOxFilePath.

Referenced by Correction().

Here is the caller graph for this function:

◆ setUseDet()

void PHEMlightdllV5::Correction::setUseDet ( const bool & value)

Definition at line 50 of file Correction.cpp.

References invalid_return< std::string >::value, and privateUseDet.

Referenced by Correction().

Here is the caller graph for this function:

◆ setUseTNOx()

void PHEMlightdllV5::Correction::setUseTNOx ( const bool & value)

Definition at line 270 of file Correction.cpp.

References invalid_return< std::string >::value, and privateUseTNOx.

Referenced by Correction().

Here is the caller graph for this function:

◆ setVehMileage()

void PHEMlightdllV5::Correction::setVehMileage ( const double & value)

Definition at line 82 of file Correction.cpp.

References invalid_return< std::string >::value, and privateVehMileage.

Referenced by PHEMlightdllV5::CEPHandler::CalcCorrection(), Correction(), and IniDETfactor().

Here is the caller graph for this function:

◆ setVMAFilePath()

void PHEMlightdllV5::Correction::setVMAFilePath ( const std::string & value)

Definition at line 66 of file Correction.cpp.

References invalid_return< std::string >::value, and privateVMAFilePath.

Referenced by Correction().

Here is the caller graph for this function:

◆ setYear()

void PHEMlightdllV5::Correction::setYear ( const int & value)

Definition at line 74 of file Correction.cpp.

References invalid_return< std::string >::value, and privateYear.

Referenced by Correction().

Here is the caller graph for this function:

Field Documentation

◆ DETdata

nlohmann::json PHEMlightdllV5::Correction::DETdata
private

Definition at line 105 of file Correction.h.

Referenced by IniDETfactor(), and ReadDETFile().

◆ DETFactors

std::map<std::string, double> PHEMlightdllV5::Correction::DETFactors

Definition at line 52 of file Correction.h.

Referenced by PHEMlightdllV5::CEPHandler::GetDetTempCor(), and IniDETfactor().

◆ privateAmbTemp

double PHEMlightdllV5::Correction::privateAmbTemp
private

Definition at line 45 of file Correction.h.

Referenced by getAmbTemp(), and setAmbTemp().

◆ privateDataPath

const std::vector<std::string> PHEMlightdllV5::Correction::privateDataPath
private

Definition at line 38 of file Correction.h.

Referenced by Correction(), ReadDETFile(), ReadTNOx(), and ReadVMAFile().

◆ privateDETFilePath

std::string PHEMlightdllV5::Correction::privateDETFilePath
private

Definition at line 39 of file Correction.h.

Referenced by getDETFilePath(), and setDETFilePath().

◆ privateTNOxFactor

double PHEMlightdllV5::Correction::privateTNOxFactor
private

Definition at line 46 of file Correction.h.

Referenced by getTNOxFactor(), and setTNOxFactor().

◆ privateTNOxFilePath

std::string PHEMlightdllV5::Correction::privateTNOxFilePath
private

Definition at line 44 of file Correction.h.

Referenced by getTNOxFilePath(), and setTNOxFilePath().

◆ privateUseDet

bool PHEMlightdllV5::Correction::privateUseDet
private

Definition at line 37 of file Correction.h.

Referenced by getUseDet(), and setUseDet().

◆ privateUseTNOx

bool PHEMlightdllV5::Correction::privateUseTNOx
private

Definition at line 43 of file Correction.h.

Referenced by getUseTNOx(), and setUseTNOx().

◆ privateVehMileage

double PHEMlightdllV5::Correction::privateVehMileage
private

Definition at line 42 of file Correction.h.

Referenced by getVehMileage(), and setVehMileage().

◆ privateVMAFilePath

std::string PHEMlightdllV5::Correction::privateVMAFilePath
private

Definition at line 40 of file Correction.h.

Referenced by getVMAFilePath(), and setVMAFilePath().

◆ privateYear

int PHEMlightdllV5::Correction::privateYear
private

Definition at line 41 of file Correction.h.

Referenced by getYear(), and setYear().

◆ TNOxdata

nlohmann::json PHEMlightdllV5::Correction::TNOxdata
private

Definition at line 107 of file Correction.h.

Referenced by IniTNOxfactor(), and ReadTNOx().

◆ VMAdata

nlohmann::json PHEMlightdllV5::Correction::VMAdata
private

Definition at line 106 of file Correction.h.

Referenced by GetMileage(), and ReadVMAFile().


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