net.agmodel.weatherData
Class AirTempMaxMinImpl

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

public class AirTempMaxMinImpl
extends ScalarMaxMinImpl
implements AirTemperature

Manages a pair of maximum and minimum air temperature sequences

Author:
Matthew Laurenson
See Also:
Serialized Form

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

AirTempMaxMinImpl

public AirTempMaxMinImpl(Interval dateRange,
                         SummaryHistory composition,
                         double measurementHeight)
Creates a sequence of maximum and minimum 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;

AirTempMaxMinImpl

public AirTempMaxMinImpl(Interval dateRange,
                         SummaryHistory composition)
Creates a sequence of maximum and minimum 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 AirTempMaxMinImpl 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.