Eclipse SUMO - Simulation of Urban MObility
PollutantsInterface::Emissions Struct Reference

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 CO2
 emission types More...
 
double CO
 
double HC
 
double fuel
 
double NOx
 
double PMx
 
double electricity
 

Detailed Description

Storage for collected values of all emission types.

Definition at line 62 of file PollutantsInterface.h.

Constructor & Destructor Documentation

◆ Emissions()

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.

Parameters
[in]co2initial value for CO2, defaults to 0
[in]coinitial value for CO, defaults to 0
[in]hcinitial value for HC, defaults to 0
[in]finitial value for fuel, defaults to 0
[in]noxinitial value for NOx, defaults to 0
[in]pmxinitial value for PMx, defaults to 0
[in]elecinitial value for electricity, defaults to 0

Definition at line 71 of file PollutantsInterface.cpp.

Member Function Documentation

◆ addScaled()

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.

Parameters
[in]athe other emission valuess
[in]scalescaling factor, defaulting to 1 (no scaling)

Definition at line 82 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::write().

Here is the caller graph for this function:

Field Documentation

◆ CO

◆ CO2

◆ electricity

◆ fuel

◆ HC

◆ NOx

◆ PMx


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