20 #ifndef PHEMCEPHandler_h
21 #define PHEMCEPHandler_h
93 bool ReadVehicleFile(
const std::string& path,
const std::string& emissionClass,
94 double& vehicleMass,
double& vehicleLoading,
double& vehicleMassRot,
95 double& crossArea,
double& cWValue,
96 double& f0,
double& f1,
double& f2,
double& f3,
double& f4,
double& ratedPower, std::string& vehicleMassType, std::string& vehicleFuelType,
97 double& pNormV0,
double& pNormP0,
double& pNormV1,
double& pNormP1, std::vector< std::vector<double> >& matrixRotFactor);
107 bool ReadEmissionData(
bool readFC,
const std::string& path,
const std::string& emissionClass,
108 std::vector<std::string>& header, std::vector<std::vector<double> >& matrix);
113 std::map<SUMOEmissionClass, PHEMCEP*>
_ceps;
Data Handler for a single CEP emission data set.
std::map< SUMOEmissionClass, PHEMCEP * > _ceps
bijection between PHEMEmissionClass and CEPs
bool ReadEmissionData(bool readFC, const std::string &path, const std::string &emissionClass, std::vector< std::string > &header, std::vector< std::vector< double > > &matrix)
Helper method to read a CEP file from file system.
bool Load(SUMOEmissionClass emissionClass)
Helper method to load CEP and vehicle files from file system.
Data Handler for all CEP emission and vehicle Data.
bool ReadVehicleFile(const 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 &ratedPower, std::string &vehicleMassType, std::string &vehicleFuelType, double &pNormV0, double &pNormP0, double &pNormV1, double &pNormP1, std::vector< std::vector< double > > &matrixRotFactor)
Helper method to read a vehicle file from file system.
static PHEMCEPHandler & getHandlerInstance()
Implementatio of Singelton pattern.
SUMOEmissionClass
Definition of vehicle emission classes.
~PHEMCEPHandler()
Destructor.
void operator=(PHEMCEPHandler const &)
PHEMCEPHandler()
Implementation of Singelton pattern private (copy) constructor and =operator to avoid more than one i...
PHEMCEP * GetCep(SUMOEmissionClass emissionClass)
Returns the CEP data for a PHEM emission class.