Click or drag to resize

DatedDataValue Class

Contains a degree-day value for a specific dated period (a single day or a range of days like a specific week, month, or year).
Inheritance Hierarchy
SystemObject
  DegreeDays.Api.DataDataValue
    DegreeDays.Api.DataDatedDataValue

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public abstract class DatedDataValue : DataValue

The DatedDataValue type exposes the following members.

Properties
 NameDescription
Public propertyDayRange Gets the DayRange indicating the period in time that this DatedDataValue covers.
Public propertyFirstDay Gets the first Day of the period covered by this DatedDataValue.
Public propertyLastDay Gets the last Day of the period covered by this DatedDataValue.
Public propertyPercentageEstimated Gets the number between 0 and 100 (both inclusive) indicating the extent to which the calculated Value is based on estimated data.
(Inherited from DataValue)
Public propertyValue Gets the value, which will never be NaN or infinity, and, for degree days, will always be zero or greater.
(Inherited from DataValue)
Top
Methods
 NameDescription
Public methodStatic memberCreate(Double, Double, Day) Returns a non-null DatedDataValue object with the specified value and percentage estimated, and covering just the specified Day.
Public methodStatic memberCreate(Double, Double, DayRange) Returns a non-null DatedDataValue object with the specified value and percentage estimated, and covering the specified DayRange.
Public methodEquals Returns true if obj is a DatedDataValue object with an equal Value, PercentageEstimated, and DayRange; false otherwise.
(Overrides DataValueEquals(Object))
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides DataValueGetHashCode)
Public methodToString Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides DataValueToString)
Top
Remarks

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