Click or drag to resize

Calculation Class

Defines how degree days should be calculated e.g. HDD or CDD with a specific base temperature.
Inheritance Hierarchy

Namespace:  DegreeDays.Api.Data
Assembly:  DegreeDays (in DegreeDays.dll) Version: 1.3
public abstract class Calculation

The Calculation type exposes the following members.

Public methodStatic memberCoolingDegreeDays(Temperature)
Returns a non-null CoolingDegreeDaysCalculation object with the specified base temperature.
Public methodEquals(Object)
Two Calculation objects are equal if they have the same class and the same configuration.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Overridden to ensure consistency with Equals.
(Overrides ObjectGetHashCode.)
Public methodStatic memberHeatingDegreeDays(Temperature)
Returns a non-null HeatingDegreeDaysCalculation object with the specified base temperature.

To create a Calculation object you can use the static factory methods of this class. For example:

Calculation hdd = Calculation.HeatingDegreeDays(Temperature.Celsius(12.5));
Calculation cdd = Calculation.CoolingDegreeDays(Temperature.Celsius(21));

This abstract class is not designed to be extended by third-party code, which is why it does not have an accessible constructor.

Thread Safety
All concrete subclasses of this abstract class are immutable. You can safely reuse them and call them from multiple threads at once.
See Also