net.degreedays.api.data.impl
Class TemperatureTimeSeriesCalculation

java.lang.Object
  extended by net.degreedays.api.data.TimeSeriesCalculation
      extended by net.degreedays.api.data.impl.TemperatureTimeSeriesCalculation
All Implemented Interfaces:
java.io.Serializable

public final class TemperatureTimeSeriesCalculation
extends TimeSeriesCalculation
implements java.io.Serializable

A type of TimeSeriesCalculation that specifies that temperature data should be calculated with the specified interval (e.g. hourly) and unit (e.g. Celsius).

Find out why time-series data is "calculated".

Since:
1.2

Instances of this class are immutable. You can safely reuse them and call them from multiple threads at once.


Constructor Summary
TemperatureTimeSeriesCalculation(TimeSeriesInterval interval, TemperatureUnit temperatureUnit)
          Constructs a TimeSeriesCalculation object with the specified interval and temperature unit.
 
Method Summary
 TemperatureUnit temperatureUnit()
          Returns the non-null TemperatureUnit indicating whether the temperatures should be calculated in Celsius or Fahrenheit.
 java.lang.String toString()
          Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
 
Methods inherited from class net.degreedays.api.data.TimeSeriesCalculation
equals, hashCode, hourlyTemperature, interval
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemperatureTimeSeriesCalculation

public TemperatureTimeSeriesCalculation(TimeSeriesInterval interval,
                                        TemperatureUnit temperatureUnit)
Constructs a TimeSeriesCalculation object with the specified interval and temperature unit.

Parameters:
interval - specifies the interval (e.g. hourly) that the time-series data should be calculated with. Cannot be null.
temperatureUnit - specifies whether the data should be calculated in Celsius or Fahrenheit. Cannot be null.
Throws:
java.lang.NullPointerException - if interval or temperatureUnit is null.
Method Detail

temperatureUnit

public TemperatureUnit temperatureUnit()
Returns the non-null TemperatureUnit indicating whether the temperatures should be calculated in Celsius or Fahrenheit.


toString

public java.lang.String toString()
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.

The exact details of the representation are unspecified and subject to change.

Overrides:
toString in class java.lang.Object


www.degreedays.net/api/