Dated |
The DatedBreakdown type exposes the following members.
Name | Description | |
---|---|---|
AllowPartialLatest | Returns true if the latest day range can be partially filled (i.e. incomplete); false otherwise (the default case). |
Name | Description | |
---|---|---|
Custom | Returns a non-null CustomBreakdown object that specifies degree days broken down to match the DayRanges passed in. | |
Daily | Returns a non-null DailyBreakdown object that specifies daily degree days covering the specified period in time. | |
Equals |
Two Breakdown objects are equal if they have the same class
and the same configuration.
(Inherited from Breakdown) | |
GetHashCode |
Overridden to ensure consistency with Equals.
(Inherited from Breakdown) | |
Monthly(Period) | Returns a non-null MonthlyBreakdown object that specifies monthly degree days covering the specified period in time and broken down according to regular calendar months. | |
Monthly(Period, StartOfMonth) | Returns a non-null MonthlyBreakdown object that specifies monthly degree days covering the specified period in time, with each "month" starting on the specified day of the month. | |
Weekly | Returns a non-null WeeklyBreakdown object that specifies weekly degree days covering the specified period in time, with each "week" starting on the specified day of the week. | |
Yearly(Period) | Returns a non-null YearlyBreakdown object that specifies yearly degree days covering the specified period in time and broken down according to regular calendar years. | |
Yearly(Period, StartOfYear) | Returns a non-null YearlyBreakdown object that specifies yearly degree days covering the specified period in time, with each "year" starting on the specified day of the year. |
This is the abstract superclass of the types of Breakdown that can be taken by a DatedDataSpec.
To create a DatedBreakdown object you can use the static factory methods of this class. For example:
DatedBreakdown dailyBreakdownOverLast30Days = DatedBreakdown.Daily(Period.LatestValues(30)); DatedBreakdown weeklyBreakdownFor2010WithWeeksStartingOnMonday = DatedBreakdown.Weekly( Period.DayRange(new Day(2010, 1, 1).To(2010, 12, 31)), DayOfWeek.Monday); DatedBreakdown monthlyBreakdownOverLast12Months = DatedBreakdown.Monthly(Period.LatestValues(12)); DatedBreakdown yearlyBreakdownOverLast5Years = DatedBreakdown.Yearly(Period.LatestValues(5));
As you can see from the above examples, defining the Period is an important part of defining a DatedBreakdown. See that class for more information on the relevant options.
This abstract class is not designed to be extended by third-party code, which is why it does not have an accessible constructor.