public final class CATSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CATSettings.AssessmentReport |
static class |
CATSettings.CATSpecies
The enum representing the species.
|
static class |
CATSettings.GWP |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<CATUtility.BiomassParametersName,lerfob.carbonbalancetool.CATUtility.BiomassParametersWrapper> |
biomassParametersMap |
static double |
C_C02_FACTOR |
static double |
C_CH4_FACTOR |
static double |
CH4_C_FACTOR |
static double |
CO2_C_FACTOR |
protected CATUtility.BiomassParametersName |
currentBiomassParameters |
protected CATUtility.ProductionManagerName |
currentProcessorManager |
protected boolean |
formerImplementation |
protected java.util.Map<CATUtility.ProductionManagerName,CATUtility.ProductionProcessorManagerWrapper> |
productionManagerMap |
protected static CATSettings.AssessmentReport |
selectedAR |
Constructor and Description |
---|
CATSettings(SettingMemory settings)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BiomassParameters |
getCurrentBiomassParameters()
This method returns the currently selected BiomassParameters instance.
|
ProductionProcessorManager |
getCurrentProductionProcessorManager()
This method returns the currently selected ProductionProcessorManager instance.
|
protected BiomassParameters |
getCustomizableBiomassParameters()
This method returns the customizable biomass parameters manager.
|
protected ProductionProcessorManager |
getCustomizableProductionProcessorManager()
This method returns the customizable production manager.
|
CATExponentialFunction |
getDecayFunction() |
static CATSettings.GWP |
getGlobalWarmingPotential()
This method returns the Global Warming Potential according
to the selected assessment report.
|
protected ProductionLineManager |
getProductionLines()
Deprecated.
|
protected SettingMemory |
getSettingMemory() |
TreeLogger<?,?> |
getTreeLogger()
This method returns the TreeLogger instance of the settings.
|
protected java.util.Vector<TreeLoggerDescription> |
getTreeLoggerDescriptions()
Deprecated.
|
protected WoodPieceDispatcher |
getWoodSupplySetup()
Deprecated.
|
void |
initialize(TreeLogger treeLogger,
java.lang.String productionLinesFilename,
java.lang.String woodDispatcherFilename)
Deprecated.
|
boolean |
isValid()
This method returns true if the settings are valid.
|
boolean |
isVerboseEnabled() |
static void |
setAssessmentReportForGWP(CATSettings.AssessmentReport aR)
This method set the assessment report for the Global Warming Potential factors.
|
void |
setHarvestVolumeMethod(java.lang.Object selectedItem)
Deprecated.
|
void |
setProductionLines(java.lang.Object selectedItem)
Deprecated.
|
protected void |
setReferentForBiomassParameters(java.lang.Object referent) |
void |
setTreeLoggerDescriptions(java.util.Vector<TreeLoggerDescription> treeLoggerDescriptions)
This method sets the possible tree logger options.
|
protected void |
setVerboseEnabled(boolean bool) |
void |
setWoodSupply(java.lang.Object selectedItem)
Deprecated.
|
protected boolean formerImplementation
public static final double CO2_C_FACTOR
public static final double C_C02_FACTOR
public static final double CH4_C_FACTOR
public static final double C_CH4_FACTOR
protected static CATSettings.AssessmentReport selectedAR
protected final java.util.Map<CATUtility.ProductionManagerName,CATUtility.ProductionProcessorManagerWrapper> productionManagerMap
protected final java.util.Map<CATUtility.BiomassParametersName,lerfob.carbonbalancetool.CATUtility.BiomassParametersWrapper> biomassParametersMap
protected CATUtility.ProductionManagerName currentProcessorManager
protected CATUtility.BiomassParametersName currentBiomassParameters
public CATSettings(SettingMemory settings)
public static CATSettings.GWP getGlobalWarmingPotential()
public static void setAssessmentReportForGWP(CATSettings.AssessmentReport aR)
aR
- an AssessmentReport enum variableprotected ProductionProcessorManager getCustomizableProductionProcessorManager()
protected BiomassParameters getCustomizableBiomassParameters()
public ProductionProcessorManager getCurrentProductionProcessorManager()
public BiomassParameters getCurrentBiomassParameters()
public void setTreeLoggerDescriptions(java.util.Vector<TreeLoggerDescription> treeLoggerDescriptions)
treeLoggerDescriptions
- a Vector of TreeLoggerDescription instancesprotected void setReferentForBiomassParameters(java.lang.Object referent)
@Deprecated protected java.util.Vector<TreeLoggerDescription> getTreeLoggerDescriptions()
public boolean isValid()
public CATExponentialFunction getDecayFunction()
protected SettingMemory getSettingMemory()
@Deprecated public void setHarvestVolumeMethod(java.lang.Object selectedItem)
selectedItem
- a String (default) or a TreeLoggerDescription instance@Deprecated public void setWoodSupply(java.lang.Object selectedItem)
selectedItem
- the filename without the path (which is assumed to be the workspace)@Deprecated public void setProductionLines(java.lang.Object selectedItem)
selectedItem
- the filename without the path (which is assumed to be the workspace)@Deprecated public void initialize(TreeLogger treeLogger, java.lang.String productionLinesFilename, java.lang.String woodDispatcherFilename) throws java.io.IOException
treeLogger
- productionLinesFilename
- the path to the production lines filewoodDispatcherFilename
- the path to the wood dispatcher filejava.io.IOException
public TreeLogger<?,?> getTreeLogger()
@Deprecated protected ProductionLineManager getProductionLines()
@Deprecated protected WoodPieceDispatcher getWoodSupplySetup()
protected void setVerboseEnabled(boolean bool)
public boolean isVerboseEnabled()