Eclipse SUMO - Simulation of Urban MObility
PHEMlightdll::CEPHandler Class Reference

#include <CEPHandler.h>

Collaboration diagram for PHEMlightdll::CEPHandler:

Public Member Functions

 CEPHandler ()
 
 CEPHandler ()
 
bool GetCEP (const std::vector< std::string > &DataPath, Helpers *Helper)
 
bool GetCEP (string DataPath, Helpers Helper)
 
const std::map< std::string, CEP * > & getCEPS () const
 
bool GetFleetCEP (string DataPath, string AggClass, Helpers Helper)
 
bool ReadFleetShares (string DataPath, Helpers Helper)
 

Properties

Dictionary< string, CEPCEPS [get]
 
Dictionary< string, Dictionary< string, double > > FleetShares [get]
 

Private Member Functions

bool Load (const std::vector< std::string > &DataPath, Helpers *Helper)
 
bool Load (string DataPath, Helpers Helper)
 
bool ReadEmissionData (bool readFC, const std::vector< std::string > &DataPath, const std::string &emissionClass, Helpers *Helper, std::vector< std::string > &header, std::vector< std::vector< double > > &matrix, std::vector< double > &idlingValues)
 
bool ReadEmissionData (bool readFC, string DataPath, string emissionClass, Helpers Helper, out List< string > header, out List< List< double >> matrix, out List< double > idlingValues)
 
std::string ReadLine (std::ifstream &s)
 
string ReadLine (StreamReader s)
 
bool ReadVehicleFile (const std::vector< std::string > &DataPath, const std::string &emissionClass, Helpers *Helper, double &vehicleMass, double &vehicleLoading, double &vehicleMassRot, double &crossArea, double &cWValue, double &f0, double &f1, double &f2, double &f3, double &f4, double &axleRatio, double &auxPower, double &ratedPower, double &engineIdlingSpeed, double &engineRatedSpeed, double &effectiveWheelDiameter, std::vector< double > &transmissionGearRatios, 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)
 
bool ReadVehicleFile (string DataPath, string emissionClass, Helpers Helper, out double vehicleMass, out double vehicleLoading, out double vehicleMassRot, out double crossArea, out double cWValue, out double f0, out double f1, out double f2, out double f3, out double f4, out double axleRatio, out double auxPower, out double ratedPower, out double engineIdlingSpeed, out double engineRatedSpeed, out double effectiveWheelDiameter, out List< double > transmissionGearRatios, out string vehicleMassType, out string vehicleFuelType, out double pNormV0, out double pNormP0, out double pNormV1, out double pNormP1, out List< List< double >> matrixSpeedInertiaTable, out List< List< double >> normedDragTable)
 
std::vector< std::string > split (const std::string &s, char delim)
 
List< string > split (string s, char delim)
 
double todouble (const std::string &s)
 
double todouble (string s)
 
std::vector< double > todoubleList (const std::vector< std::string > &s)
 
List< double > todoubleList (List< string > s)
 

Private Attributes

std::map< std::string, CEP * > _ceps
 
Dictionary< string, CEP_ceps
 
Dictionary< string, Dictionary< string, double > > _fleetShares
 

Detailed Description

Definition at line 35 of file CEPHandler.h.

Constructor & Destructor Documentation

◆ CEPHandler() [1/2]

PHEMlightdll::CEPHandler::CEPHandler ( )

Definition at line 31 of file CEPHandler.cpp.

References _ceps.

◆ CEPHandler() [2/2]

PHEMlightdll.CEPHandler.CEPHandler ( )
inline

Definition at line 19 of file CEPHandler.cs.

References _ceps.

Member Function Documentation

◆ GetCEP() [1/2]

bool PHEMlightdll::CEPHandler::GetCEP ( const std::vector< std::string > &  DataPath,
Helpers Helper 
)

◆ GetCEP() [2/2]

bool PHEMlightdll.CEPHandler.GetCEP ( string  DataPath,
Helpers  Helper 
)
inline

Definition at line 58 of file CEPHandler.cs.

References CEPS, PHEMlightdll::Helpers.gClass, and Load().

◆ getCEPS()

const std::map< std::string, CEP * > & PHEMlightdll::CEPHandler::getCEPS ( ) const

Definition at line 35 of file CEPHandler.cpp.

References _ceps.

Referenced by GetCEP(), and HelpersPHEMlight::getClassByName().

◆ GetFleetCEP()

bool PHEMlightdll.CEPHandler.GetFleetCEP ( string  DataPath,
string  AggClass,
Helpers  Helper 
)
inline

◆ Load() [1/2]

bool PHEMlightdll::CEPHandler::Load ( const std::vector< std::string > &  DataPath,
Helpers Helper 
)
private

◆ Load() [2/2]

bool PHEMlightdll.CEPHandler.Load ( string  DataPath,
Helpers  Helper 
)
inlineprivate

◆ ReadEmissionData() [1/2]

bool PHEMlightdll::CEPHandler::ReadEmissionData ( bool  readFC,
const std::vector< std::string > &  DataPath,
const std::string &  emissionClass,
Helpers Helper,
std::vector< std::string > &  header,
std::vector< std::vector< double > > &  matrix,
std::vector< double > &  idlingValues 
)
private

Definition at line 295 of file CEPHandler.cpp.

References ReadLine(), PHEMlightdll::Helpers::setErrMsg(), split(), and todoubleList().

Referenced by Load().

◆ ReadEmissionData() [2/2]

bool PHEMlightdll.CEPHandler.ReadEmissionData ( bool  readFC,
string  DataPath,
string  emissionClass,
Helpers  Helper,
out List< string >  header,
out List< List< double >>  matrix,
out List< double >  idlingValues 
)
inlineprivate

Definition at line 431 of file CEPHandler.cs.

References PHEMlightdll::Helpers.ErrMsg, ReadLine(), split(), and todoubleList().

◆ ReadFleetShares()

bool PHEMlightdll.CEPHandler.ReadFleetShares ( string  DataPath,
Helpers  Helper 
)
inline

◆ ReadLine() [1/2]

std::string PHEMlightdll::CEPHandler::ReadLine ( std::ifstream &  s)
private

Definition at line 373 of file CEPHandler.cpp.

Referenced by ReadEmissionData(), ReadFleetShares(), and ReadVehicleFile().

◆ ReadLine() [2/2]

string PHEMlightdll.CEPHandler.ReadLine ( StreamReader  s)
inlineprivate

Definition at line 552 of file CEPHandler.cs.

◆ ReadVehicleFile() [1/2]

bool PHEMlightdll::CEPHandler::ReadVehicleFile ( const std::vector< std::string > &  DataPath,
const std::string &  emissionClass,
Helpers Helper,
double &  vehicleMass,
double &  vehicleLoading,
double &  vehicleMassRot,
double &  crossArea,
double &  cWValue,
double &  f0,
double &  f1,
double &  f2,
double &  f3,
double &  f4,
double &  axleRatio,
double &  auxPower,
double &  ratedPower,
double &  engineIdlingSpeed,
double &  engineRatedSpeed,
double &  effectiveWheelDiameter,
std::vector< double > &  transmissionGearRatios,
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 
)
private

◆ ReadVehicleFile() [2/2]

bool PHEMlightdll.CEPHandler.ReadVehicleFile ( string  DataPath,
string  emissionClass,
Helpers  Helper,
out double  vehicleMass,
out double  vehicleLoading,
out double  vehicleMassRot,
out double  crossArea,
out double  cWValue,
out double  f0,
out double  f1,
out double  f2,
out double  f3,
out double  f4,
out double  axleRatio,
out double  auxPower,
out double  ratedPower,
out double  engineIdlingSpeed,
out double  engineRatedSpeed,
out double  effectiveWheelDiameter,
out List< double >  transmissionGearRatios,
out string  vehicleMassType,
out string  vehicleFuelType,
out double  pNormV0,
out double  pNormP0,
out double  pNormV1,
out double  pNormP1,
out List< List< double >>  matrixSpeedInertiaTable,
out List< List< double >>  normedDragTable 
)
inlineprivate

◆ split() [1/2]

std::vector< std::string > PHEMlightdll::CEPHandler::split ( const std::string &  s,
char  delim 
)
private

Definition at line 348 of file CEPHandler.cpp.

Referenced by ReadEmissionData(), ReadFleetShares(), and ReadVehicleFile().

◆ split() [2/2]

List<string> PHEMlightdll.CEPHandler.split ( string  s,
char  delim 
)
inlineprivate

Definition at line 534 of file CEPHandler.cs.

◆ todouble() [1/2]

double PHEMlightdll::CEPHandler::todouble ( const std::string &  s)
private

Definition at line 358 of file CEPHandler.cpp.

Referenced by ReadFleetShares(), ReadVehicleFile(), and todoubleList().

◆ todouble() [2/2]

double PHEMlightdll.CEPHandler.todouble ( string  s)
inlineprivate

Definition at line 540 of file CEPHandler.cs.

◆ todoubleList() [1/2]

std::vector< double > PHEMlightdll::CEPHandler::todoubleList ( const std::vector< std::string > &  s)
private

Definition at line 365 of file CEPHandler.cpp.

References todouble().

Referenced by ReadEmissionData(), and ReadVehicleFile().

◆ todoubleList() [2/2]

List<double> PHEMlightdll.CEPHandler.todoubleList ( List< string >  s)
inlineprivate

Definition at line 546 of file CEPHandler.cs.

References todouble().

Field Documentation

◆ _ceps [1/2]

std::map<std::string, CEP*> PHEMlightdll::CEPHandler::_ceps
private

Definition at line 48 of file CEPHandler.h.

Referenced by CEPHandler(), getCEPS(), GetFleetCEP(), and Load().

◆ _ceps [2/2]

Dictionary<string, CEP> PHEMlightdll.CEPHandler._ceps
private

Definition at line 30 of file CEPHandler.cs.

◆ _fleetShares

Dictionary<string, Dictionary<string, double> > PHEMlightdll.CEPHandler._fleetShares
private

Definition at line 42 of file CEPHandler.cs.

Referenced by ReadFleetShares().

Property Documentation

◆ CEPS

Dictionary<string, CEP> PHEMlightdll.CEPHandler.CEPS
get

◆ FleetShares

Dictionary<string, Dictionary<string, double> > PHEMlightdll.CEPHandler.FleetShares
get

Definition at line 43 of file CEPHandler.cs.

Referenced by GetFleetCEP(), and ReadFleetShares().


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