net.agmodel.weatherData
Class AirTempMaxMinMeanImpl

java.lang.Object
  extended bynet.agmodel.physical.GeneralSequenceImpl
      extended bynet.agmodel.weatherData.GeneralMetSequenceImpl
          extended bynet.agmodel.weatherData.ScalarMaxMinImpl
              extended bynet.agmodel.weatherData.ScalarMaxMinMeanImpl
                  extended bynet.agmodel.weatherData.AirTempMaxMinMeanImpl
All Implemented Interfaces:
AirTemperature, Cloneable, CompoundSequence, MetSequence, ScalarQuantity, Sequence, Serializable

public class AirTempMaxMinMeanImpl
extends ScalarMaxMinMeanImpl
implements AirTemperature

Adds a store for the true mean temperature to AirTempMaxMin

Author:
Matthew Laurenson
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface net.agmodel.weatherData.AirTemperature
DEFAULTHEIGHT
 
Constructor Summary
AirTempMaxMinMeanImpl(Interval dateRange, SummaryHistory composition)
          Creates a sequence of maximum, minimum, and mean temperatures.
AirTempMaxMinMeanImpl(Interval dateRange, SummaryHistory composition, double measurementHeight)
          Creates a sequence of maximum, minimum, and mean temperatures.
 
Method Summary
 AirTempMaxMinMeanImpl average(Duration longerResolution)
           
 MetSequence summarize(Duration longerResolution)
          Returns the result of the average method
 
Methods inherited from class net.agmodel.weatherData.ScalarMaxMinMeanImpl
clone, getAverage, getColumnHeading, getContentsAsString, getCoverage, getData, getInstant, getNumberOfSubComponents, getSubHeading, putMaxMinMean, putMaxMinMeanOverInterval, putMean, putMeanOverInterval, setSubHeading
 
Methods inherited from class net.agmodel.weatherData.ScalarMaxMinImpl
getInstantMaximum, getInstantMinimum, getMaximum, getMeasurementHeight, getMinimum, putMax, putMaxMin, putMaxMinOverInterval, putMaxOverInterval, putMin, putMinOverInterval
 
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.agmodel.weatherData.AirTemperature
getMeasurementHeight
 
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

AirTempMaxMinMeanImpl

public AirTempMaxMinMeanImpl(Interval dateRange,
                             SummaryHistory composition,
                             double measurementHeight)
Creates a sequence of maximum, minimum, and mean temperatures. Usually these are daily values, but the object can be used for other data resolutions. Note that some sites assign max and min temperatures recorded on a morning against different days (ie the maximum is assigned to the previous day) This is regarded as a presentation issue for client applications, and this method doesn't implement this behaviour.

Parameters:
dateRange - the interval for which data is stored
composition - a record of how raw data has been summarised to make the sequence.
measurementHeight - the height in metres;

AirTempMaxMinMeanImpl

public AirTempMaxMinMeanImpl(Interval dateRange,
                             SummaryHistory composition)
Creates a sequence of maximum, minimum, and mean temperatures. Usually these are daily values, but the object can be used for other data resolutions. Note that some sites assign max and min temperatures recorded on a morning against different days (ie the maximum is assigned to the previous day) This is regarded as a presentation issue for client applications, and this method doesn't implement this behaviour. This constructor uses the default height for temperature measurements.

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

average

public AirTempMaxMinMeanImpl average(Duration longerResolution)

summarize

public MetSequence summarize(Duration longerResolution)
Returns the result of the average method

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


Copyright (C) NARC 2001 All Rights Reserved.