public class FrenchHDRelationship2018PlotImpl extends java.lang.Object implements FrenchHDRelationship2018Plot
Modifier and Type | Field and Description |
---|---|
protected int |
dateYr |
protected java.lang.String |
id |
protected double |
pent2 |
protected java.util.List<FrenchHDRelationship2018Tree> |
treeList |
protected double |
xCoord |
protected double |
yCoord |
Constructor and Description |
---|
FrenchHDRelationship2018PlotImpl(java.lang.String id,
double pentInc,
double xCoord,
double yCoord,
boolean hasBeenHarvestedInLast5Years,
double basalAreaM2Ha,
double mqdCm,
int dateYr)
Constructor for French NFI.
|
FrenchHDRelationship2018PlotImpl(java.lang.String id,
double pentInc,
double xCoord,
double yCoord,
boolean hasBeenHarvestedInLast5Years,
int monteCarloId,
double mqdCm,
int dateYr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addTree(FrenchHDRelationship2018TreeImpl tree) |
double |
getBasalAreaM2HaMinusThisSubject(HDRelationshipTree tree)
This method returns the basal area per hectare minus the basal area of the tree.
|
int |
getDateYr()
This method returns the current date in years.
|
double |
getElevationM()
This method returns the elevation above sea level (m).
|
double |
getLatitudeDeg()
This method returns the latitude of the plot in degrees.
|
double |
getLongitudeDeg()
This method returns the longitude of the plot in degrees.
|
double |
getMeanQuadraticDiameterCm()
This method returns the mean quadratic diameter of the living trees (cm).
|
int |
getMonteCarloRealizationId()
This method returns the id of the Monte Carlo realization.
|
double |
getSlopeInclinationPercent()
This method returns the slope inclination in percentage.
|
java.lang.String |
getSubjectId()
This method returns an object that makes it possible to identify
the subject that implements this interface.
|
java.util.Collection<HDRelationshipTree> |
getTreesForFrenchHDRelationship()
This method returns the trees that are available in the stand for height prediction.
|
boolean |
isInterventionResult()
This method returns true if the stand has just been harvested or thinned.
|
void |
setDateYr(int dateYr)
Sets the date of the measurement.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHierarchicalLevel
protected final java.lang.String id
protected final double pent2
protected final double xCoord
protected final double yCoord
protected final java.util.List<FrenchHDRelationship2018Tree> treeList
protected int dateYr
public FrenchHDRelationship2018PlotImpl(java.lang.String id, double pentInc, double xCoord, double yCoord, boolean hasBeenHarvestedInLast5Years, int monteCarloId, double mqdCm, int dateYr)
id
- the id of the plotpentInc
- the inclination of the slope in % (for 1% it is 1 and not .01)xCoord
- the latitude in geographic coordinatesyCoord
- the longitude in geographic coordinateshasBeenHarvestedInLast5Years
- a boolean that takes the value of true if the plot was managed in the last five yearsmonteCarloId
- the Monte Carlo id if neededmqdCm
- the mean quadratic diameter of the plot (cm)dateYr
- the current date in yearspublic FrenchHDRelationship2018PlotImpl(java.lang.String id, double pentInc, double xCoord, double yCoord, boolean hasBeenHarvestedInLast5Years, double basalAreaM2Ha, double mqdCm, int dateYr)
id
- the id of the plotpentInc
- the inclination of the slope in % (for 1% it is 1 and not .01)xCoord
- the latitude in geographic coordinatesyCoord
- the longitude in geographic coordinateshasBeenHarvestedInLast5Years
- a boolean that takes the value of true if the plot was managed in the last five yearsbasalAreaM2Ha
- plot basal area (m2/ha)mqdCm
- plot mean quadratic diameter (cm)dateYr
- the current date in yearspublic void setDateYr(int dateYr)
dateYr
- the date (yr)public java.lang.String getSubjectId()
MonteCarloSimulationCompliantObject
getSubjectId
in interface MonteCarloSimulationCompliantObject
public int getMonteCarloRealizationId()
MonteCarloSimulationCompliantObject
getMonteCarloRealizationId
in interface MonteCarloSimulationCompliantObject
public double getMeanQuadraticDiameterCm()
MeanQuadraticDiameterCmProvider
getMeanQuadraticDiameterCm
in interface MeanQuadraticDiameterCmProvider
public boolean isInterventionResult()
InterventionResultProvider
isInterventionResult
in interface InterventionResultProvider
public double getSlopeInclinationPercent()
SlopeInclinationPercentProvider
getSlopeInclinationPercent
in interface SlopeInclinationPercentProvider
public double getLatitudeDeg()
GeographicalCoordinatesProvider
getLatitudeDeg
in interface GeographicalCoordinatesProvider
public double getLongitudeDeg()
GeographicalCoordinatesProvider
getLongitudeDeg
in interface GeographicalCoordinatesProvider
public double getElevationM()
ElevationMProvider
getElevationM
in interface ElevationMProvider
public double getBasalAreaM2HaMinusThisSubject(HDRelationshipTree tree)
FrenchHDRelationship2018Plot
getBasalAreaM2HaMinusThisSubject
in interface FrenchHDRelationship2018Plot
tree
- a FrenchHDRelationship2014Tree instancepublic java.util.Collection<HDRelationshipTree> getTreesForFrenchHDRelationship()
FrenchHDRelationship2018Plot
getTreesForFrenchHDRelationship
in interface FrenchHDRelationship2018Plot
protected void addTree(FrenchHDRelationship2018TreeImpl tree)
public int getDateYr()
DateYrProvider
getDateYr
in interface DateYrProvider