public class DiameterBasedTreeLogCategory extends LogCategory
| Modifier and Type | Field and Description |
|---|---|
protected double |
conversionFactor |
protected double |
downgradingProportion |
protected boolean |
isChangeAllowed |
protected boolean |
isConversionEnabled |
protected boolean |
isDowngradingEnabled |
protected java.lang.Enum<?> |
logGrade |
protected double |
minimumDbhCm |
protected DiameterBasedTreeLogCategory |
subCategory |
| Constructor and Description |
|---|
DiameterBasedTreeLogCategory(java.lang.Enum<?> logGrade,
java.lang.Object species,
double minimumDbhCm,
boolean isFromStump,
DiameterBasedTreeLogCategory subCategory)
A default constructor with 100% conversion factor and no downgrading.
|
DiameterBasedTreeLogCategory(java.lang.Enum<?> logGrade,
java.lang.Object species,
double minimumDbhCm,
DiameterBasedTreeLogCategory subCategory)
A default constructor with 100% conversion factor, no downgrading and not from stump.
|
DiameterBasedTreeLogCategory(java.lang.Enum<?> logGrade,
java.lang.Object species,
double minimumDbhCm,
double conversionFactor,
double downgradingFactor,
boolean isFromStump,
DiameterBasedTreeLogCategory subCategory)
General contructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
protected java.util.List<DiameterBasedWoodPiece> |
extractFromTree(LoggableTree tree,
java.lang.Object... parms)
This method returns a wood piece if it can be extract from the tree.
|
java.lang.Enum<?> |
getGrade() |
DiameterBasedTreeLogCategoryPanel |
getUI()
This method returns the GUI interface of the class that implements this interface.
|
double |
getYieldFromThisPiece(WoodPiece piece)
This method returns the yield of this piece, i.e.
|
protected boolean |
isEligible(LoggableTree tree) |
boolean |
isVisible()
This method returns true if the GUI is visible.
|
getName, getSpecies, isFromStump, setName, setSpecies, toStringprotected boolean isChangeAllowed
protected double minimumDbhCm
protected double conversionFactor
protected double downgradingProportion
protected final boolean isConversionEnabled
protected final boolean isDowngradingEnabled
protected DiameterBasedTreeLogCategory subCategory
protected final java.lang.Enum<?> logGrade
public DiameterBasedTreeLogCategory(java.lang.Enum<?> logGrade,
java.lang.Object species,
double minimumDbhCm,
double conversionFactor,
double downgradingFactor,
boolean isFromStump,
DiameterBasedTreeLogCategory subCategory)
logGrade - an Enum that represents the log categoryspecies - a species nameminimumDbhCm - a minimum diameter for this log grade either null or positiveconversionFactor - a conversion factor either null or within the interval [0,1]downgradingFactor - a downgrading factor either null or within the interval [0,1]isFromStump - a booleansubCategory - a DiameterBasedTreeLogCategory for by productspublic DiameterBasedTreeLogCategory(java.lang.Enum<?> logGrade,
java.lang.Object species,
double minimumDbhCm,
boolean isFromStump,
DiameterBasedTreeLogCategory subCategory)
logGrade - an Enum that represents the log categoryspecies - a species nameminimumDbhCm - a minimum diameter for this log grade either null or positiveisFromStump - a booleansubCategory - a DiameterBasedTreeLogCategory for by productspublic DiameterBasedTreeLogCategory(java.lang.Enum<?> logGrade,
java.lang.Object species,
double minimumDbhCm,
DiameterBasedTreeLogCategory subCategory)
logGrade - an Enum that represents the log categoryspecies - a species nameminimumDbhCm - a minimum diameter for this log grade either null or positivesubCategory - a DiameterBasedTreeLogCategory for by productspublic DiameterBasedTreeLogCategoryPanel getUI()
REpiceaUIObjectpublic double getYieldFromThisPiece(WoodPiece piece) throws java.lang.Exception
LogCategorygetYieldFromThisPiece in class LogCategorypiece - a WoodPiece instancejava.lang.Exceptionpublic java.lang.Enum<?> getGrade()
public boolean isVisible()
REpiceaUIObjectprotected boolean isEligible(LoggableTree tree)
protected java.util.List<DiameterBasedWoodPiece> extractFromTree(LoggableTree tree, java.lang.Object... parms)
LogCategoryextractFromTree in class LogCategorytree - a LoggableTree instanceparms - optional parameterspublic boolean equals(java.lang.Object obj)
equals in class LogCategory