Class AbstractEpagomenalCalendar

java.lang.Object
net.okapia.osid.primordium.calendaring.framework.spi.AbstractCalendarInfo
net.okapia.osid.primordium.calendaring.framework.spi.AbstractEpagomenalCalendar
All Implemented Interfaces:
Serializable, CalendarInfo
Direct Known Subclasses:
ArmenianCalendar, CopticCalendar, EgyptianCalendar, EthiopianCalendar, FrenchRepublicanCalendar, ZoroastrianCalendar

public abstract class AbstractEpagomenalCalendar extends AbstractCalendarInfo
A base for the epagomenal calendars -- the ancient Egyptian and Armenian "vague year" and the French Republican -- which run twelve months of thirty days followed by a short thirteenth month of complementary (epagomenal) days: five in a common year, six in a leap year. The year numbering is continuous through zero, so the year is zero-based.

A calendar with no leap rule (Egyptian, Armenian) is a fixed 365-day vague year with five epagomenal days. A calendar with a leap rule (French Republican) takes six epagomenal days in a leap year; the rule sits on the year division and the epagomenal month's length rule reads it. The concrete subclass supplies its name, type, and epoch (the Julian Day at the start of its year zero).

See Also:
  • Constructor Details

    • AbstractEpagomenalCalendar

      protected AbstractEpagomenalCalendar(LeapingRule leapingRule)
      Builds the epagomenal tree.
      Parameters:
      leapingRule - the leap rule, or null for a fixed 365-day vague year
    • AbstractEpagomenalCalendar

      protected AbstractEpagomenalCalendar(LeapingRule leapingRule, DisplayText[] monthNames, DisplayText epagomenalName)
      Builds the epagomenal tree with named months.
      Parameters:
      leapingRule - the leap rule, or null for a fixed 365-day vague year
      monthNames - the twelve month names, in order
      epagomenalName - the name of the epagomenal thirteenth month
    • AbstractEpagomenalCalendar

      protected AbstractEpagomenalCalendar(LeapingRule leapingRule, DisplayText[] monthNames, DisplayText epagomenalName, DisplayText[] abbrev2, DisplayText[] abbrev3)
      Builds the epagomenal tree with named and abbreviated months.
      Parameters:
      leapingRule - the leap rule, or null for a fixed 365-day vague year
      monthNames - the twelve month names, in order
      epagomenalName - the name of the epagomenal thirteenth month
      abbrev2 - the thirteen two-character abbreviations, the epagomenal month last, or null where the calendar has none
      abbrev3 - the thirteen three-character abbreviations, likewise
  • Method Details