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, waitingStandList
finalTask, 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, unlockEngine
addTask, addTasks, cancelRunningTask, getSettingMemory, lockEngine, requestShutdown, setSettingMemory, startApplication
protected CATSettings.CATSpecies speciesForSimulation
protected double areaHa
public PythonAccessPoint() throws java.lang.Exception
java.lang.Exception
public void setSpecies(java.lang.String species) throws java.lang.Exception
species
- a String either "beech" or "pine"java.io.IOException
java.lang.Exception
public void setAreaHA(double areaHa)
areaHa
- the area (ha)protected java.util.Vector<TreeLoggerDescription> findMatchingTreeLoggers(TreeLoggerCompatibilityCheck referent)
findMatchingTreeLoggers
in class CarbonAccountingTool
protected CATSettings getCarbonToolSettings()
CarbonAccountingTool
getCarbonToolSettings
in class CarbonAccountingTool
protected void shutdown(int shutdownCode)
shutdown
in class CarbonAccountingTool
public 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.Exception
protected static double getAverageDryBiomassByTree(double kgM2, double nbTreesHa)
protected void respondToWindowClosing()
CarbonAccountingTool
respondToWindowClosing
in class CarbonAccountingTool
public java.lang.String getRevision()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- java.lang.Exception