![]() |
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. More... | |
| 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. More... | |
Data Fields | |
| double | CO |
| double | CO2 |
| double | electricity |
| double | fuel |
| double | HC |
| double | NOx |
| double | PMx |
Storage for collected values of all emission types.
Definition at line 61 of file PollutantsInterface.h.
|
inline |
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 79 of file PollutantsInterface.h.
|
inline |
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 87 of file PollutantsInterface.h.
References CO, CO2, electricity, fuel, HC, NOx, and PMx.
Referenced by MSMeanData_Emissions::MSLaneMeanDataValues::addTo(), MSDevice_Emissions::notifyMove(), and MSDevice_Emissions::notifyMoveInternal().
| double PollutantsInterface::Emissions::CO |
Definition at line 63 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::write(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::CO2 |
Definition at line 62 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::write(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::electricity |
Definition at line 68 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::write(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::fuel |
Definition at line 65 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::write(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::HC |
Definition at line 64 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::write(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::NOx |
Definition at line 66 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::write(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().
| double PollutantsInterface::Emissions::PMx |
Definition at line 67 of file PollutantsInterface.h.
Referenced by addScaled(), MSDevice_Emissions::generateOutput(), single(), MSEmissionExport::write(), TrajectoriesHandler::writeEmissions(), MSFullExport::writeVehicles(), and TrajectoriesHandler::writeXMLEmissions().