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

Abstract class for a fuel production entity of a mix. This class should only be used as such within a mix. holds ths shares and notes only, rest of the definition in PathwayProductionEntity and MixProductionEntity More...

Inheritance diagram for Greet.DataStructureV3.Entities.FuelProductionEntity:
Greet.DataStructureV3.Interfaces.IProductionItem Greet.DataStructureV3.Entities.MixProductionEntity Greet.DataStructureV3.Entities.PathwayProductionEntity

Public Member Functions

abstract bool Exists (GData data)
 Checks if the reference exists in the database, if we refer a pathway does this pathway exists in the database, if a mix does this mix exists in the database. More...
 
void GetObjectData (SerializationInfo info, StreamingContext context)
 
abstract XmlNode ToXmlNode (XmlDocument doc)
 Defines how to save this enity as an xml node in the database More...
 

Protected Member Functions

 FuelProductionEntity (GData data, XmlNode node, string optionalParamPrefix)
 Populates the shares and nodes attributes of the fuel production enitiy from an XML node More...
 
 FuelProductionEntity (GData data, double share)
 Creates a new Fuel Production Entity from the share only What's the use of that, can it be deleted ? More...
 
 FuelProductionEntity (SerializationInfo information, StreamingContext context)
 

Properties

int MixOrPathwayId [get]
 
ParameterTS Share [get]
 returns the share for that fuel production entity More...
 
Greet.DataStructureV3.Interfaces.Enumerators.SourceType SourceType [get]
 
- Properties inherited from Greet.DataStructureV3.Interfaces.IProductionItem
int MixOrPathwayId [get]
 The ID of the pathway or the mix More...
 
double Share [get]
 In the case of that production item is used in parallel of other, there can be a share associated with this item More...
 
Enumerators.SourceType SourceType [get]
 Can be Pathway or Mix More...
 

Detailed Description

Abstract class for a fuel production entity of a mix. This class should only be used as such within a mix. holds ths shares and notes only, rest of the definition in PathwayProductionEntity and MixProductionEntity

Constructor & Destructor Documentation

Greet.DataStructureV3.Entities.FuelProductionEntity.FuelProductionEntity ( GData  data,
XmlNode  node,
string  optionalParamPrefix 
)
protected

Populates the shares and nodes attributes of the fuel production enitiy from an XML node

Parameters
node
Greet.DataStructureV3.Entities.FuelProductionEntity.FuelProductionEntity ( GData  data,
double  share 
)
protected

Creates a new Fuel Production Entity from the share only What's the use of that, can it be deleted ?

Parameters
share

Member Function Documentation

abstract bool Greet.DataStructureV3.Entities.FuelProductionEntity.Exists ( GData  data)
pure virtual

Checks if the reference exists in the database, if we refer a pathway does this pathway exists in the database, if a mix does this mix exists in the database.

Implemented in Greet.DataStructureV3.Entities.MixProductionEntity, and Greet.DataStructureV3.Entities.PathwayProductionEntity.

abstract XmlNode Greet.DataStructureV3.Entities.FuelProductionEntity.ToXmlNode ( XmlDocument  doc)
pure virtual

Defines how to save this enity as an xml node in the database

Parameters
docXmlDocument for the namespace URI
Returns
XmlNode containing the information for that fuel production entity

Implemented in Greet.DataStructureV3.Entities.MixProductionEntity, and Greet.DataStructureV3.Entities.PathwayProductionEntity.

Property Documentation

ParameterTS Greet.DataStructureV3.Entities.FuelProductionEntity.Share
get

returns the share for that fuel production entity


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