public class AlbrechtWindStormModel extends AWSModelCore implements java.awt.event.ItemListener
AWSModelCore.RandomEffectID, AWSModelCore.SubModelID
isStochasticModeEnabled, RANDOM_GENERATOR
Constructor and Description |
---|
AlbrechtWindStormModel()
General constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeProbabilityOfTotalDamage(AWSTree.AWSTreeSpecies species)
This method computes the probability of observing more than 75% of damage in the stand for a particular tree species.
|
protected double |
computeProportionOfDamageIfNotTotallyDamaged(AWSTree.AWSTreeSpecies species)
This method computes the damage proportion from 0 to 75% for a particular tree species.
|
java.util.Collection<AWSTree> |
getDamagedTreesOfThisStand(AWSStand stand,
AWSTreatment treatment)
This method returns a collection of damaged trees.
|
AlbrechtWindStormModelUI |
getGuiInterface()
This method returns the GUI interface.
|
double[] |
getPredictionForThisStand(AWSStand stand,
AWSTreatment treatment)
This method generates three predictions : 1- the probability of stand damage,
2- the probability of total damage (>75% of basal area damaged) conditional on the occurrence of stand damaged, and
3- the proportion of stand damage (<75% of basal area damaged) given that the stand is not totally damaged.
|
protected java.lang.Boolean |
getResultForThisTree(AWSTree tree)
This method provides a prediction of damage for an individual tree.
|
boolean |
isStochasticModeEnabled() |
void |
itemStateChanged(java.awt.event.ItemEvent evt) |
static void |
main(java.lang.String[] args) |
void |
setStochasticModeEnabled(boolean enabled)
This method makes it possible to enable the stochastic mode.
|
void |
showInterface() |
getCutPoint, getParameters, getRandomEffect, getReferenceTables, getStand, getStandVariable, getTreatment, getTreatmentVariable, getTree, getTreeVariable, setStand, setTreatment, setTree
public void setStochasticModeEnabled(boolean enabled)
enabled
- public boolean isStochasticModeEnabled()
public double[] getPredictionForThisStand(AWSStand stand, AWSTreatment treatment) throws java.lang.Exception
stand
- a AWSStand objecttreatment
- a AWSTreatment objectjava.lang.Exception
public java.util.Collection<AWSTree> getDamagedTreesOfThisStand(AWSStand stand, AWSTreatment treatment) throws java.lang.Exception
stand
- a AWSStand instancetreatment
- a AWSTreatment instancejava.lang.Exception
protected java.lang.Boolean getResultForThisTree(AWSTree tree) throws java.lang.Exception
tree
- a AWSTree objectjava.lang.Exception
protected double computeProbabilityOfTotalDamage(AWSTree.AWSTreeSpecies species) throws java.lang.Exception
species
- a TreeSpecies enum variablejava.lang.Exception
protected double computeProportionOfDamageIfNotTotallyDamaged(AWSTree.AWSTreeSpecies species) throws java.lang.Exception
species
- a TreeSpecies enum variablejava.lang.Exception
public AlbrechtWindStormModelUI getGuiInterface()
public void showInterface()
public static void main(java.lang.String[] args)
public void itemStateChanged(java.awt.event.ItemEvent evt)
itemStateChanged
in interface java.awt.event.ItemListener