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

This class contains Energy and Emission objects. Was created for convinience since those two come togeather in many places. More...

Public Member Functions

 Enem (ResourceAmounts _en, EmissionAmounts _em)
 
 Enem (Enem _enem)
 
 Enem (string bottom_normalize_unit)
 
void Addition (Enem e2)
 adds values of a second enem to the current one, replaces += and enhance performance because less new objects are created More...
 
void Clear ()
 
void MulAdd (double p, Enem 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...
 

Static Public Member Functions

static Enem operator* (Enem e1, Parameter e2)
 
static Enem operator* (Enem e1, LightValue e2)
 
static Enem operator* (Parameter e2, Enem e1)
 
static Enem operator* (LightValue e2, Enem e1)
 
static Enem operator* (Enem e1, double e2)
 
static Enem operator* (double e2, Enem e1)
 
static Enem operator+ (Enem e1, Enem e2)
 
static Enem operator- (Enem e1, Enem e2)
 
static Enem operator/ (Enem e1, Parameter e2)
 
static Enem operator/ (Enem e1, LightValue e2)
 
static Enem operator/ (Enem e1, double e2)
 

Public Attributes

EmissionAmounts emissions
 
ResourceAmounts materialsAmounts
 

Properties

string BottomUnitName [get, set]
 

Detailed Description

This class contains Energy and Emission objects. Was created for convinience since those two come togeather in many places.

Member Function Documentation

void Greet.DataStructureV3.ResultsStorage.Enem.Addition ( Enem  e2)

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

Parameters
e2
Returns
void Greet.DataStructureV3.ResultsStorage.Enem.MulAdd ( double  p,
Enem  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

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