C# 클래스 HandCoded.Finance.RuleBasedCalendar

A RuleBasedCalendar uses a set of CalendarRule instances to derive the dates on which holidays will occur either in the past or the future.
상속: Calendar
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 메소드들

메소드 설명
AddRule ( CalendarRule rule ) : void

Adds a CalendarRule instance to the set maintained by the current instance.

IsBusinessDay ( Date date ) : bool

Determines if the Date provided falls on a business day in this Calendar (e.g. not a holiday or weekend).

RuleBasedCalendar ( string name, Weekend weekend ) : System

Constructs a RuleBasedCalendar with the given name and Weekend rule.

비공개 메소드들

메소드 설명
Generate ( int min, int max ) : void

Uses the CalendarRule instances to extend the holiday set for the years specified.

메소드 상세

AddRule() 공개 메소드

Adds a CalendarRule instance to the set maintained by the current instance.
public AddRule ( CalendarRule rule ) : void
rule CalendarRule The to be added.
리턴 void

IsBusinessDay() 공개 메소드

Determines if the Date provided falls on a business day in this Calendar (e.g. not a holiday or weekend).
public IsBusinessDay ( Date date ) : bool
date Date The to be tested.
리턴 bool

RuleBasedCalendar() 공개 메소드

Constructs a RuleBasedCalendar with the given name and Weekend rule.
public RuleBasedCalendar ( string name, Weekend weekend ) : System
name string
weekend Weekend
리턴 System