net.degreedays.api.data.impl
Class CoolingDegreeDaysCalculation

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

public final class CoolingDegreeDaysCalculation
extends Calculation
implements java.io.Serializable

A type of Calculation that specifies that cooling degree days should be calculated and that holds the base temperature that they should be calculated to.

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


Constructor Summary
CoolingDegreeDaysCalculation(Temperature baseTemperature)
          Constructs a CoolingDegreeDaysCalculation object with the specified base temperature.
 
Method Summary
 Temperature baseTemperature()
          Returns the non-null base temperature of the cooling-degree-days calculation.
 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.Calculation
coolingDegreeDays, equals, hashCode, heatingDegreeDays
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoolingDegreeDaysCalculation

public CoolingDegreeDaysCalculation(Temperature baseTemperature)
Constructs a CoolingDegreeDaysCalculation object with the specified base temperature.

Parameters:
baseTemperature - the base temperature that the cooling degree days should be calculated to. Cannot be null.
Throws:
java.lang.NullPointerException - if baseTemperature is null.
Method Detail

baseTemperature

public Temperature baseTemperature()
Returns the non-null base temperature of the cooling-degree-days calculation.


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/