public class BiomassParameters extends java.lang.Object implements REpiceaShowableUIWithParent, IOUserInterfaceableObject, Resettable, Memorizable
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<SpeciesTypeProvider.SpeciesType,java.lang.Double> |
basicWoodDensityFactors
Deprecated.
|
protected boolean |
basicWoodDensityFromModel |
protected boolean |
basicWoodDensityFromModelEnabled |
protected boolean |
branchExpansionFactorFromModel |
protected boolean |
branchExpansionFactorFromModelEnabled |
protected java.util.HashMap<SpeciesTypeProvider.SpeciesType,java.lang.Double> |
branchExpansionFactors |
protected java.util.HashMap<SpeciesTypeProvider.SpeciesType,java.lang.Double> |
carbonContentFactors |
protected boolean |
carbonContentFromModel |
protected boolean |
carbonContentFromModelEnabled |
protected REpiceaGUIPermission |
permissions |
protected boolean |
rootExpansionFactorFromModel |
protected boolean |
rootExpansionFactorFromModelEnabled |
protected java.util.HashMap<SpeciesTypeProvider.SpeciesType,java.lang.Double> |
rootExpansionFactors |
Constructor and Description |
---|
BiomassParameters()
Empty constructor for class.newInstance() call.
|
BiomassParameters(REpiceaGUIPermission permissions)
Empty constructor for class.newInstance() call.
|
Modifier and Type | Method and Description |
---|---|
double |
getAboveGroundBiomassMg(java.util.Collection<CATCompatibleTree> trees,
MonteCarloSimulationCompliantObject subject)
This method returns the aboveground biomass for a collection of trees.
|
double |
getAboveGroundCarbonMg(CATCompatibleTree tree,
MonteCarloSimulationCompliantObject subject)
This method returns the aboveground carbon of a particular tree (Mg), INCLUDING bark.
|
double |
getAboveGroundCarbonMg(java.util.Collection<CATCompatibleTree> trees,
MonteCarloSimulationCompliantObject subject)
This method returns the aboveground carbon for a collection of trees.
|
double |
getAboveGroundVolumeM3(CATCompatibleTree tree,
MonteCarloSimulationCompliantObject subject)
This method returns the aboveground volume of a particular tree (m3), INCLUDING bark.
|
double |
getAboveGroundVolumeM3(java.util.Collection<CATCompatibleTree> trees,
MonteCarloSimulationCompliantObject subject)
This method returns the aboveground volume for a collection of trees.
|
double |
getBasicWoodDensityFromThisTree(CATCompatibleTree tree,
MonteCarloSimulationCompliantObject subject)
This method returns the basic density factor for this tree.
|
double |
getBelowGroundBiomassMg(java.util.Collection<CATCompatibleTree> trees,
MonteCarloSimulationCompliantObject subject) |
double |
getBelowGroundCarbonMg(java.util.Collection<CATCompatibleTree> trees,
MonteCarloSimulationCompliantObject subject) |
double |
getBelowGroundVolumeM3(CATCompatibleTree tree,
MonteCarloSimulationCompliantObject subject)
This method returns the belowground volume of a particular instance, INCLUDING bark and
|
double |
getBelowGroundVolumeM3(java.util.Collection<CATCompatibleTree> trees,
MonteCarloSimulationCompliantObject subject) |
double |
getCarbonContentFromThisTree(CATCompatibleTree tree,
MonteCarloSimulationCompliantObject subject)
This method returns the carbon content ratio for this tree, INCLUDING bark.
|
double |
getCommercialBiomassMg(java.util.Collection<CATCompatibleTree> trees,
MonteCarloSimulationCompliantObject subject) |
double |
getCommercialCarbonMg(java.util.Collection<CATCompatibleTree> trees,
MonteCarloSimulationCompliantObject subject) |
double |
getCommercialVolumeM3(java.util.Collection<CATCompatibleTree> trees) |
javax.swing.filechooser.FileFilter |
getFileFilter()
This method returns the appropriate FileFilter instance for this class.
|
java.lang.String |
getFilename()
This method returns the filename of the parameters.
|
MemorizerPackage |
getMemorizerPackage()
This method creates a MemorizerPackage instance that can be sent in turn to the TemporaryMemorizer instance for serialization.
|
java.lang.String |
getName() |
static double |
getOverbarkCommercialVolumeM3(CATCompatibleTree tree)
This static method returns the volume over bark of a CATCompatibleTree instance.
|
protected java.lang.String |
getSubjectId(CATSensitivityAnalysisSettings.VariabilitySource source,
CATCompatibleTree tree) |
java.awt.Component |
getUI(java.awt.Container parent)
This method returns the GUI interface of the class that implements this interface.
|
boolean |
isValid() |
boolean |
isVisible()
This method returns true if the GUI is visible.
|
void |
load(java.lang.String filename)
This method makes it possible to load information from a file.
|
static void |
main(java.lang.String[] args) |
void |
reset()
This method reinitializes some fields of the instance that implements this interface.
|
void |
save(java.lang.String filename)
This method saves the records in a file denominated by the filename parameter.
|
void |
setReferent(java.lang.Object referent) |
void |
showUI(java.awt.Window parent)
This method shows the GUI interface of the class that implements this interface.
|
void |
unpackMemorizerPackage(MemorizerPackage wasMemorized)
This method unpacks the MemorizerPackage instance retrieved by the TemporaryMemorizer class.
|
protected final java.util.HashMap<SpeciesTypeProvider.SpeciesType,java.lang.Double> branchExpansionFactors
protected final java.util.HashMap<SpeciesTypeProvider.SpeciesType,java.lang.Double> rootExpansionFactors
@Deprecated protected final java.util.HashMap<SpeciesTypeProvider.SpeciesType,java.lang.Double> basicWoodDensityFactors
protected final java.util.HashMap<SpeciesTypeProvider.SpeciesType,java.lang.Double> carbonContentFactors
protected boolean rootExpansionFactorFromModel
protected boolean rootExpansionFactorFromModelEnabled
protected boolean branchExpansionFactorFromModel
protected boolean branchExpansionFactorFromModelEnabled
protected boolean basicWoodDensityFromModel
protected boolean basicWoodDensityFromModelEnabled
protected boolean carbonContentFromModel
protected boolean carbonContentFromModelEnabled
protected transient REpiceaGUIPermission permissions
public BiomassParameters(REpiceaGUIPermission permissions)
public BiomassParameters()
public void setReferent(java.lang.Object referent)
public javax.swing.filechooser.FileFilter getFileFilter()
IOUserInterfaceableObject
getFileFilter
in interface IOUserInterfaceableObject
public void reset()
Resettable
reset
in interface Resettable
public boolean isValid()
public java.awt.Component getUI(java.awt.Container parent)
REpiceaUIObjectWithParent
getUI
in interface REpiceaUIObjectWithParent
parent
- a parent Container instance (can be null)public void showUI(java.awt.Window parent)
REpiceaShowableUIWithParent
showUI
in interface REpiceaShowableUIWithParent
parent
- the parent Window instance (can be null)public void save(java.lang.String filename) throws java.io.IOException
Saveable
public java.lang.String getName()
public void load(java.lang.String filename) throws java.io.IOException
Loadable
public java.lang.String getFilename()
IOUserInterfaceableObject
getFilename
in interface IOUserInterfaceableObject
public MemorizerPackage getMemorizerPackage()
Memorizable
getMemorizerPackage
in interface Memorizable
public void unpackMemorizerPackage(MemorizerPackage wasMemorized)
Memorizable
unpackMemorizerPackage
in interface Memorizable
wasMemorized
- a MemorizerPackage instancepublic double getBasicWoodDensityFromThisTree(CATCompatibleTree tree, MonteCarloSimulationCompliantObject subject)
tree
- a CarbonToolCompatibleTreepublic double getCarbonContentFromThisTree(CATCompatibleTree tree, MonteCarloSimulationCompliantObject subject)
tree
- a CarbonToolCompatibleTreepublic double getBelowGroundVolumeM3(CATCompatibleTree tree, MonteCarloSimulationCompliantObject subject)
tree
- a CarbonToolCompatibleTree instancepublic double getAboveGroundCarbonMg(CATCompatibleTree tree, MonteCarloSimulationCompliantObject subject)
tree
- a CarbonCompatibleTreepublic double getAboveGroundVolumeM3(CATCompatibleTree tree, MonteCarloSimulationCompliantObject subject)
tree
- a CarbonCompatibleTreeprotected java.lang.String getSubjectId(CATSensitivityAnalysisSettings.VariabilitySource source, CATCompatibleTree tree)
public static double getOverbarkCommercialVolumeM3(CATCompatibleTree tree)
tree
- a CATCompatibleTree instancepublic double getAboveGroundVolumeM3(java.util.Collection<CATCompatibleTree> trees, MonteCarloSimulationCompliantObject subject)
trees
- a Collection of CarbonToolCompatibleTree instancespublic double getAboveGroundBiomassMg(java.util.Collection<CATCompatibleTree> trees, MonteCarloSimulationCompliantObject subject)
trees
- a Collection of CarbonToolCompatibleTree instancespublic double getAboveGroundCarbonMg(java.util.Collection<CATCompatibleTree> trees, MonteCarloSimulationCompliantObject subject)
trees
- a Collection of CarbonToolCompatibleTree instancespublic double getBelowGroundCarbonMg(java.util.Collection<CATCompatibleTree> trees, MonteCarloSimulationCompliantObject subject)
public double getBelowGroundBiomassMg(java.util.Collection<CATCompatibleTree> trees, MonteCarloSimulationCompliantObject subject)
public double getBelowGroundVolumeM3(java.util.Collection<CATCompatibleTree> trees, MonteCarloSimulationCompliantObject subject)
public double getCommercialVolumeM3(java.util.Collection<CATCompatibleTree> trees)
public double getCommercialBiomassMg(java.util.Collection<CATCompatibleTree> trees, MonteCarloSimulationCompliantObject subject)
public double getCommercialCarbonMg(java.util.Collection<CATCompatibleTree> trees, MonteCarloSimulationCompliantObject subject)
public boolean isVisible()
REpiceaUIObjectWithParent
isVisible
in interface REpiceaUIObjectWithParent
public static void main(java.lang.String[] args)