87 bool ReadVehicleFile(
const std::vector<std::string>& path,
const std::string& emissionClass,
89 double& vehicleLoading,
90 double& vehicleMassRot,
100 double& engineIdlingSpeed,
101 double& engineRatedSpeed,
102 double& effectiveWheelDiameter,
103 std::string& vehicleMassType,
104 std::string& vehicleFuelType,
109 std::vector< std::vector<double> >& matrixSpeedInertiaTable,
110 std::vector< std::vector<double> >& normedDragTable);
121 bool ReadEmissionData(
bool readFC,
const std::vector<std::string>& path,
const std::string& emissionClass,
122 std::vector<std::string>& header, std::vector<std::vector<double> >& matrix, std::vector<double>& idlingValues);
127 std::map<SUMOEmissionClass, PHEMCEP*>
_ceps;
Data Handler for all CEP emission and vehicle Data.
PHEMCEPHandler()
Implementation of Singelton pattern private (copy) constructor and =operator to avoid more than one i...
void operator=(PHEMCEPHandler const &)
PHEMCEPHandler(PHEMCEPHandler const &)
static PHEMCEPHandler & getHandlerInstance()
Implementatio of Singelton pattern.
~PHEMCEPHandler()
Destructor.
PHEMCEP * GetCep(SUMOEmissionClass emissionClass)
Returns the CEP data for a PHEM emission class.
bool Load(SUMOEmissionClass emissionClass, const std::string &emissionClassIdentifier)
Helper method to load CEP and vehicle files from file system.
bool ReadVehicleFile(const std::vector< std::string > &path, const std::string &emissionClass, double &vehicleMass, double &vehicleLoading, double &vehicleMassRot, double &crossArea, double &cWValue, double &f0, double &f1, double &f2, double &f3, double &f4, double &axleRatio, double &ratedPower, double &engineIdlingSpeed, double &engineRatedSpeed, double &effectiveWheelDiameter, std::string &vehicleMassType, std::string &vehicleFuelType, double &pNormV0, double &pNormP0, double &pNormV1, double &pNormP1, std::vector< std::vector< double > > &matrixSpeedInertiaTable, std::vector< std::vector< double > > &normedDragTable)
Helper method to read a vehicle file from file system.
std::map< SUMOEmissionClass, PHEMCEP * > _ceps
bijection between PHEMEmissionClass and CEPs
bool ReadEmissionData(bool readFC, const std::vector< std::string > &path, const std::string &emissionClass, std::vector< std::string > &header, std::vector< std::vector< double > > &matrix, std::vector< double > &idlingValues)
Helper method to read a CEP file from file system.
Data Handler for a single CEP emission data set.