|
||||||||||
| 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.MultiImpl
Manages a set of readings with more than one component.
| Field Summary |
| Fields inherited from class net.agmodel.weatherData.GeneralMetSequenceImpl |
rb |
| Fields inherited from class net.agmodel.physical.GeneralSequenceImpl |
dateRange, maximumTemporalInterpolation, summaryHistory |
| Constructor Summary | |
protected |
MultiImpl(MetElement element,
Interval dateRange,
SummaryHistory composition,
int nSubComponents)
Creates a MultiImpl with space for n subcomponents, but doesn't create the stores themselves. |
|
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. |
protected Store |
getStore(int index)
|
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. |
protected void |
setStore(int index,
Store newStore)
|
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, finalize, 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 |
protected MultiImpl(MetElement element,
Interval dateRange,
SummaryHistory composition,
int nSubComponents)
public MultiImpl(MetElement element,
Interval dateRange,
SummaryHistory composition,
String[] newlabels)
newlabels - labels for the subcomponents| Method Detail |
protected void setStore(int index,
Store newStore)
protected Store getStore(int index)
public int getNumberOfSubComponents()
Sequence
getNumberOfSubComponents in interface SequencegetNumberOfSubComponents in class GeneralMetSequenceImplSequence.getSequenceHeading(String)public String getSubHeading(int index)
CompoundSequence
getSubHeading in interface CompoundSequencegetSubHeading in class GeneralMetSequenceImplSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)
public void setSubHeading(int index,
String aHeading)
setSubHeading in interface CompoundSequencesetSubHeading in class GeneralMetSequenceImplaHeading - the new headingindex - the zero-based index of the headingSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)
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 GeneralSequenceImpltime - the time of interest.delimiter - a string to use between values if required.
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 GeneralSequenceImplindex - 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 GeneralSequenceImplindex - the zero-based index of the subcomponent
public 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 | |||||||||