SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 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)
 Constructor, intializes all members. More...
 

Data Fields

SUMOReal CO
 
SUMOReal CO2
 
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

PollutantsInterface::Emissions::Emissions ( SUMOReal  co2 = 0,
SUMOReal  co = 0,
SUMOReal  hc = 0,
SUMOReal  f = 0,
SUMOReal  nox = 0,
SUMOReal  pmx = 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

Definition at line 85 of file PollutantsInterface.h.

Member Function Documentation

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

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

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

Field Documentation


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