public class ProductionProcessorManager extends SystemManager implements Memorizable
Modifier and Type | Class and Description |
---|---|
protected static class |
ProductionProcessorManager.EnhancedMode |
protected static class |
ProductionProcessorManager.TreeLoggerInstanceCompatibilityException |
Modifier and Type | Field and Description |
---|---|
protected static java.util.List<LeftHandSideProcessor> |
DefaultLeftHandSideProcessors |
protected java.util.ArrayList<LeftHandSideProcessor> |
logCategoryProcessors |
protected static lerfob.carbonbalancetool.productionlines.ProductionProcessorManager.ProductionLineFileFilter |
MyFileFilter |
static double |
VERY_SMALL
The VERY_SMALL value serves as threshold when dealing with small quantities.
|
guiInterface
Constructor and Description |
---|
ProductionProcessorManager() |
ProductionProcessorManager(DefaultREpiceaGUIPermission defaultPermission)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actualizeCarbonUnits(CATCompartmentManager compartmentManager)
This method actualizes the different carbon units.
|
protected void |
actualizeTreeLoggerParameters() |
protected java.util.Vector<TreeLoggerParameters<?>> |
getAvailableTreeLoggerParameters() |
protected CarbonUnitMap<CarbonUnit.CarbonUnitStatus> |
getCarbonUnitMap() |
CarbonUnitList |
getCarbonUnits(CarbonUnit.CarbonUnitStatus type)
This method returns the CarbonUnitList instance that match the type of carbon.
|
protected CATDecayFunction |
getDecayFunction() |
javax.swing.filechooser.FileFilter |
getFileFilter()
This method returns the appropriate FileFilter instance for this class.
|
MemorizerPackage |
getMemorizerPackage()
This method creates a MemorizerPackage instance that can be sent in turn to the TemporaryMemorizer instance for serialization.
|
TreeLogger |
getSelectedTreeLogger() |
protected TreeLoggerParameters<?> |
getSelectedTreeLoggerParameters() |
SystemManagerDialog |
getUI(java.awt.Container parent)
This method returns the GUI interface of the class that implements this interface.
|
boolean |
isValid()
This method returns true if the ProductionProcessorManager instance is valid or false otherwise.
|
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 |
processWoodPiece(LogCategory logCategory,
int dateIndex,
java.lang.String samplingUnitID,
AmountMap<CarbonUnit.Element> amountMap,
java.lang.String speciesName)
The main method for this class.
|
void |
processWoodyDebris(int dateIndex,
java.lang.String samplingUnitID,
AmountMap<CarbonUnit.Element> amountMap,
java.lang.String speciesName,
WoodyDebrisProcessor.WoodyDebrisProcessorID type)
This method calculates the carbon units in the woody debris.
|
void |
reset()
This method reinitializes some fields of the instance that implements this interface.
|
void |
resetCarbonUnitMap() |
void |
setAvailableTreeLoggers(java.util.Vector<TreeLoggerDescription> vector)
This method sets the list of tree logger descriptions.
|
protected void |
setSelectedTreeLogger(TreeLoggerParameters<?> treeLoggerParameters) |
void |
unpackMemorizerPackage(MemorizerPackage wasMemorized)
This method unpacks the MemorizerPackage instance retrieved by the TemporaryMemorizer class.
|
checkForEndlessLoops, getFilename, getGUIPermission, getList, getName, getPrimaryProcessors, isVisible, registerObject, removeObject, save, showUI
protected static java.util.List<LeftHandSideProcessor> DefaultLeftHandSideProcessors
protected static final lerfob.carbonbalancetool.productionlines.ProductionProcessorManager.ProductionLineFileFilter MyFileFilter
public static final double VERY_SMALL
protected final java.util.ArrayList<LeftHandSideProcessor> logCategoryProcessors
public ProductionProcessorManager(DefaultREpiceaGUIPermission defaultPermission)
public ProductionProcessorManager()
public TreeLogger getSelectedTreeLogger()
public void resetCarbonUnitMap()
protected TreeLoggerParameters<?> getSelectedTreeLoggerParameters()
protected void setSelectedTreeLogger(TreeLoggerParameters<?> treeLoggerParameters)
protected void actualizeTreeLoggerParameters()
protected java.util.Vector<TreeLoggerParameters<?>> getAvailableTreeLoggerParameters()
public javax.swing.filechooser.FileFilter getFileFilter()
IOUserInterfaceableObject
getFileFilter
in interface IOUserInterfaceableObject
getFileFilter
in class SystemManager
public SystemManagerDialog getUI(java.awt.Container parent)
REpiceaUIObjectWithParent
getUI
in interface REpiceaUIObjectWithParent
getUI
in class SystemManager
parent
- a parent Container instance (can be null)public MemorizerPackage getMemorizerPackage()
Memorizable
getMemorizerPackage
in interface Memorizable
getMemorizerPackage
in class SystemManager
public void unpackMemorizerPackage(MemorizerPackage wasMemorized)
Memorizable
unpackMemorizerPackage
in interface Memorizable
unpackMemorizerPackage
in class SystemManager
wasMemorized
- a MemorizerPackage instancepublic void load(java.lang.String filename) throws java.io.IOException
Loadable
load
in interface Loadable
load
in class SystemManager
filename
- the name of the filejava.io.IOException
- if the file cannot be readpublic void setAvailableTreeLoggers(java.util.Vector<TreeLoggerDescription> vector)
vector
- a Vector instance containing TreeLoggerdescription objectspublic boolean isValid()
public void processWoodPiece(LogCategory logCategory, int dateIndex, java.lang.String samplingUnitID, AmountMap<CarbonUnit.Element> amountMap, java.lang.String speciesName)
logCategory
- a TreeLogCategory instancedateIndex
- the index of the date in the time scaleamountMap
- a Map which contains the amounts of the different elementspublic void processWoodyDebris(int dateIndex, java.lang.String samplingUnitID, AmountMap<CarbonUnit.Element> amountMap, java.lang.String speciesName, WoodyDebrisProcessor.WoodyDebrisProcessorID type)
dateIndex
- the index of the date in the time scaleamountMap
- a Map which contains the amounts of the different elementstype
- a WoodyDebrisProcessorID enum variablepublic void actualizeCarbonUnits(CATCompartmentManager compartmentManager) throws java.lang.Exception
compartmentManager
- the CATCompartmentManager instancejava.lang.Exception
protected CATDecayFunction getDecayFunction()
protected CarbonUnitMap<CarbonUnit.CarbonUnitStatus> getCarbonUnitMap()
public CarbonUnitList getCarbonUnits(CarbonUnit.CarbonUnitStatus type)
type
- a CarbonUnitType enum (EndUseWoodProduct, Landfill, Recycled, LeftInForest)public void reset()
Resettable
reset
in interface Resettable
reset
in class SystemManager
public static void main(java.lang.String[] args)