net.agmodel.weatherData
Class AirTempSingleImpl

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

public class AirTempSingleImpl
extends ScalarImpl
implements AirTemperature

Manages a sequence of air temperatures. For maximum and minimum temperatures use AirTemperatureMaxMin.

Author:
Matthew Laurenson
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface net.agmodel.weatherData.AirTemperature
DEFAULTHEIGHT
 
Constructor Summary
AirTempSingleImpl(Interval dateRange, SummaryHistory composition)
          Creates an air temperature sequence.
AirTempSingleImpl(Interval dateRange, SummaryHistory composition, double measurementHeight)
          Creates an air temperature sequence.
 
Method Summary
 AirTempSingleImpl average(Duration newResolution)
          Creates a new temperature sequence, averaging temperature to a lower resolution.
 AirTempMaxMinMeanImpl averageAndExtrema(Duration newResolution)
          Creates a new temperature sequence, averaging temperature 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, 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, 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

AirTempSingleImpl

public AirTempSingleImpl(Interval dateRange,
                         SummaryHistory composition,
                         double measurementHeight)
Creates an air temperature sequence.

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

AirTempSingleImpl

public AirTempSingleImpl(Interval dateRange,
                         SummaryHistory composition)
Creates an air temperature sequence. This constructor uses the default height for temperature measurements.

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 AirTempSingleImpl average(Duration newResolution)
Creates a new temperature sequence, averaging temperature to a lower resolution.

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

averageAndExtrema

public AirTempMaxMinMeanImpl averageAndExtrema(Duration newResolution)
Creates a new temperature sequence, averaging temperature 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.


Copyright (C) NARC 2001 All Rights Reserved.