![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Storage for collected values of all emission types. More...
#include <PollutantsInterface.h>
Public Member Functions | |
| void | addScaled (const Emissions &a, const double scale=1.) |
| Add the values of the other struct to this one, scaling the values if needed. | |
| Emissions (double co2=0, double co=0, double hc=0, double f=0, double nox=0, double pmx=0, double elec=0) | |
| Constructor, intializes all members. | |
Data Fields | |
| double | CO2 |
| emission types | |
| double | CO |
| double | HC |
| double | fuel |
| double | NOx |
| double | PMx |
| double | electricity |
Storage for collected values of all emission types.
Definition at line 62 of file PollutantsInterface.h.
| PollutantsInterface::Emissions::Emissions | ( | double | co2 = 0, |
| double | co = 0, |
||
| double | hc = 0, |
||
| double | f = 0, |
||
| double | nox = 0, |
||
| double | pmx = 0, |
||
| double | elec = 0 |
||
| ) |
Constructor, intializes all members.
| [in] | co2 | initial value for CO2, defaults to 0 |
| [in] | co | initial value for CO, defaults to 0 |
| [in] | hc | initial value for HC, defaults to 0 |
| [in] | f | initial value for fuel, defaults to 0 |
| [in] | nox | initial value for NOx, defaults to 0 |
| [in] | pmx | initial value for PMx, defaults to 0 |
| [in] | elec | initial value for electricity, defaults to 0 |
Definition at line 72 of file PollutantsInterface.cpp.
| void PollutantsInterface::Emissions::addScaled | ( | const Emissions & | a, |
| const double | scale = 1. |
||
| ) |
Add the values of the other struct to this one, scaling the values if needed.
| [in] | a | the other emission valuess |
| [in] | scale | scaling factor, defaulting to 1 (no scaling) |
Definition at line 83 of file PollutantsInterface.cpp.
References PollutantsInterface::CO, CO, PollutantsInterface::CO2, CO2, electricity, fuel, PollutantsInterface::HC, HC, NOx, and PMx.
Referenced by MSMeanData_Emissions::MSLaneMeanDataValues::addTo(), MSDevice_Emissions::notifyIdle(), MSDevice_Emissions::notifyMove(), MSDevice_Emissions::notifyMoveInternal(), and MSEmissionExport::writeEmissions().
| double PollutantsInterface::Emissions::CO |
Definition at line 83 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::writeEmissions(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::CO2 |
emission types
Definition at line 82 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::writeEmissions(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::electricity |
Definition at line 88 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::writeEmissions(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::fuel |
Definition at line 85 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::writeEmissions(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::HC |
Definition at line 84 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::writeEmissions(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::NOx |
Definition at line 86 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::writeEmissions(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::PMx |
Definition at line 87 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::writeEmissions(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().