C# Class HandCoded.Finance.CalendarRule.Fixed

The Fixed class extends Calendar with an understanding of how to handle holidays than fall on fixed dates and for which the associate public holiday date may be rolled.
Inheritance: CalendarRule
Mostrar archivo Open project: formicary/fpml-toolkit-csharp

Public Methods

Method Description
Fixed ( string name, int from, int until, int month, int dayOfMonth, DateRoll dateRoll ) : System

Constructs a Fixed date calender rule.

Generate ( Calendar calendar, int year ) : Date

Applies the algorithm defined by the CalendarRule to calculate the date that a holiday falls in the given year using the given Calendar to avoid other non-business dates.

Method Details

Fixed() public method

Constructs a Fixed date calender rule.
public Fixed ( string name, int from, int until, int month, int dayOfMonth, DateRoll dateRoll ) : System
name string The name of the holiday.
from int The first year in which the holiday occurs.
until int The last year in which the holiday occurs.
month int The month of the year where the holidays falls.
dayOfMonth int The day of the month where the holiday falls.
dateRoll DateRoll The used to adjust dates.
return System

Generate() public method

Applies the algorithm defined by the CalendarRule to calculate the date that a holiday falls in the given year using the given Calendar to avoid other non-business dates.
public Generate ( Calendar calendar, int year ) : Date
calendar Calendar The used to identify non-business days.
year int The year to generate the holiday for.
return Date