public abstract class LogCategory extends java.lang.Object implements java.io.Serializable, REpiceaUIObject
| Constructor and Description |
|---|
LogCategory()
Default instantiation.
|
LogCategory(java.lang.String name,
boolean isFromStump)
General constructor for all the TreeLogCategory-derived classes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
protected abstract java.util.List<? extends WoodPiece> |
extractFromTree(LoggableTree tree,
java.lang.Object... parms)
This method returns a wood piece if it can be extract from the tree.
|
java.lang.String |
getName()
This method returns the name of this tree log category.
|
java.lang.Object |
getSpecies() |
abstract double |
getYieldFromThisPiece(WoodPiece piece)
This method returns the yield of this piece, i.e.
|
boolean |
isFromStump()
This method returns true if the log category is actually extracted from stumps.
|
void |
setName(java.lang.String str)
This method sets the name of this tree log category.
|
protected void |
setSpecies(java.lang.Object species) |
java.lang.String |
toString() |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUI, isVisiblepublic LogCategory(java.lang.String name,
boolean isFromStump)
name - the name of the log categoryisFromStump - true if this log category is extracted from the stump and the rootspublic LogCategory()
protected void setSpecies(java.lang.Object species)
public java.lang.String getName()
public void setName(java.lang.String str)
public java.lang.Object getSpecies()
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract double getYieldFromThisPiece(WoodPiece piece) throws java.lang.Exception
piece - a WoodPiece instancejava.lang.Exceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean isFromStump()
protected abstract java.util.List<? extends WoodPiece> extractFromTree(LoggableTree tree, java.lang.Object... parms)
tree - a LoggableTree instanceparms - optional parameters