Helper methods for energy-based electricity consumption computation based on the battery device.
double compute(const SUMOEmissionClass c, const PollutantsInterface::EmissionType e, const double v, const double a, const double slope, const std::map< int, double > *param) const
Computes the emitted pollutant amount using the given speed and acceleration.
std::map< int, double > myDefaultParameter
The default parameter.
HelpersEnergy()
Constructor (initializes myEmissionClassStrings)
double acceleration(const SUMOEmissionClass c, const PollutantsInterface::EmissionType e, const double v, const double P, const double slope, const std::map< int, double > *param) const
Computes the achievable acceleration using the given speed and amount of consumed electric power.
static const int ENERGY_BASE
double getDefaultParam(int paramKey) const
zero emission model, used as superclass for the other model helpers
EmissionType
Enumerating all emission types, including fuel.