public class FHSeries
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
bark |
private java.util.ArrayList<FHCategoryEntry> |
categoryEntries |
private boolean[] |
eventYears |
private int |
firstYear |
private boolean[] |
injuryYears |
private boolean |
pith |
private boolean[] |
recordingYears |
private java.lang.String |
title |
Constructor and Description |
---|
FHSeries(FHSeries inSeries)
Copy constructor for FHSeries.
|
FHSeries(java.lang.String title,
int firstYear,
boolean hasPith,
boolean hasBark,
boolean[] recordingYears,
boolean[] eventYears,
boolean[] injuryYears)
This class is a container for data about a single series within a fire history data file.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<FHCategoryEntry> |
getCategoryEntries()
Get the list of category entries.
|
boolean[] |
getEventYears()
Get a boolean[] with a size the same as the number of years this series covers.
|
int |
getFirstYear()
Get the year for the first year in this series e.g.
|
boolean[] |
getInjuryYears()
Get a boolean[] with a size the same as the number of years this series covers.
|
int |
getLastYear()
Get the year for the last year for this series e.g.
|
int |
getLength()
Get the number of years that this series covers.
|
boolean[] |
getRecordingYears()
Get a boolean[] with a size the same as the number of years this series covers.
|
java.lang.String |
getTitle()
Get the title/label for this series.
|
boolean |
hasBark()
Returns a boolean indicating whether the sample had bark or not.
|
boolean |
hasPith()
Returns a boolean indicating whether the sample had pith or not.
|
private final java.lang.String title
private final int firstYear
private final boolean pith
private final boolean bark
private final boolean[] recordingYears
private final boolean[] eventYears
private final boolean[] injuryYears
private final java.util.ArrayList<FHCategoryEntry> categoryEntries
public FHSeries(java.lang.String title, int firstYear, boolean hasPith, boolean hasBark, boolean[] recordingYears, boolean[] eventYears, boolean[] injuryYears) throws java.lang.Exception
title,
- the name which identifies the series in the filefirstYear
- hasPith
- hasBark
- recordingYears
- eventYears
- injuryYears
- java.lang.Exception
public FHSeries(FHSeries inSeries)
inSeries
- public java.lang.String getTitle()
public int getFirstYear()
public int getLastYear()
public int getLength()
public boolean hasPith()
public boolean hasBark()
public boolean[] getRecordingYears()
public boolean[] getEventYears()
public boolean[] getInjuryYears()
public java.util.ArrayList<FHCategoryEntry> getCategoryEntries()