|
|||||||||||
| 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.MultiImpl
Manages a set of readings with more than one component.
| Constructor Summary | |
MultiImpl(MetElement element,
Interval dateRange,
SummaryHistory composition,
String[] newlabels)
Creates a MultiImpl using an array of Strings to indicate the number and name of the subcomponents. |
|
| Method Summary | |
Object |
clone()
|
JigsawQuantity |
getAverage(int index,
Interval interval)
Returns the average temperature over the interval. |
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 new set of readings, averaging values to a lower resolution. |
JigsawQuantity |
getInstant(int index,
Date time)
Returns the instantaneous temperature at a particular point in time. |
JigsawQuantity |
getMaximum(int index,
Interval interval)
Returns the maximum temperature over the interval. |
JigsawQuantity |
getMinimum(int index,
Interval interval)
Returns the minimum temperature over the 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 |
putInstantValue(int index,
Date time,
float value)
Records an instantaneous value at a time |
void |
putValueOverInterval(int index,
Interval interval,
float value)
Records the average value of a component over some subinterval. |
void |
setSubHeading(int index,
String aHeading)
Does nothing |
| Methods inherited from class net.agmodel.weatherData.GeneralMetSequenceImpl |
getColumnHeading, 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 |
getSequenceElement, summarize |
| Methods inherited from interface net.agmodel.physical.CompoundSequence |
cancelTemporalInterpolation, getAllCoverage, getAllData, getMaximumTemporalInterpolation, getTemporalInterpolation, getUnitsHeading, setSequenceHeading, setTemporalInterpolation, setUnitsHeading |
| Methods inherited from interface net.agmodel.physical.Sequence |
dumpSequence, getColumnHeading, getCurrentResolution, getDateRange, getName, getResolution, getSequenceHeading, getSubHeading, getSummaryKind, getUnitsHeading, setColumnHeading, setName |
| Constructor Detail |
public MultiImpl(MetElement element,
Interval dateRange,
SummaryHistory composition,
String[] newlabels)
newlabels - labels for the subcomponents| Method Detail |
public 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 JigsawQuantity getMinimum(int index,
Interval interval)
MultiQuantity
getMinimum in interface MultiQuantityinterval - the interval of interestindex - the component of interest (0-based)
public JigsawQuantity getMaximum(int index,
Interval interval)
MultiQuantity
getMaximum in interface MultiQuantityinterval - the interval of interestindex - the component of interest (0-based)
public JigsawQuantity getInstant(int index,
Date time)
MultiQuantity
getInstant in interface MultiQuantitytime - the time of interestindex - the component of interest (0-based)
public JigsawQuantity getAverage(int index,
Interval interval)
MultiQuantity
getAverage in interface MultiQuantityinterval - the interval of interestindex - the component of interest (0-based)
public String getContentsAsString(Date time,
String delimiter)
Sequence
getContentsAsString in interface SequencegetContentsAsString in class GeneralSequenceImpl
public void putInstantValue(int index,
Date time,
float value)
index - the subcomponent indextime - the point in timevalue - the temperature at that time
IllegalArgumentException - if the time is outside the interval that the period is intended to store
public void putValueOverInterval(int index,
Interval interval,
float value)
index - the subcomponent indexinterval - the period of time over which the measurement was taken.value - the average value over that interval
IllegalArgumentException - if the subinterval is outside the interval that the sequence was constructed to storepublic double[] getData(int index)
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 | ||||||||||