|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.agmodel.physical.GeneralSequenceImpl
net.agmodel.weatherData.GeneralMetSequenceImpl
net.agmodel.weatherData.ScalarMaxMinImpl
Manages a pair of maximum and minimum temperature sequences
| Method Summary | |
Object |
clone()
|
JigsawQuantity |
getAverage(Interval interval)
Returns the value midway between the maximum and minimum |
String |
getColumnHeading()
Returned a localized label for the Sequence |
String |
getContentsAsString(Date time,
String delimiter)
Returns the measurement associated with a particular time as a string. |
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. |
JigsawQuantity |
getInstant(Date time)
Will estimates the temperature at a point in time Currently just returns the average temperature |
JigsawQuantity |
getInstantMaximum(Date time)
Gets the maximum temperature in the sequence over an interval |
JigsawQuantity |
getInstantMinimum(Date time)
Gets the minimum temperature in the sequence over an interval |
JigsawQuantity |
getMaximum(Interval interval)
Gets the maximum temperature into the sequence based on an interval |
double |
getMeasurementHeight()
|
JigsawQuantity |
getMinimum(Interval interval)
Gets the minimum temperature into the sequence based on an interval |
int |
getNumberOfSubComponents()
Get the number of sub-components in the sequence. |
String |
getSubHeading(int index)
Gets a brief description of the data stored in a Sequence subcomponent in the language of the default locale. |
void |
putMax(Date time,
float maximum)
Puts the maximum value into the sequence. |
void |
putMaxMin(Date time,
float maximum,
float minimum)
Puts a maximum, minimum temperature pair into the sequence. |
void |
putMaxMinOverInterval(Interval interval,
float maximum,
float minimum)
Puts a maximum, minimum value pair into the sequence based on an interval |
void |
putMaxOverInterval(Interval interval,
float maximum)
Puts the maximum temperature into the sequence based on an interval |
void |
putMin(Date time,
float minimum)
Puts the minimum value into the sequence. |
void |
putMinOverInterval(Interval interval,
float minimum)
Puts the minimum temperature into the sequence based on an interval |
void |
setSubHeading(int index,
String aHeading)
Does nothing |
| Methods inherited from class net.agmodel.weatherData.GeneralMetSequenceImpl |
getName, getSequenceElement, getSequenceHeading, getUnitsHeading, setColumnHeading, setName, setSequenceHeading, setUnitsHeading |
| Methods inherited from class net.agmodel.physical.GeneralSequenceImpl |
cancelTemporalInterpolation, dumpSequence, getAllCoverage, getAllData, getCurrentResolution, getDateRange, getMaximumTemporalInterpolation, getResolution, getSubHeading, getSummaryHistory, getSummaryKind, getTemporalInterpolation, getUnitsHeading, setTemporalInterpolation |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.agmodel.weatherData.MetSequence |
summarize |
| Methods inherited from interface net.agmodel.physical.CompoundSequence |
cancelTemporalInterpolation, getAllCoverage, getAllData, getMaximumTemporalInterpolation, getTemporalInterpolation, setTemporalInterpolation |
| Methods inherited from interface net.agmodel.physical.Sequence |
dumpSequence, getCurrentResolution, getDateRange, getResolution, getSubHeading, getSummaryKind, getUnitsHeading |
| Method Detail |
public void putMaxMin(Date time,
float maximum,
float minimum)
time - the ending time of the interval over which the measurement was mademaximum - the maximum temperature in the period preceding this timeminimum - the minimum temperature in the period preceding this time
public void putMaxMinOverInterval(Interval interval,
float maximum,
float minimum)
interval - the interval over which the maximum and minimum were recordedmaximum - the maximum value in the period preceding this timeminimum - the minimum value in the period preceding this time
public void putMax(Date time,
float maximum)
time - the ending time of the interval over which the measurement was made.maximum - the maximum value in the period preceding this time
public void putMin(Date time,
float minimum)
time - the ending time of the interval over which the measurement was made.minimum - the minimum value in the period preceding this time
public void putMaxOverInterval(Interval interval,
float maximum)
interval - the interval over which the maximum was recordedmaximum - the maximum temperature during the interval
public void putMinOverInterval(Interval interval,
float minimum)
interval - the interval over which the minimum was recordedminimum - the minimum temperature during the intervalpublic JigsawQuantity getMaximum(Interval interval)
interval - the interval of interest
public JigsawQuantity getMinimum(Interval interval)
interval - the interval of interest
public JigsawQuantity getInstantMaximum(Date time)
time - the ending time of the interval of interest.
public JigsawQuantity getInstantMinimum(Date time)
time - the ending time of the interval of interest.
public JigsawQuantity getAverage(Interval interval)
interval - the interval of interest
public JigsawQuantity getInstant(Date time)
time - the time of interest
public String getColumnHeading()
Sequence
getColumnHeading in interface SequencegetColumnHeading in class GeneralMetSequenceImplpublic int getNumberOfSubComponents()
Sequence
getNumberOfSubComponents in interface SequencegetNumberOfSubComponents in class GeneralMetSequenceImplpublic String getSubHeading(int index)
CompoundSequence
getSubHeading in interface CompoundSequencegetSubHeading in class GeneralMetSequenceImpl
public void setSubHeading(int index,
String aHeading)
setSubHeading in interface CompoundSequencesetSubHeading in class GeneralMetSequenceImpl
public String getContentsAsString(Date time,
String delimiter)
Sequence
getContentsAsString in interface SequencegetContentsAsString in class GeneralSequenceImplpublic double getMeasurementHeight()
public double[] getData(int index)
CompoundSequenceCompoundSequence.getCoverage(int) to test for missing values
(at present these are returned as Double.NaN but don't rely on this).
getData in interface CompoundSequencegetData in class GeneralSequenceImplpublic float[] getCoverage(int index)
CompoundSequenceCompoundSequence.getData(int) are missing.
Coverage values are in the range JigsawQuantity.DEVOID to JigsawQuantity.COMPLETE.
getCoverage in interface CompoundSequencegetCoverage in class GeneralSequenceImplpublic Object clone()
clone in interface Sequenceclone in class GeneralSequenceImpl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||