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.4
Syntax
public abstract class Calculation

The Calculation type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCoolingDegreeDays Returns a non-null CoolingDegreeDaysCalculation object with the specified base temperature.
Public methodEquals 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 Returns a non-null HeatingDegreeDaysCalculation object with the specified base temperature.
Top
Remarks

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