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

This class is used to store amount of different resources which might be represented using different units. We might have values in joules, cubic meters, or kilograms in this dictionary. More...

Public Member Functions

 ResourceAmounts (LightValue val)
 
void AddFuel (ResourceData rd, LightValue amount)
 Adds a quantity of material to the fuels/groups dictionaries Tries to convert to energy whenever it is possible for the material More...
 
void AddFuel (int material_id, LightValue amount, ResourceData material_id_for_conversion)
 Adds a quantity of material to the fuels/groups dictionaries Tries to convert to energy whenever it is possible for the material id given as a parameter for conversion More...
 
void Clear ()
 
string GetCommonValueAbbrev ()
 
override string ToString ()
 

Static Public Member Functions

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

Public Attributes

DVDict Resources
 

Properties

string BottomUnitName [get, set]
 

Detailed Description

This class is used to store amount of different resources which might be represented using different units. We might have values in joules, cubic meters, or kilograms in this dictionary.

Member Function Documentation

void Greet.DataStructureV3.ResultsStorage.ResourceAmounts.AddFuel ( ResourceData  rd,
LightValue  amount 
)

Adds a quantity of material to the fuels/groups dictionaries Tries to convert to energy whenever it is possible for the material

Parameters
material_id
amount
void Greet.DataStructureV3.ResultsStorage.ResourceAmounts.AddFuel ( int  material_id,
LightValue  amount,
ResourceData  material_id_for_conversion 
)

Adds a quantity of material to the fuels/groups dictionaries Tries to convert to energy whenever it is possible for the material id given as a parameter for conversion

Parameters
material_id
amount

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