C# Class 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.
Inheritance: Calendar
Afficher le fichier Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
Generate ( int min, int max ) : void

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

Method Details

AddRule() public méthode

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

IsBusinessDay() public méthode

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.
Résultat bool

RuleBasedCalendar() public méthode

Constructs a RuleBasedCalendar with the given name and Weekend rule.
public RuleBasedCalendar ( string name, Weekend weekend ) : System
name string
weekend Weekend
Résultat System