public class PythonAccessPoint extends CarbonAccountingTool
CarbonAccountingTool.CATMode| Modifier and Type | Field and Description |
|---|---|
protected double |
areaHa |
protected CATSettings.CATSpecies |
speciesForSimulation |
englishTitle, finalCutHadToBeCarriedOut, frenchTitle, guiInterface, hasAlreadyBeenInstanciated, owner, parentFrame, waitingStandListfinalTask, logger, queue, tasksDone| Constructor and Description |
|---|
PythonAccessPoint() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Vector<TreeLoggerDescription> |
findMatchingTreeLoggers(TreeLoggerCompatibilityCheck referent) |
protected static double |
getAverageDryBiomassByTree(double kgM2,
double nbTreesHa) |
protected CATSettings |
getCarbonToolSettings()
This method returns the settings of the carbon accounting tool.
|
java.lang.String |
getRevision()
This method returns the version of the lerfob-cat application.
|
static void |
main(java.lang.String[] args)
Start method for connection to Python.
|
java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.Double>> |
processStandList(java.lang.String standID,
java.util.Map inputMap) |
protected void |
respondToWindowClosing()
By default, closing the gui shuts the engine down.
|
void |
setAreaHA(double areaHa)
This method sets the area of the plot to be processed.
|
void |
setSpecies(java.lang.String species)
This method sets the species for the simulation
|
protected void |
shutdown(int shutdownCode) |
calculateCarbon, createExportTool, decideWhatToDoInCaseOfFailure, firstTasksToDo, getCarbonCompartmentManager, getUI, getUI, initializeTool, initializeTool, isGuiEnabled, isInitialized, isShuttedDown, isVisible, lockEngine, retrieveSimulationSummary, setBiomassParameters, setBiomassParameters, setFinalCutHadToBeCarriedOut, setProductionManager, setProductionManager, setStandList, setStandList, setVariabilitySource, setVariabilitySource, setVerboseEnabled, showResult, showUI, showUI, unlockEngineaddTask, addTasks, cancelRunningTask, getSettingMemory, lockEngine, requestShutdown, setSettingMemory, startApplicationprotected CATSettings.CATSpecies speciesForSimulation
protected double areaHa
public PythonAccessPoint()
throws java.lang.Exception
java.lang.Exceptionpublic void setSpecies(java.lang.String species)
throws java.lang.Exception
species - a String either "beech" or "pine"java.io.IOExceptionjava.lang.Exceptionpublic void setAreaHA(double areaHa)
areaHa - the area (ha)protected java.util.Vector<TreeLoggerDescription> findMatchingTreeLoggers(TreeLoggerCompatibilityCheck referent)
findMatchingTreeLoggers in class CarbonAccountingToolprotected CATSettings getCarbonToolSettings()
CarbonAccountingToolgetCarbonToolSettings in class CarbonAccountingToolprotected void shutdown(int shutdownCode)
shutdown in class CarbonAccountingToolpublic java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.Double>> processStandList(java.lang.String standID,
java.util.Map inputMap)
throws java.lang.Exception
java.lang.Exceptionprotected static double getAverageDryBiomassByTree(double kgM2,
double nbTreesHa)
protected void respondToWindowClosing()
CarbonAccountingToolrespondToWindowClosing in class CarbonAccountingToolpublic java.lang.String getRevision()
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - java.lang.Exception