SumoXMLAttr
Numbers representing SUMO-XML - attributes.
An upper class for objects with additional parameters.
double getDouble(SumoXMLAttr attr) const
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 EnergyParams *param) const
Computes the emitted pollutant amount using the given speed and acceleration.
double acceleration(const SUMOEmissionClass c, const PollutantsInterface::EmissionType e, const double v, const double P, const double slope, const EnergyParams *param) const
Computes the achievable acceleration using the given speed and amount of consumed electric power.
HelpersEnergy()
Constructor (initializes myEmissionClassStrings)
EnergyParams myDefaultParameter
The default parameter.
void initDefaultParameter() const
static const int ENERGY_BASE
double getDefaultParam(SumoXMLAttr attr) const
zero emission model, used as superclass for the other model helpers
EmissionType
Enumerating all emission types, including fuel.