|
|||||||||||
| 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 | |
Object |
clone()
|
String |
dumpSequence(DateFormat df,
String delimiter,
String rowTerminator)
Gets a printable version of the sequence contents. Data is formatted with a line for each time interval. The first field in the line is the date and time, formatted using the DateFormat passed as a parameter. The data for that time interval follows, separated by the default delimiter, with a new line character at the end of the row. |
String |
getColumnHeading()
Deprecated. use getName() instead |
String |
getContentsAsString(Date time,
String delimiter)
Returns the measurement associated with a particular time as a string. |
Duration |
getCurrentResolution()
Deprecated. use getResolution() instead |
Interval |
getDateRange()
Returns the date range for which data can be stored in the sequence |
String |
getName()
Returns a language independent name for the Sequence This name is typically used as a resourceBundle key or to identify the Sequence programmatically. |
int |
getNumberOfSubComponents()
Get the number of sub-components in the sequence. |
Duration |
getResolution()
Returns the current resolution of data in the sequence (eg daily); |
String |
getSequenceHeading(String delimiter)
Returns a localized top level description of the kind of data stored in the sequence. |
String |
getSubHeading(String delimiter)
Gets a localized subheading, assumed to be in the context of an overall column heading. |
SummaryKind |
getSummaryKind()
Returns the current summarykind of data in the sequence (eg averaged); |
String |
getUnitsHeading(String delimiter)
Gets a string representation of the measurement units of the column. |
void |
setColumnHeading(String aHeading)
Deprecated. use setName(String) or setSequenceHeading(String) instead |
void |
setName(String aName)
Sets the language independent name for the Sequence This name is typically used as a resourceBundle key or to identify the Sequence programmatically. |
| Method Detail |
public Interval getDateRange()
public Duration getCurrentResolution()
public Duration getResolution()
public SummaryKind getSummaryKind()
public String getColumnHeading()
public void setColumnHeading(String aHeading)
aHeading - the new headingpublic String getSequenceHeading(String delimiter)
delimiter - the delimiter to use if padding is required for multiple columnspublic String getSubHeading(String delimiter)
delimiter - the delimiter to use between columns if there are multiple columnsgetNumberOfSubComponents(),
getSequenceHeading(String)public int getNumberOfSubComponents()
getSequenceHeading(String)public String getUnitsHeading(String delimiter)
delimiter - the delimiter to use between columns if there are multiple columnsgetNumberOfSubComponents(),
getSequenceHeading(String),
getSubHeading(String)public String getName()
public void setName(String aName)
aName - the new heading
public String getContentsAsString(Date time,
String delimiter)
time - the time of interest.delimiter - a string to use between values if required.
public String dumpSequence(DateFormat df,
String delimiter,
String rowTerminator)
df - the format to use for the date and timedelimiter - the separator to use between the date and the datarowTerminator - the String used at the end of each row
public Object clone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||