C# 클래스 HandCoded.Finance.CalendarRule

A CalendarRule instance contains the data and algorithmic rule necessary to compute the date when a holiday will fall in any appropriate year.
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 메소드들

메소드 설명
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.

IsApplicable ( int year ) : bool

Determines if the CalendarRule is applicable to the given year.

보호된 메소드들

메소드 설명
CalendarRule ( string name, int from, int until ) : System

Constructs a CalendarRule with a given name and applicable year range.

메소드 상세

CalendarRule() 보호된 메소드

Constructs a CalendarRule with a given name and applicable year range.
protected CalendarRule ( string name, int from, int until ) : 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.
리턴 System

Generate() 공개 추상적인 메소드

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 abstract Generate ( Calendar calendar, int year ) : Date
calendar Calendar The used to identify non-business days.
year int The year to generate the holiday for.
리턴 Date

IsApplicable() 공개 메소드

Determines if the CalendarRule is applicable to the given year.
public IsApplicable ( int year ) : bool
year int The year to be tested.
리턴 bool