|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to sequences of measurements of some physical property.
Sequence is an parent for domain-specific descendents like MetSequence.
In some situations an implementor may contain several related time series of data (eg wet and dry bulb temperatures).
Implementors typically store data in one or more Store utility classes.
This separation is so different storage methods can be "plugged in" for different kinds of data
eg. rainfall data or leaf wetness data can readily be compressed by a kind of run length encoding.
Hourly temperatures are less amenable to such compression.
Note that Sequences follow the same convention as Stores and MetRequests,
which is that the range of data stored is partially closed (start,end].
This means in descendent classes you can call getInstantValue(end)
but not getInstantValue(start).
| Method Summary | |
void |
cancelTemporalInterpolation()
Cancels any temporal interpolation in subsequent calls to getXXXX |
float[][] |
getAllCoverage()
Indicates which array elements returned by getAllData() are missing.
|
double[][] |
getAllData()
Creates a two-dimensional array containing the data. |
float[] |
getCoverage(int index)
Indicates which array elements returned by getData(int) are missing.
|
double[] |
getData(int index)
Creates a one-dimensional array containing one subcomponent of the data. |
Duration |
getMaximumTemporalInterpolation()
Returns the longest data gap over which values can be temporally interpolated |
String |
getSubHeading(int index)
Gets a brief description of the data stored in a Sequence subcomponent in the language of the default locale. |
boolean |
getTemporalInterpolation()
Indicates whether temporal interpolation is enabled |
String |
getUnitsHeading(int index)
Gets a string representation of the measurement units of the column. |
void |
setSequenceHeading(String aHeading)
Sets the brief top level description of the kind of data stored in the sequence in the language of the default locale. |
void |
setSubHeading(int index,
String aHeading)
Sets the brief description of the kind of data stored in the sequence in the language of the default locale. |
void |
setTemporalInterpolation(Duration maximumTemporalInterpolation)
Sets the longest data gap over which values can be temporally interpolated. |
void |
setUnitsHeading(int index,
String aHeading)
Sets a string representation of the measurement units of the column. |
| Methods inherited from interface net.agmodel.physical.Sequence |
clone, dumpSequence, getColumnHeading, getContentsAsString, getCurrentResolution, getDateRange, getName, getNumberOfSubComponents, getResolution, getSequenceHeading, getSubHeading, getSummaryKind, getUnitsHeading, setColumnHeading, setName |
| Method Detail |
public void setTemporalInterpolation(Duration maximumTemporalInterpolation)
public void cancelTemporalInterpolation()
public boolean getTemporalInterpolation()
getMaximumTemporalInterpolation()public Duration getMaximumTemporalInterpolation()
getTemporalInterpolation()public void setSequenceHeading(String aHeading)
aHeading - the new headingSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)public String getSubHeading(int index)
Sequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)
public void setSubHeading(int index,
String aHeading)
aHeading - the new headingindex - the zero-based index of the headingSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)public String getUnitsHeading(int index)
Sequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String),
getSubHeading(int)
public void setUnitsHeading(int index,
String aHeading)
index - the zero-based index of the headingaHeading - the new headingSequence.getNumberOfSubComponents(),
setSequenceHeading(String),
setSubHeading(int,String)public double[][] getAllData()
getAllCoverage() to test for missing values
(at present these are returned as Double.NaN but don't rely on this).double[][] theData=getAllData(); int components=getNumberOfSubComponents(); for (int timeIndex=1;timeIndex
- Returns:
- the data within the sequence, with each row representing one interval of time.
public float[][] getAllCoverage()
getAllData() are missing.
Coverage values are in the range JigsawQuantity.DEVOID to JigsawQuantity.COMPLETE.
public double[] getData(int index)
getCoverage(int) to test for missing values
(at present these are returned as Double.NaN but don't rely on this).
index - the zero-based index of the subcomponent
Sequence.getNumberOfSubComponents()public float[] getCoverage(int index)
getData(int) are missing.
Coverage values are in the range JigsawQuantity.DEVOID to JigsawQuantity.COMPLETE.
index - the zero-based index of the subcomponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||