SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PollutantsInterface Class Reference

Helper methods for PHEMlight-based emission computation. More...

#include <PollutantsInterface.h>

Static Public Member Functions

static SUMOReal computeCO (SUMOEmissionClass c, double v, double a, double slope)
 Returns the amount of emitted CO given the vehicle type and state (in mg/s) More...
 
static SUMOReal computeCO2 (SUMOEmissionClass c, double v, double a, double slope)
 Returns the amount of emitted CO2 given the vehicle type and state (in mg/s) More...
 
static SUMOReal computeDefaultCO (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt)
 Returns the amount of emitted CO given the vehicle type and default values for the state (in mg) More...
 
static SUMOReal computeDefaultCO2 (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt)
 Returns the amount of emitted CO2 given the vehicle type and default values for the state (in mg) More...
 
static SUMOReal computeDefaultFuel (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt)
 Returns the amount of fuel given the vehicle type and default values for the state (in ml) More...
 
static SUMOReal computeDefaultHC (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt)
 Returns the amount of emitted HC given the vehicle type and default values for the state (in mg) More...
 
static SUMOReal computeDefaultNOx (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt)
 Returns the amount of emitted NOx given the vehicle type and default values for the state (in mg) More...
 
static SUMOReal computeDefaultPMx (SUMOEmissionClass c, double v, double a, double slope, SUMOReal tt)
 Returns the amount of emitted PMx given the vehicle type and default values for the state (in mg) More...
 
static SUMOReal computeFuel (SUMOEmissionClass c, double v, double a, double slope)
 Returns the amount of consumed fuel given the vehicle type and state (in ml/s) More...
 
static SUMOReal computeHC (SUMOEmissionClass c, double v, double a, double slope)
 Returns the amount of emitted HC given the vehicle type and state (in mg/s) More...
 
static SUMOReal computeNOx (SUMOEmissionClass c, double v, double a, double slope)
 Returns the amount of emitted NOx given the vehicle type and state (in mg/s) More...
 
static SUMOReal computePMx (SUMOEmissionClass c, double v, double a, double slope)
 Returns the amount of emitted PMx given the vehicle type and state (in mg/s) More...
 
static SUMOReal getMaxAccel (SUMOEmissionClass c, double v, double a, double slope)
 Returns the maximum possible acceleration. More...
 

Detailed Description

Helper methods for PHEMlight-based emission computation.

Definition at line 48 of file PollutantsInterface.h.

Member Function Documentation

SUMOReal PollutantsInterface::computeCO ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of emitted CO given the vehicle type and state (in mg/s)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of CO emitted by the given vehicle class when moving with the given velocity and acceleration [mg/s]

Definition at line 58 of file PollutantsInterface.cpp.

References HelpersHBEFA::computeCO(), HelpersPHEMlight::computeCO(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::buildTimeLines(), MSVehicle::getCOEmissions(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().

SUMOReal PollutantsInterface::computeCO2 ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of emitted CO2 given the vehicle type and state (in mg/s)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of CO2 emitted by the given vehicle class when moving with the given velocity and acceleration [mg/s]

Definition at line 70 of file PollutantsInterface.cpp.

References HelpersHBEFA::computeCO2(), HelpersPHEMlight::computeCO2(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::buildTimeLines(), MSVehicle::getCO2Emissions(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().

SUMOReal PollutantsInterface::computeDefaultCO ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope,
SUMOReal  tt 
)
static

Returns the amount of emitted CO given the vehicle type and default values for the state (in mg)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's average velocity
[in]aThe vehicle's average acceleration
[in]slopeThe road's slope at vehicle's position [°]
in]tt the time the vehicle travels
Returns
The amount of CO emitted by the given vehicle class [mg]

Definition at line 132 of file PollutantsInterface.cpp.

References HelpersHBEFA::computeCO(), HelpersPHEMlight::computeCO(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::getCOEffort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().

SUMOReal PollutantsInterface::computeDefaultCO2 ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope,
SUMOReal  tt 
)
static

Returns the amount of emitted CO2 given the vehicle type and default values for the state (in mg)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's average velocity
[in]aThe vehicle's average acceleration
[in]slopeThe road's slope at vehicle's position [°]
in]tt the time the vehicle travels
Returns
The amount of CO2 emitted by the given vehicle class [mg]

Definition at line 144 of file PollutantsInterface.cpp.

References HelpersHBEFA::computeCO2(), HelpersPHEMlight::computeCO2(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::getCO2Effort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().

SUMOReal PollutantsInterface::computeDefaultFuel ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope,
SUMOReal  tt 
)
static

Returns the amount of fuel given the vehicle type and default values for the state (in ml)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's average velocity
[in]aThe vehicle's average acceleration
[in]slopeThe road's slope at vehicle's position [°]
in]tt the time the vehicle travels
Returns
The amount of fuel emitted by the given vehicle class [ml]

Definition at line 192 of file PollutantsInterface.cpp.

References HelpersHBEFA::computeFuel(), HelpersPHEMlight::computeFuel(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::getFuelEffort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().

SUMOReal PollutantsInterface::computeDefaultHC ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope,
SUMOReal  tt 
)
static

Returns the amount of emitted HC given the vehicle type and default values for the state (in mg)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's average velocity
[in]aThe vehicle's average acceleration
[in]slopeThe road's slope at vehicle's position [°]
in]tt the time the vehicle travels
Returns
The amount of HC emitted by the given vehicle class [mg]

Definition at line 156 of file PollutantsInterface.cpp.

References HelpersHBEFA::computeHC(), HelpersPHEMlight::computeHC(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::getHCEffort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().

SUMOReal PollutantsInterface::computeDefaultNOx ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope,
SUMOReal  tt 
)
static

Returns the amount of emitted NOx given the vehicle type and default values for the state (in mg)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's average velocity
[in]aThe vehicle's average acceleration
[in]slopeThe road's slope at vehicle's position [°]
in]tt the time the vehicle travels
Returns
The amount of NOx emitted by the given vehicle class [mg]

Definition at line 168 of file PollutantsInterface.cpp.

References HelpersHBEFA::computeNOx(), HelpersPHEMlight::computeNOx(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::getNOxEffort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().

SUMOReal PollutantsInterface::computeDefaultPMx ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope,
SUMOReal  tt 
)
static

Returns the amount of emitted PMx given the vehicle type and default values for the state (in mg)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's average velocity
[in]aThe vehicle's average acceleration
[in]slopeThe road's slope at vehicle's position [°]
in]tt the time the vehicle travels
Returns
The amount of PMx emitted by the given vehicle class [mg]

Definition at line 180 of file PollutantsInterface.cpp.

References HelpersHBEFA::computePMx(), HelpersPHEMlight::computePMx(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::getPMxEffort(), and MSMeanData_Emissions::MSLaneMeanDataValues::write().

SUMOReal PollutantsInterface::computeFuel ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of consumed fuel given the vehicle type and state (in ml/s)

As the general function returns mg/s, this implementation scales with 790 (average density of fuel)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of fuel consumed by the given vehicle class when moving with the given velocity and acceleration [ml/s]

Definition at line 118 of file PollutantsInterface.cpp.

References HelpersHBEFA::computeFuel(), HelpersPHEMlight::computeFuel(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::buildTimeLines(), MSVehicle::getFuelConsumption(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().

SUMOReal PollutantsInterface::computeHC ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of emitted HC given the vehicle type and state (in mg/s)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of HC emitted by the given vehicle class when moving with the given velocity and acceleration [mg/s]

Definition at line 82 of file PollutantsInterface.cpp.

References HelpersHBEFA::computeHC(), HelpersPHEMlight::computeHC(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::buildTimeLines(), MSVehicle::getHCEmissions(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().

SUMOReal PollutantsInterface::computeNOx ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of emitted NOx given the vehicle type and state (in mg/s)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of NOx emitted by the given vehicle class when moving with the given velocity and acceleration [mg/s]

Definition at line 94 of file PollutantsInterface.cpp.

References HelpersHBEFA::computeNOx(), HelpersPHEMlight::computeNOx(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::buildTimeLines(), MSVehicle::getNOxEmissions(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().

SUMOReal PollutantsInterface::computePMx ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the amount of emitted PMx given the vehicle type and state (in mg/s)

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The amount of PMx emitted by the given vehicle class when moving with the given velocity and acceleration [mg/s]

Definition at line 106 of file PollutantsInterface.cpp.

References HelpersHBEFA::computePMx(), HelpersPHEMlight::computePMx(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.

Referenced by ROEdge::buildTimeLines(), MSVehicle::getPMxEmissions(), main(), MSDevice_Emissions::notifyMove(), MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal(), and single().

SUMOReal PollutantsInterface::getMaxAccel ( SUMOEmissionClass  c,
double  v,
double  a,
double  slope 
)
static

Returns the maximum possible acceleration.

Parameters
[in]cThe vehicle emission class
[in]vThe vehicle's current velocity
[in]aThe vehicle's current acceleration
[in]slopeThe road's slope at vehicle's position [°]
Returns
The maximum possible acceleration

Definition at line 46 of file PollutantsInterface.cpp.

References HelpersPHEMlight::getMaxAccel(), SVE_META_HBEFA21_END, and SVE_META_PHEMLIGHT_END.


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