net.agmodel.weatherData
Class AirTempSingleImpl
java.lang.Object
|
+--net.agmodel.physical.GeneralSequenceImpl
|
+--net.agmodel.weatherData.GeneralMetSequenceImpl
|
+--net.agmodel.weatherData.ScalarImpl
|
+--net.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.
- See Also:
- Serialized Form
| 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.physical.GeneralSequenceImpl |
cancelTemporalInterpolation, dumpSequence, getAllCoverage, getAllData, getCurrentResolution, getDateRange, getMaximumTemporalInterpolation, getResolution, getSubHeading, getSummaryHistory, getSummaryKind, getTemporalInterpolation, getUnitsHeading, setTemporalInterpolation |
| 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 |
AirTempSingleImpl
public AirTempSingleImpl(Interval dateRange,
SummaryHistory composition,
double measurementHeight)
- Creates an air temperature sequence.
- Parameters:
dateRange - the interval for which temperatures are storedcomposition - 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 storedcomposition - a record of how raw data has been summarised to make the sequence.
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.