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


Field Summary
(package private)  ForestStand forest
           
(package private)  GrowthParameters growthParameters
           
(package private)  boolean isStop
           
(package private)  int iteration
           
(package private)  LightCalculator lightCalculator
           
(package private)  java.util.ArrayList listenerList
           
(package private)  float progress
           
(package private)  float totalProgress
           
 
Constructor Summary
GrowthCalculator()
           
 
Method Summary
 void addCalculatorListener(CalculatorListener l)
           
 void calculate(ForestStand f)
           
 double getCurrentProgress()
           
 double getMaxProgress()
           
 double getMinProgress()
           
 java.lang.Object getResult()
           
 java.lang.Object getSource()
           
 void removeCalculatorListener(CalculatorListener l)
           
 void run()
           
 void setIteration(int i)
           
 void stopCalculation()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

GrowthCalculator

public GrowthCalculator()
Method Detail

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