public class YearSummary
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
numDormantSeason |
private int |
numEarlyEarlywood |
private int |
numLateEarlywood |
private int |
numLatewood |
private int |
numMiddleEarlywood |
private int |
numRecorders |
private int |
numSamples |
private int |
numUndetermined |
private int |
year |
Constructor and Description |
---|
YearSummary(FHX2_FileRequiredPart file,
int year)
Constructor for year summary.
|
YearSummary(int year,
int numRecorders,
int numSamples,
int numDormantSeason,
int numEarlyEarlywood,
int numMiddleEarlywood,
int numLateEarlywood,
int numLatewood,
int numUndetermined)
Constructor that allows the specification of values directly.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumBlank()
Gets the number of samples that are active but not recording.
|
int |
getNumDormantSeason() |
int |
getNumEarlyEarlywood() |
int |
getNumEvents()
Gets the total number of events.
|
int |
getNumLateEarlywood() |
int |
getNumLatewood() |
int |
getNumMiddleEarlywood() |
int |
getNumRecorders()
WARNING - the value of recording years does not match that of FHFileReader.
|
int |
getNumSamples() |
int |
getNumUndetermined() |
float |
getPercentScarred()
Calculates the percentage of samples that are recording that include events
|
int |
getYear() |
private int year
private int numRecorders
private int numSamples
private int numDormantSeason
private int numEarlyEarlywood
private int numMiddleEarlywood
private int numLateEarlywood
private int numLatewood
private int numUndetermined
public YearSummary(FHX2_FileRequiredPart file, int year)
file
- the information the object will use to get its data.year
- the year that this object will be for.public YearSummary(int year, int numRecorders, int numSamples, int numDormantSeason, int numEarlyEarlywood, int numMiddleEarlywood, int numLateEarlywood, int numLatewood, int numUndetermined)
year
- the year.numRecorders
- the number of recorders.numSamples
- the number of samples.numDormantSeason
- the number of dormant events.numEarlyEarlywood
- the number of early earlywood events.numMiddleEarlywood
- the number of middle earlywood events.numLateEarlywood
- the number of late earlywood events.numLatewood
- the number of latewood events.numUndetermined
- the number of undetermined events.public float getPercentScarred()
public int getNumEvents()
public int getNumBlank()
public int getYear()
public int getNumRecorders()
public int getNumSamples()
public int getNumDormantSeason()
public int getNumEarlyEarlywood()
public int getNumMiddleEarlywood()
public int getNumLateEarlywood()
public int getNumLatewood()
public int getNumUndetermined()