net.agmodel.weatherData
Interface MultiQuantity

All Superinterfaces:
CompoundSequence, MetSequence, Sequence
All Known Subinterfaces:
SoilTemperature
All Known Implementing Classes:
AirTempMultiImpl, LeafWetnessMultiImpl, MultiImpl, SoilTemperatureImpl

public interface MultiQuantity
extends MetSequence

Parent interface for airMulti, and leaf wetness sequences. Use in situations where there are no standards for the "sub-type" of measurements or in experimental situations where you need to handle replicates. eg there are no agreed standards for leaf wetness measurements.


Method Summary
 JigsawQuantity getAverage(int index, Interval interval)
          Returns the average temperature over the interval.
 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.
 
Methods inherited from interface net.agmodel.weatherData.MetSequence
getSequenceElement, summarize
 
Methods inherited from interface net.agmodel.physical.CompoundSequence
cancelTemporalInterpolation, getAllCoverage, getAllData, getCoverage, getData, getMaximumTemporalInterpolation, getSubHeading, getTemporalInterpolation, getUnitsHeading, setSequenceHeading, setSubHeading, setTemporalInterpolation, setUnitsHeading
 
Methods inherited from interface net.agmodel.physical.Sequence
clone, dumpSequence, getColumnHeading, getContentsAsString, getCurrentResolution, getDateRange, getName, getNumberOfSubComponents, getResolution, getSequenceHeading, getSubHeading, getSummaryKind, getUnitsHeading, setColumnHeading, setName
 

Method Detail

getMinimum

public JigsawQuantity getMinimum(int index,
                                 Interval interval)
Returns the minimum temperature over the interval. Temperatures at either end of the interval are included in the comparison if more than 50% of their duration lies within the interval of interest.

Parameters:
interval - the interval of interest
index - the component of interest (0-based)
Returns:
the minimum temperature

getMaximum

public JigsawQuantity getMaximum(int index,
                                 Interval interval)
Returns the maximum temperature over the interval. Sequence values at either end of the interval are included in the comparison if more than 50% of their duration lies within the interval of interest.

Parameters:
interval - the interval of interest
index - the component of interest (0-based)
Returns:
the maximum value

getInstant

public JigsawQuantity getInstant(int index,
                                 Date time)
Returns the instantaneous temperature at a particular point in time. If interpolation is requested, the value may be spatially and/or temporally interpolated from other data.

Parameters:
time - the time of interest
index - the component of interest (0-based)
Returns:
the instantaneous value

getAverage

public JigsawQuantity getAverage(int index,
                                 Interval interval)
Returns the average temperature over the interval. Temperatures at either end of the interval are included by weighting their values according to the proportion of their duration that lies in the period of interest.

Parameters:
interval - the interval of interest
index - the component of interest (0-based)
Returns:
the average value