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

Storage for collected values of all emission types. More...

#include <PollutantsInterface.h>

Collaboration diagram for PollutantsInterface::Emissions:
Collaboration graph

Public Member Functions

void addScaled (const Emissions &a, const SUMOReal scale=1.)
 Add the values of the other struct to this one, scaling the values if needed. More...
 
 Emissions (SUMOReal co2=0, SUMOReal co=0, SUMOReal hc=0, SUMOReal f=0, SUMOReal nox=0, SUMOReal pmx=0, SUMOReal elec=0)
 Constructor, intializes all members. More...
 

Data Fields

SUMOReal CO
 
SUMOReal CO2
 
SUMOReal electricity
 
SUMOReal fuel
 
SUMOReal HC
 
SUMOReal NOx
 
SUMOReal PMx
 

Detailed Description

Storage for collected values of all emission types.

Definition at line 69 of file PollutantsInterface.h.

Constructor & Destructor Documentation

§ Emissions()

PollutantsInterface::Emissions::Emissions ( SUMOReal  co2 = 0,
SUMOReal  co = 0,
SUMOReal  hc = 0,
SUMOReal  f = 0,
SUMOReal  nox = 0,
SUMOReal  pmx = 0,
SUMOReal  elec = 0 
)
inline

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 87 of file PollutantsInterface.h.

Member Function Documentation

§ addScaled()

void PollutantsInterface::Emissions::addScaled ( const Emissions a,
const SUMOReal  scale = 1. 
)
inline

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 95 of file PollutantsInterface.h.

References CO, CO2, electricity, fuel, HC, NOx, and PMx.

Referenced by MSMeanData_Emissions::MSLaneMeanDataValues::addTo(), MSDevice_Emissions::notifyMove(), and MSMeanData_Emissions::MSLaneMeanDataValues::notifyMoveInternal().

Field Documentation

§ CO

§ CO2

§ electricity

§ fuel

§ HC

§ NOx

§ PMx


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