sexi.util
Class GrowthCalculator
java.lang.Object
|
+--sexi.util.GrowthCalculator
- All Implemented Interfaces:
- CalculatorEvent, java.lang.Runnable
- public class GrowthCalculator
- extends java.lang.Object
- implements java.lang.Runnable, CalculatorEvent
Calculate the growth of the forest
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
forest
ForestStand forest
lightCalculator
LightCalculator lightCalculator
growthParameters
GrowthParameters growthParameters
iteration
int iteration
isStop
boolean isStop
listenerList
java.util.ArrayList listenerList
progress
float progress
totalProgress
float totalProgress
GrowthCalculator
public GrowthCalculator()
calculate
public void calculate(ForestStand f)
setIteration
public void setIteration(int i)
stopCalculation
public void stopCalculation()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
addCalculatorListener
public void addCalculatorListener(CalculatorListener l)
removeCalculatorListener
public void removeCalculatorListener(CalculatorListener l)
getCurrentProgress
public double getCurrentProgress()
- Specified by:
getCurrentProgress
in interface CalculatorEvent
getMinProgress
public double getMinProgress()
- Specified by:
getMinProgress
in interface CalculatorEvent
getMaxProgress
public double getMaxProgress()
- Specified by:
getMaxProgress
in interface CalculatorEvent
getResult
public java.lang.Object getResult()
- Specified by:
getResult
in interface CalculatorEvent
getSource
public java.lang.Object getSource()
- Specified by:
getSource
in interface CalculatorEvent