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...
|
| 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, IValue > | GroupsToInterfaceDictionary (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...
|
|
| 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 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 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) |
|
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