Greet 2014
Documentation for the GREET 2014 API
 All Classes Namespaces Functions Variables Enumerations Properties Events
Greet.DataStructureV3.GData Class Reference
Inheritance diagram for Greet.DataStructureV3.GData:
Greet.DataStructureV3.Interfaces.IData

Public Member Functions

 GData ()
 Build the data holder for greet, that object will store all the dataset ( working and user copy ) to allow calculations More...
 
string CheckIntegrity (bool showIds, bool fixFixableIssues)
 This method checks all the relationships in the data just after the data has been loaded More...
 
void CheckProcessModelModification (GProject project, AProcess process, out string msg)
 Extensive checks to make sure that changes to an existing process model will not break all edges in pathways using it If that proces isn't in the database or used anywhere, it can be safely added without any checks More...
 
delegate void EIHasBeenChanged ()
 
List< MixListItemFlattenMixList ()
 
List< MixListItemFlattenMixList (int resource_id)
 
List< TechnologyListItemFlattenTechonlogyList ()
 
delegate void MaterialParameterHasBeenChanged ()
 
int PathwayMainOutputResouce (int pathwayId)
 Method for convenience that uses a pathway ID in order to grab the last process in that pathway and figure out the main output resource ID from the last process More...
 
delegate void ReadingXMLFilesDoneEvent ()
 
delegate void ReadingXMLFilesInProgressEvent (int progress, string message)
 
bool SafePipelineEiRemove (int modeId, int materialId, out string msg)
 This method removes an entry from list of energy intecities. Before removeing, it checks wheter the ei is used anywhere. More...
 
bool SafeRemoveFuelShare (int ModeID, int ModeFuelShareID, out string msg)
 
delegate void VehicleParameterHasBeenChanged ()
 
void WarnPathwayValueHasChangedNeedRecalculation ()
 
void WarnVehicleValueHasChangedNeedRecalculation ()
 

Public Attributes

bool allRelationshipsFine = false
 
bool changeDBFormulaCalculateOnTheFly = true
 
EIHasBeenChanged EIHasBeenChangedEvent
 
Exception exceptionToThrow
 
bool fullyLoaded = false
 
bool loaded = false
 
MaterialParameterHasBeenChanged PathwayParameterHasBeenChangedEvent
 
VehicleParameterHasBeenChanged VehicleParameterHasBeenChangedEvent
 

Static Public Attributes

static CultureInfo Nfi = new CultureInfo("en-US")
 

Properties

bool FuelCalculationNeeded [get, set]
 
IGDataDictionary< int, IGasGases [get]
 
EmissionGases GasesData [get]
 
List< IGroupGasGroups [get]
 
IDataHelper Helper [get]
 
InputTables InputsData [get]
 
IGDataDictionary< string,
IInputTable
InputTables [get]
 
IGDataDictionary< int, ILocationLocations [get]
 
Locations LocationsData [get]
 
IGDataDictionary< int, IMixMixes [get]
 
Mixes MixesData [get]
 
IGDataDictionary< int, IAModeModes [get]
 
Modes ModesData [get]
 
IGDataDictionary< string,
IParameter
Parameters [get]
 
Parameters ParametersData [get, set]
 
IGDataDictionary< int, IPathwayPathways [get]
 
Pathways PathwaysData [get]
 
IGDataDictionary< string,
IPicture
Pictures [get]
 
Pictures PicturesData [get, set]
 
IGDataDictionary< int, IProcessProcesses [get]
 
Processes ProcessesData [get]
 
List< IGroupResourceGroups [get]
 
IGDataDictionary< int, IResourceResources [get]
 
Resources ResourcesData [get]
 
IGDataDictionary< int,
ITechnology
Technologies [get]
 
Technologies TechnologiesData [get]
 
bool VehicleCalculationNeeded [get, set]
 
IGDataDictionary< int, IVehicleVehicles [get]
 
Vehicles VehiclesData [get]
 
- Properties inherited from Greet.DataStructureV3.Interfaces.IData
IGDataDictionary< int, IGasGases [get]
 Returns a dictionary type object containing all gases; see IGDataDictionary for details on implementation More...
 
List< IGroupGasGroups [get]
 Returns the available groups for Emissions/Gases More...
 
IDataHelper Helper [get]
 Returns an instance of the data helper that is a wrapper class arround the data class to allow easier data manipulation More...
 
IGDataDictionary< string,
IInputTable
InputTables [get]
 Returns a dictionary type object containing all input tables; see IGDataDictionary for details on implementation More...
 
IGDataDictionary< int, ILocationLocations [get]
 Returns a dictionary type object containing all locations; see IGDataDictionary for details on implementation More...
 
IGDataDictionary< int, IMixMixes [get]
 Returns a dictionary type object containing all mixes; see IGDataDictionary for details on implementation More...
 
IGDataDictionary< int, IAModeModes [get]
 Returns a dictionary type object containing all modes; see IGDataDictionary for details on implementation More...
 
IGDataDictionary< string,
IParameter
Parameters [get]
 Returns a dictionary type object containing Parameters; see IGDataDictionary for details on implementation More...
 
IGDataDictionary< int, IPathwayPathways [get]
 Returns a dictionary type object containing all pathways; see IGDataDictionary for details on implementation More...
 
IGDataDictionary< string,
IPicture
Pictures [get]
 Returns a dictionary type object containing Pictures; see IGDataDictionary for details on implementation More...
 
IGDataDictionary< int, IProcessProcesses [get]
 Returns a dictionary type object containing all processes; see IGDataDictionary for details on implementation More...
 
List< IGroupResourceGroups [get]
 Returns the available groups for Resources More...
 
IGDataDictionary< int, IResourceResources [get]
 Returns a dictionary type object containing all resources; see IGDataDictionary for details on implementation More...
 
IGDataDictionary< int,
ITechnology
Technologies [get]
 Returns a dictionary type object containing all technologies; see IGDataDictionary for details on implementation More...
 
IGDataDictionary< int, IVehicleVehicles [get]
 Returns a dictionary type object containing all vehicles; see IGDataDictionary for details on implementation More...
 

Events

ReadingXMLFilesInProgressEvent ReadingDataInProgressEvent
 
ReadingXMLFilesDoneEvent ReadingDone
 

Constructor & Destructor Documentation

Greet.DataStructureV3.GData.GData ( )

Build the data holder for greet, that object will store all the dataset ( working and user copy ) to allow calculations

Member Function Documentation

string Greet.DataStructureV3.GData.CheckIntegrity ( bool  showIds,
bool  fixFixableIssues 
)

This method checks all the relationships in the data just after the data has been loaded

Returns
Errors found in the database

Implements Greet.DataStructureV3.Interfaces.IData.

void Greet.DataStructureV3.GData.CheckProcessModelModification ( GProject  project,
AProcess  process,
out string  msg 
)

Extensive checks to make sure that changes to an existing process model will not break all edges in pathways using it If that proces isn't in the database or used anywhere, it can be safely added without any checks

Parameters
processProcess to be checked for insertion in the current database
msgMessage containing possible errors if any for insertion in the database
int Greet.DataStructureV3.GData.PathwayMainOutputResouce ( int  pathwayId)

Method for convenience that uses a pathway ID in order to grab the last process in that pathway and figure out the main output resource ID from the last process

Parameters
pathwayIdThe pathway ID for which we want to know the main output resource ID
Returns
The main output ID or -1 if not possible to find either the pathway or the process
bool Greet.DataStructureV3.GData.SafePipelineEiRemove ( int  modeId,
int  materialId,
out string  msg 
)

This method removes an entry from list of energy intecities. Before removeing, it checks wheter the ei is used anywhere.

Parameters
materialIdThe id of the materil/material group to be removed from the energyIntensity
msgIf remove fails, the msg contains meaningful explanation of whay it happened.
Returns
The true is returned if remove operation was success, false otherwise

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