![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#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 |
Definition at line 35 of file Correction.h.
PHEMlightdllV5::Correction::Correction | ( | const std::vector< std::string > & | dataPath | ) |
Definition at line 34 of file Correction.cpp.
References setAmbTemp(), setDETFilePath(), setTNOxFilePath(), setUseDet(), setUseTNOx(), setVehMileage(), setVMAFilePath(), and setYear().
const double & PHEMlightdllV5::Correction::getAmbTemp | ( | ) | const |
Definition at line 282 of file Correction.cpp.
References privateAmbTemp.
Referenced by IniTNOxfactor().
const std::string & PHEMlightdllV5::Correction::getDETFilePath | ( | ) | const |
Definition at line 54 of file Correction.cpp.
References privateDETFilePath.
Referenced by ReadDETFile().
|
private |
Definition at line 207 of file Correction.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::at(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::contains(), 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().
const double & PHEMlightdllV5::Correction::getTNOxFactor | ( | ) | const |
Definition at line 290 of file Correction.cpp.
References privateTNOxFactor.
Referenced by PHEMlightdllV5::CEPHandler::GetDetTempCor().
const std::string & PHEMlightdllV5::Correction::getTNOxFilePath | ( | ) | const |
Definition at line 274 of file Correction.cpp.
References privateTNOxFilePath.
Referenced by ReadTNOx().
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().
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().
const double & PHEMlightdllV5::Correction::getVehMileage | ( | ) | const |
Definition at line 78 of file Correction.cpp.
References privateVehMileage.
Referenced by IniDETfactor().
const std::string & PHEMlightdllV5::Correction::getVMAFilePath | ( | ) | const |
Definition at line 62 of file Correction.cpp.
References privateVMAFilePath.
Referenced by ReadVMAFile().
const int & PHEMlightdllV5::Correction::getYear | ( | ) | const |
Definition at line 70 of file Correction.cpp.
References privateYear.
Referenced by GetMileage().
bool PHEMlightdllV5::Correction::IniDETfactor | ( | Helpers * | Helper | ) |
Definition at line 152 of file Correction.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::at(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::contains(), DETdata, DETFactors, PHEMlightdllV5::Helpers::geteClass(), GetMileage(), PHEMlightdllV5::Helpers::getpClass(), PHEMlightdllV5::Helpers::getvClass(), getVehMileage(), Interpolate(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::items(), StringUtils::replace(), setVehMileage(), PHEMlightdllV5::Constants::strLNF, and PHEMlightdllV5::Constants::strPKW.
Referenced by PHEMlightdllV5::CEPHandler::CalcCorrection().
bool PHEMlightdllV5::Correction::IniTNOxfactor | ( | Helpers * | Helper | ) |
Definition at line 324 of file Correction.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::at(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::contains(), 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().
|
private |
Definition at line 368 of file Correction.cpp.
Referenced by IniDETfactor().
bool PHEMlightdllV5::Correction::ReadDet | ( | std::string & | ErrMSG | ) |
Definition at line 86 of file Correction.cpp.
References ReadDETFile(), and ReadVMAFile().
Referenced by HelpersPHEMlight5::getClassByName().
|
private |
Definition at line 100 of file Correction.cpp.
References DETdata, getDETFilePath(), and privateDataPath.
Referenced by ReadDet().
bool PHEMlightdllV5::Correction::ReadTNOx | ( | std::string & | ErrMSG | ) |
Definition at line 298 of file Correction.cpp.
References getTNOxFilePath(), privateDataPath, and TNOxdata.
Referenced by HelpersPHEMlight5::getClassByName().
|
private |
Definition at line 126 of file Correction.cpp.
References getVMAFilePath(), privateDataPath, and VMAdata.
Referenced by ReadDet().
void PHEMlightdllV5::Correction::setAmbTemp | ( | const double & | value | ) |
Definition at line 286 of file Correction.cpp.
References privateAmbTemp.
Referenced by Correction(), and HelpersPHEMlight5::getClassByName().
void PHEMlightdllV5::Correction::setDETFilePath | ( | const std::string & | value | ) |
Definition at line 58 of file Correction.cpp.
References privateDETFilePath.
Referenced by Correction().
void PHEMlightdllV5::Correction::setTNOxFactor | ( | const double & | value | ) |
Definition at line 294 of file Correction.cpp.
References privateTNOxFactor.
Referenced by IniTNOxfactor().
void PHEMlightdllV5::Correction::setTNOxFilePath | ( | const std::string & | value | ) |
Definition at line 278 of file Correction.cpp.
References privateTNOxFilePath.
Referenced by Correction().
void PHEMlightdllV5::Correction::setUseDet | ( | const bool & | value | ) |
Definition at line 50 of file Correction.cpp.
References privateUseDet.
Referenced by Correction(), and HelpersPHEMlight5::getClassByName().
void PHEMlightdllV5::Correction::setUseTNOx | ( | const bool & | value | ) |
Definition at line 270 of file Correction.cpp.
References privateUseTNOx.
Referenced by Correction(), and HelpersPHEMlight5::getClassByName().
void PHEMlightdllV5::Correction::setVehMileage | ( | const double & | value | ) |
Definition at line 82 of file Correction.cpp.
References privateVehMileage.
Referenced by PHEMlightdllV5::CEPHandler::CalcCorrection(), Correction(), and IniDETfactor().
void PHEMlightdllV5::Correction::setVMAFilePath | ( | const std::string & | value | ) |
Definition at line 66 of file Correction.cpp.
References privateVMAFilePath.
Referenced by Correction().
void PHEMlightdllV5::Correction::setYear | ( | const int & | value | ) |
Definition at line 74 of file Correction.cpp.
References privateYear.
Referenced by Correction(), and HelpersPHEMlight5::getClassByName().
|
private |
Definition at line 105 of file Correction.h.
Referenced by IniDETfactor(), and ReadDETFile().
std::map<std::string, double> PHEMlightdllV5::Correction::DETFactors |
Definition at line 52 of file Correction.h.
Referenced by PHEMlightdllV5::CEPHandler::GetDetTempCor(), and IniDETfactor().
|
private |
Definition at line 45 of file Correction.h.
Referenced by getAmbTemp(), and setAmbTemp().
|
private |
Definition at line 38 of file Correction.h.
Referenced by ReadDETFile(), ReadTNOx(), and ReadVMAFile().
|
private |
Definition at line 39 of file Correction.h.
Referenced by getDETFilePath(), and setDETFilePath().
|
private |
Definition at line 46 of file Correction.h.
Referenced by getTNOxFactor(), and setTNOxFactor().
|
private |
Definition at line 44 of file Correction.h.
Referenced by getTNOxFilePath(), and setTNOxFilePath().
|
private |
Definition at line 37 of file Correction.h.
Referenced by getUseDet(), and setUseDet().
|
private |
Definition at line 43 of file Correction.h.
Referenced by getUseTNOx(), and setUseTNOx().
|
private |
Definition at line 42 of file Correction.h.
Referenced by getVehMileage(), and setVehMileage().
|
private |
Definition at line 40 of file Correction.h.
Referenced by getVMAFilePath(), and setVMAFilePath().
|
private |
Definition at line 41 of file Correction.h.
|
private |
Definition at line 107 of file Correction.h.
Referenced by IniTNOxfactor(), and ReadTNOx().
|
private |
Definition at line 106 of file Correction.h.
Referenced by GetMileage(), and ReadVMAFile().