public class FrenchCommercialVolume2014TreeImpl extends java.lang.Object implements FrenchCommercialVolume2014Tree
FrenchCommercialVolume2014Tree.FrenchCommercialVolume2014TreeSpecies
Modifier and Type | Field and Description |
---|---|
protected double |
pred |
Modifier | Constructor and Description |
---|---|
|
FrenchCommercialVolume2014TreeImpl(int id,
double dbhCm,
double heightM,
java.lang.String speciesName)
Public constructor
|
protected |
FrenchCommercialVolume2014TreeImpl(int id,
double dbhCm,
double heightM,
java.lang.String speciesName,
double pred)
Protected constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getDbhCm()
This method returns the diameter at breast height of the tree.
|
FrenchCommercialVolume2014Tree.FrenchCommercialVolume2014TreeSpecies |
getFrenchCommercialVolume2014TreeSpecies()
This method returns the species of the tree instance.
|
double |
getHeightM()
This method returns the tree height in m.
|
int |
getMonteCarloRealizationId()
This method returns the id of the Monte Carlo realization.
|
protected double |
getPred() |
double |
getSquaredDbhCm()
This method returns the square of dbh.
|
java.lang.String |
getSubjectId()
This method returns an object that makes it possible to identify
the subject that implements this interface.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHierarchicalLevel
protected FrenchCommercialVolume2014TreeImpl(int id, double dbhCm, double heightM, java.lang.String speciesName, double pred)
id
- an integer that stands for the tree iddbhCm
- the diameter at breast height (cm)heightM
- the tree height (m)speciesName
- the species name. It should be an enum name among the FrenchCommercialVolume2014TreeSpecies enum variable (e.g. Pinus halepensis).pred
- an optional prediction for test purposes.public FrenchCommercialVolume2014TreeImpl(int id, double dbhCm, double heightM, java.lang.String speciesName)
id
- an integer that stands for the tree iddbhCm
- the diameter at breast height (cm)heightM
- the tree height (m)speciesName
- the species name. It should be an enum name among the FrenchCommercialVolume2014TreeSpecies enum variable (e.g. Pinus halepensis).protected double getPred()
public double getDbhCm()
DbhCmProvider
getDbhCm
in interface DbhCmProvider
public double getSquaredDbhCm()
SquaredDbhCmProvider
getSquaredDbhCm
in interface SquaredDbhCmProvider
public double getHeightM()
HeightMProvider
getHeightM
in interface HeightMProvider
public java.lang.String getSubjectId()
MonteCarloSimulationCompliantObject
getSubjectId
in interface MonteCarloSimulationCompliantObject
public int getMonteCarloRealizationId()
MonteCarloSimulationCompliantObject
getMonteCarloRealizationId
in interface MonteCarloSimulationCompliantObject
public FrenchCommercialVolume2014Tree.FrenchCommercialVolume2014TreeSpecies getFrenchCommercialVolume2014TreeSpecies()
FrenchCommercialVolume2014Tree
getFrenchCommercialVolume2014TreeSpecies
in interface FrenchCommercialVolume2014Tree