100 const std::string& fuel =
getFuel(c);
101 if (fuel !=
"Electricity" && v >
ZERO_SPEED_ACCURACY && a < getCoastingDecel(c, v, a, slope, param)) {
106 if (e == PollutantsInterface::FUEL && myVolumetricFuel) {
107 if (fuel ==
"Diesel") {
109 }
else if (fuel ==
"Gasoline") {
115 double result = (f[0] + f[1] * v + f[2] * a2 + f[3] * v * v + f[4] * v * v * v + f[5] * a2 * v + f[6] * a2 * v * v) / scale;
116 if (e != PollutantsInterface::ELEC) {
118 result =
MAX2(0.0, result);
const double ZERO_SPEED_ACCURACY
An upper class for objects with additional parameters.
bool isEngineOff() const
Returns the state of the engine when the vehicle is not moving.
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.
static const int HBEFA4_BASE
SUMOEmissionClass getClass(const SUMOEmissionClass base, const std::string &vClass, const std::string &fuel, const std::string &eClass, const double weight) const
Returns the emission class described by the given parameters.
std::string getAmitranVehicleClass(const SUMOEmissionClass c) const
Returns the vehicle class described by this emission class as described in the Amitran interface (Pas...
std::string getFuel(const SUMOEmissionClass c) const
Returns the fuel type described by this emission class as described in the Amitran interface (Gasolin...
HelpersHBEFA4()
Constructor (initializes myEmissionClassStrings).
int getEuroClass(const SUMOEmissionClass c) const
Returns the Euro emission class described by this emission class as described in the Amitran interfac...
static double myFunctionParameter[833][7][7]
The function parameter.
Helper methods for PHEMlight-based emission computation.