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

This class is read from the technologies file. It holds the parameters of the current technology (name, id, ...) and inherits from EmissionsTimeSerie which holds the emission factors for each years More...

Inheritance diagram for Greet.DataStructureV3.Entities.TechnologyData:
Greet.DataStructureV3.Entities.TimeSeries< Tvalue > Greet.DataStructureV3.Entities.IHaveAPicture Greet.DataStructureV3.Interfaces.ITechnology Greet.DataStructureV3.Interfaces.IXmlObj Greet.DataStructureV3.IHaveMetadata Greet.DataStructureV3.Entities.Series< TKey, TValue > Greet.DataStructureV3.Interfaces.IXmlObj

Public Member Functions

 TechnologyData (GData data)
 Creates a new empty technology for a specific resource ID Years are added without any emission factors. More...
 
 TechnologyData (GData data, XmlNode technology, string optionalParamPrefix)
 Creates a new instance of a technology from an XML node Supports old technology format where resource ID was read from another XMLNode More...
 
bool CheckIntegrity (GData data, bool showIds, out string errorMessage)
 Checks that the ID of the input resource exists in the database More...
 
int CompareTo (object obj)
 
void FromXmlNode (IData data, XmlNode node)
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 
override string ToString ()
 
XmlNode ToXmlNode (XmlDocument xmlDoc)
 
- Public Member Functions inherited from Greet.DataStructureV3.Entities.TimeSeries< Tvalue >
int ClosestPrecedentYear (double year)
 Given a specific year, returns the closest year that preceeds or equals the year desired If no year can be found before the desired year, uses the one right after More...
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 
Tvalue LaggedValue (double p)
 
Tvalue Value (double year)
 

Protected Member Functions

 TechnologyData (SerializationInfo info, StreamingContext context)
 
- Protected Member Functions inherited from Greet.DataStructureV3.Entities.TimeSeries< Tvalue >
 TimeSeries (SerializationInfo information, StreamingContext context)
 
- Protected Member Functions inherited from Greet.DataStructureV3.Entities.Series< TKey, TValue >
 Series (SerializationInfo information, StreamingContext context)
 

Properties

int BaseTechnology [get, set]
 
int Id [get, set]
 Technology Id More...
 
int InputResourceRef [get, set]
 Each emission factors series for a technology is modeled for a specific fuel More...
 
bool IsRealEmissionFactors [get]
 Tests if all the EmissionFactors are defined as ratios to another technology or as RealEmissionFactors More...
 
string ModifiedBy [get, set]
 
string ModifiedOn [get, set]
 
string Name [get, set]
 
string Notes [get, set]
 
string PictureName [get, set]
 
List< IYearEmissionFactorsYearEmissionFactors [get]
 
- Properties inherited from Greet.DataStructureV3.Entities.TimeSeries< Tvalue >
Tvalue CurrentValue [get]
 This accessor attempts to the value for the current year. If the TS does not has a value defined for the current year More...
 
- Properties inherited from Greet.DataStructureV3.Entities.IHaveAPicture
string PictureName [get, set]
 Get or Set the image name of the object More...
 
- Properties inherited from Greet.DataStructureV3.Interfaces.ITechnology
int BaseTechnology [get, set]
 If the definition of this technology is made up of ratios, this defines the base technology on which these ratios refers to More...
 
int Id [get, set]
 Unique ID for this technology among the technologies More...
 
string Name [get, set]
 Name for this technology as it is going to show on the graphical interface More...
 
string PictureName [get, set]
 Image Name that represents the technology More...
 
List< IYearEmissionFactorsYearEmissionFactors [get]
 Technology ID for this technology's base technology More...
 

Additional Inherited Members

- Public Attributes inherited from Greet.DataStructureV3.Entities.TimeSeries< Tvalue >
string description = ""
 

Detailed Description

This class is read from the technologies file. It holds the parameters of the current technology (name, id, ...) and inherits from EmissionsTimeSerie which holds the emission factors for each years

Constructor & Destructor Documentation

Greet.DataStructureV3.Entities.TechnologyData.TechnologyData ( GData  data)

Creates a new empty technology for a specific resource ID Years are added without any emission factors.

Parameters
resourceId
Greet.DataStructureV3.Entities.TechnologyData.TechnologyData ( GData  data,
XmlNode  technology,
string  optionalParamPrefix 
)

Creates a new instance of a technology from an XML node Supports old technology format where resource ID was read from another XMLNode

Parameters
technologyXmlNode to read data from
resourceIdOld format input resource ID if known from another XMLNode

Member Function Documentation

bool Greet.DataStructureV3.Entities.TechnologyData.CheckIntegrity ( GData  data,
bool  showIds,
out string  errorMessage 
)

Checks that the ID of the input resource exists in the database

Returns
Meaningfull error message

Property Documentation

int Greet.DataStructureV3.Entities.TechnologyData.Id
getset

Technology Id

int Greet.DataStructureV3.Entities.TechnologyData.InputResourceRef
getset

Each emission factors series for a technology is modeled for a specific fuel

bool Greet.DataStructureV3.Entities.TechnologyData.IsRealEmissionFactors
get

Tests if all the EmissionFactors are defined as ratios to another technology or as RealEmissionFactors


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