Greet 2014
Documentation for the GREET 2014 API
 All Classes Namespaces Functions Variables Enumerations Properties Events
Greet.DataStructureV3.ResultsStorage.EmissionAmounts Class Reference

This class is used to store the results of the emissions. We use int,double to speed up the calculation as the emission are always in the unit group mass More...

Inheritance diagram for Greet.DataStructureV3.ResultsStorage.EmissionAmounts:
Greet.DataStructureV3.ResultsStorage.Dict

Public Member Functions

 EmissionAmounts (Dict d)
 
new void Addition (Dict emissionResults)
 adds values of a second EmissionResults to the current one, replaces += and enhance performance because less new objects are created More...
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 
Dictionary< int, IValueGroupsToInterfaceDictionary (GData data)
 Create groups for emissions and calculate the GHG value More...
 
void MulAdd (double p, EmissionAmounts values)
 Adds the values to the current object after mutiplying them by the double p Saves time comparing to results = results + (values * p) as this single operation do not create any new objects for the results More...
 
new string ToString ()
 This is called when we copy to clipboard all results We do not want to see the name of the class there so we return an empty string. More...
 
- Public Member Functions inherited from Greet.DataStructureV3.ResultsStorage.Dict
 Dict (string bottom_unit_name)
 
 Dict (Dict d)
 This constructor is for copying purpose More...
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 
new string ToString ()
 
virtual double Total ()
 

Static Public Member Functions

static EmissionAmounts operator* (EmissionAmounts e1, Parameter e2)
 
static EmissionAmounts operator* (EmissionAmounts e1, LightValue e2)
 
static EmissionAmounts operator* (Parameter e2, EmissionAmounts e1)
 
static EmissionAmounts operator* (LightValue e2, EmissionAmounts e1)
 
static EmissionAmounts operator* (double e1, EmissionAmounts e2)
 
static EmissionAmounts operator* (EmissionAmounts e1, double e2)
 
static EmissionAmounts operator+ (EmissionAmounts e1, EmissionAmounts e2)
 
static EmissionAmounts operator- (EmissionAmounts e1)
 
static EmissionAmounts operator- (EmissionAmounts e1, EmissionAmounts e2)
 
static EmissionAmounts operator/ (EmissionAmounts e1, Parameter e2)
 
static EmissionAmounts operator/ (EmissionAmounts e1, LightValue e2)
 
static EmissionAmounts operator/ (EmissionAmounts e1, double e2)
 
- Static Public Member Functions inherited from Greet.DataStructureV3.ResultsStorage.Dict
static bool EverythingIsOKForAdditionSubstraction (Dict e1, Dict e2)
 
static Dict operator* (Dict e1, double e2)
 
static Dict operator* (Dict e1, Parameter e2)
 
static Dict operator* (Dict e1, LightValue e2)
 
static Dict operator* (Parameter e2, Dict e1)
 
static Dict operator* (LightValue e2, Dict e1)
 
static Dict operator+ (Dict e1, Dict e2)
 
static Dict operator- (Dict e)
 
static Dict operator- (Dict e1, Dict e2)
 
static Dict operator/ (Dict e1, Parameter e2)
 
static Dict operator/ (Dict e1, LightValue e2)
 
static Dict operator/ (Dict e1, double e2)
 

Protected Member Functions

 EmissionAmounts (SerializationInfo info, StreamingContext context)
 
- Protected Member Functions inherited from Greet.DataStructureV3.ResultsStorage.Dict
 Dict (SerializationInfo info, StreamingContext context)
 

Additional Inherited Members

- Properties inherited from Greet.DataStructureV3.ResultsStorage.Dict
string BottomUnitName [get, set]
 

Detailed Description

This class is used to store the results of the emissions. We use int,double to speed up the calculation as the emission are always in the unit group mass

Member Function Documentation

new void Greet.DataStructureV3.ResultsStorage.EmissionAmounts.Addition ( Dict  emissionResults)

adds values of a second EmissionResults to the current one, replaces += and enhance performance because less new objects are created

Parameters
emissionResults
Dictionary<int, IValue> Greet.DataStructureV3.ResultsStorage.EmissionAmounts.GroupsToInterfaceDictionary ( GData  data)

Create groups for emissions and calculate the GHG value

Parameters
data
Returns
void Greet.DataStructureV3.ResultsStorage.EmissionAmounts.MulAdd ( double  p,
EmissionAmounts  values 
)

Adds the values to the current object after mutiplying them by the double p Saves time comparing to results = results + (values * p) as this single operation do not create any new objects for the results

Parameters
p
values
new string Greet.DataStructureV3.ResultsStorage.EmissionAmounts.ToString ( )

This is called when we copy to clipboard all results We do not want to see the name of the class there so we return an empty string.

Returns

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