Greet 2014
Documentation for the GREET 2014 API
 All Classes Namespaces Functions Variables Enumerations Properties Events
Greet.Model.Calculator Class Reference

Public Member Functions

delegate void CalculationStackDone ()
 
MonitorState CheckMonitorLimit (AMonitor monitor, int runNumber)
 
EIs GetEI (GData project, int modeId, int resourceTransported, int fuel)
 Checks weather or not some default EIs needs to be created or re-calculated Then returns a completed EI object. More...
 
delegate void MoveOnEvent ()
 
void RunCalculations (GProject project, params Greet.DataStructureV3.Interfaces.Enumerators.CalculationType[] StackRuns)
 Run the asked calculations More...
 
void TechnologyBalanceAndCopyEFs (GProject project, TechnologyData td)
 Calculates CO2 and SOx balance for this particular technology Do the job for all the years More...
 

Static Public Member Functions

static LightValue ReturnMonitoredCurrentValue (GData data, Greet.DataStructureV3.Monitor monitor)
 Returned the value corresponding to a monitor item for the current calculation results More...
 
static LightValue TotalEnergy (Dictionary< int, IValue > resultValues)
 

Public Attributes

AutoResetEvent autoEvent
 
CalculationStackDone CalculationDoneEvent
 
bool CheckMonitorLimits = true
 If true monitor min and max will be checked, otherwise they will not It can be useful to deactivate this feature while running the stochastic tool More...
 
MoveOnEvent MoveOn
 
MoveOnEvent MoveOnTillTheEnd
 

Properties

int CalculationsCurrentIteration [get, set]
 
CalculationRuns CalculationsRun [get, set]
 
List< string > Exceptions [get]
 

Member Function Documentation

EIs Greet.Model.Calculator.GetEI ( GData  project,
int  modeId,
int  resourceTransported,
int  fuel 
)

Checks weather or not some default EIs needs to be created or re-calculated Then returns a completed EI object.

Parameters
modeIdThe mode ID for which we want to get the EI
resourceTransportedThe transported resource for which this EI is calculated
fuelThe fuel used by the mode for which this EI is calculated
Returns
static LightValue Greet.Model.Calculator.ReturnMonitoredCurrentValue ( GData  data,
Greet.DataStructureV3.Monitor  monitor 
)
static

Returned the value corresponding to a monitor item for the current calculation results

Parameters
dataData object in which we are looking for results
monitorDefinition of the monitored item for which we are trying to get the current calculated value
Returns
Current calculated value or null
void Greet.Model.Calculator.RunCalculations ( GProject  project,
params Greet.DataStructureV3.Interfaces.Enumerators.CalculationType[]  StackRuns 
)

Run the asked calculations

Parameters
pauseBetweenCalculations
StackRuns
void Greet.Model.Calculator.TechnologyBalanceAndCopyEFs ( GProject  project,
TechnologyData  td 
)

Calculates CO2 and SOx balance for this particular technology Do the job for all the years

Member Data Documentation

bool Greet.Model.Calculator.CheckMonitorLimits = true

If true monitor min and max will be checked, otherwise they will not It can be useful to deactivate this feature while running the stochastic tool


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