net.agmodel.weatherData
Class LeafWetnessSingleImpl

java.lang.Object
  |
  +--net.agmodel.physical.GeneralSequenceImpl
        |
        +--net.agmodel.weatherData.GeneralMetSequenceImpl
              |
              +--net.agmodel.weatherData.ScalarImpl
                    |
                    +--net.agmodel.weatherData.LeafWetnessSingleImpl
All Implemented Interfaces:
Cloneable, CompoundSequence, LeafWetness, MetSequence, ScalarQuantity, Sequence, Serializable

public class LeafWetnessSingleImpl
extends ScalarImpl
implements LeafWetness

Manages a sequence of leaf wetness measurements from a single sensor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.agmodel.weatherData.ScalarImpl
measurementHeight, store
 
Fields inherited from class net.agmodel.weatherData.GeneralMetSequenceImpl
rb
 
Fields inherited from class net.agmodel.physical.GeneralSequenceImpl
dateRange, maximumTemporalInterpolation, summaryHistory
 
Constructor Summary
LeafWetnessSingleImpl(Interval dateRange, SummaryHistory composition)
          Creates a leaf wetness sequence.
 
Method Summary
 LeafWetnessSingleImpl average(Duration newResolution)
          Creates a new leaf wetness sequence, averaging to a lower resolution.
 MetSequence summarize(Duration longerResolution)
          Creates a lower resolution sequence which summarizes this sequence
 
Methods inherited from class net.agmodel.weatherData.ScalarImpl
clone, getAverage, getContentsAsString, getCoverage, getData, getInstant, getMaximum, getMeasurementHeight, getMinimum, getNumberOfSubComponents, getSubHeading, putInstantValue, putValueOverInterval, setStore, setSubHeading
 
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.ScalarQuantity
getAverage, getInstant, getMaximum, getMinimum
 
Methods inherited from interface net.agmodel.weatherData.MetSequence
getSequenceElement
 
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
 

Constructor Detail

LeafWetnessSingleImpl

public LeafWetnessSingleImpl(Interval dateRange,
                             SummaryHistory composition)
Creates a leaf wetness sequence.

Parameters:
dateRange - the interval for which temperatures are stored
composition - a record of how raw data has been summarised to make the sequence.
Method Detail

average

public LeafWetnessSingleImpl average(Duration newResolution)
Creates a new leaf wetness sequence, averaging to a lower resolution.

Parameters:
newResolution - the target resolution required.
Returns:
a new temperature sequence

summarize

public MetSequence summarize(Duration longerResolution)
Description copied from interface: MetSequence
Creates a lower resolution sequence which summarizes this sequence

Specified by:
summarize in interface MetSequence
Parameters:
longerResolution - the new resolution to summarize to
Returns:
a summarized sequence.