|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.agmodel.physical.GeneralSequenceImpl
|
+--net.agmodel.weatherData.GeneralMetSequenceImpl
|
+--net.agmodel.weatherData.ScalarMaxMinImpl
|
+--net.agmodel.weatherData.ScalarMaxMinMeanImpl
Adds a store for the true mean value to TempMaxMin
| Field Summary | |
protected Store |
meanValues
|
| Fields inherited from class net.agmodel.weatherData.ScalarMaxMinImpl |
maxValues, measurementHeight, minValues, pb |
| Fields inherited from class net.agmodel.weatherData.GeneralMetSequenceImpl |
rb |
| Fields inherited from class net.agmodel.physical.GeneralSequenceImpl |
dateRange, maximumTemporalInterpolation, summaryHistory |
| Constructor Summary | |
ScalarMaxMinMeanImpl(MetElement element,
Interval dateRange,
SummaryHistory composition)
Creates a sequence of maximum, minimum, and mean values. |
|
ScalarMaxMinMeanImpl(MetElement element,
Interval dateRange,
SummaryHistory composition,
double measurementHeight)
Creates a sequence of maximum, minimum, and mean values. |
|
| Method Summary | |
Object |
clone()
|
JigsawQuantity |
getAverage(Interval interval)
Returns the true mean value over the interval |
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)
May estimate the value at a point in time Currently just returns the average value |
protected Store |
getMeanStore()
|
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 |
putMaxMinMean(Date time,
float maximum,
float minimum,
float mean)
Puts a maximum, minimum value pair into the sequence. |
void |
putMaxMinMeanOverInterval(Interval interval,
float maximum,
float minimum,
float mean)
Puts a maximum, minimum value pair into the sequence based on an interval |
void |
putMean(Date time,
float mean)
Puts the mean value into the sequence. |
void |
putMeanOverInterval(Interval interval,
float mean)
Puts the mean value into the sequence based on an interval |
protected void |
setMeanStore(Store newMean)
|
void |
setSubHeading(int index,
String aHeading)
Does nothing |
| Methods inherited from class net.agmodel.weatherData.ScalarMaxMinImpl |
getInstantMaximum, getInstantMinimum, getMaximum, getMaxStore, getMeasurementHeight, getMinimum, getMinStore, putMax, putMaxMin, putMaxMinOverInterval, putMaxOverInterval, putMin, putMinOverInterval, setMaxStore, setMinStore |
| 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, finalize, 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 |
| Field Detail |
protected Store meanValues
| Constructor Detail |
public ScalarMaxMinMeanImpl(MetElement element,
Interval dateRange,
SummaryHistory composition,
double measurementHeight)
element - the meteorological element eg AIRTEMPERATURE or WATERTEMPERATUREdateRange - the interval for which data is storedcomposition - a record of how raw data has been summarised to make the sequence.measurementHeight - the height in metres;
public ScalarMaxMinMeanImpl(MetElement element,
Interval dateRange,
SummaryHistory composition)
default height for value measurements.
dateRange - the interval for which data is storedcomposition - a record of how raw data has been summarised to make the sequence.| Method Detail |
protected void setMeanStore(Store newMean)
protected Store getMeanStore()
public void putMaxMinMean(Date time,
float maximum,
float minimum,
float mean)
time - the ending time of the interval over which the measurement was mademaximum - the maximum value in the period preceding this timeminimum - the minimum value in the period preceding this timemean - the true mean value in the period preceding this time
public void putMaxMinMeanOverInterval(Interval interval,
float maximum,
float minimum,
float mean)
interval - the interval over which the maximum and minimum were recordedmaximum - the maximum value over the intervalminimum - the minimum value over the intervalmean - the mean value over the interval
public void putMean(Date time,
float mean)
time - the ending time of the interval over which the measurement was made.mean - the mean value in the period preceding this time
public void putMeanOverInterval(Interval interval,
float mean)
interval - the interval over which the maximum was recordedmean - the mean value during the intervalpublic JigsawQuantity getAverage(Interval interval)
getAverage in class ScalarMaxMinImplinterval - the interval of interest
public JigsawQuantity getInstant(Date time)
getInstant in class ScalarMaxMinImpltime - the time of interest
public String getColumnHeading()
Sequence
getColumnHeading in interface SequencegetColumnHeading in class ScalarMaxMinImplpublic int getNumberOfSubComponents()
Sequence
getNumberOfSubComponents in interface SequencegetNumberOfSubComponents in class ScalarMaxMinImplSequence.getSequenceHeading(String)public String getSubHeading(int index)
CompoundSequence
getSubHeading in interface CompoundSequencegetSubHeading in class ScalarMaxMinImplSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)
public void setSubHeading(int index,
String aHeading)
setSubHeading in interface CompoundSequencesetSubHeading in class ScalarMaxMinImplaHeading - the new headingindex - the zero-based index of the headingSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)
public String getContentsAsString(Date time,
String delimiter)
Sequence
getContentsAsString in interface SequencegetContentsAsString in class ScalarMaxMinImpltime - the time of interest.delimiter - a string to use between values if required.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 ScalarMaxMinImplindex - the zero-based index of the subcomponent
Sequence.getNumberOfSubComponents()public 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 ScalarMaxMinImplindex - the zero-based index of the subcomponent
public Object clone()
clone in interface Sequenceclone in class ScalarMaxMinImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||