C# Class HandCoded.Finance.DateRoll

Instances of the DateRoll class carry out financial date adjustments. A DateRoll instance will apply a particular adjustment rule to a given Date using a business day Calendar to skip non-working days.
Afficher le fichier Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Méthodes publiques

Свойство Type Description
FOLLOWING DateRoll
MODFOLLOWING DateRoll
MODPRECEDING DateRoll
NONE DateRoll
PRECEDING DateRoll
WEEKEND DateRoll

Méthodes publiques

Méthode Description
Adjust ( Calendar calendar, Date date ) : Date

Adjusts a Date which falls on a holiday within the indicated Calendar to an appropriate business day.

ForName ( string name ) : DateRoll

Attempts to locate a DateRoll instance with the given name.

Méthodes protégées

Méthode Description
DateRoll ( string name ) : System

Constructs a DateRoll instance and adds it to the extent set indexed by its symbolic name.

Private Methods

Méthode Description
Following ( Calendar calendar, Date date ) : Date

Adjusts a Date to the next business day if it falls on a holiday.

ModFollowing ( Calendar calendar, Date date ) : Date

Adjusts a Date to the next business day if it falls on a holiday unless that would move the date into the next month in which case it is rolled to a preceding date.

ModPreceding ( Calendar calendar, Date date ) : Date

Adjusts a Date to the previous business day if it falls on a holiday unless that would move the date into the previous month in which case it is rolled to a following date.

None ( Calendar calendar, Date date ) : Date

A dummy adjustment that performs no change to the date.

Preceding ( Calendar calendar, Date date ) : Date

Adjusts a Date to the preceding business day if it falls on a holiday.

Weekend ( Calendar calendar, Date date ) : Date

Adjusts dates which fall on a Saturday to the preceding Friday, and those falling on a Sunday to the following Monday. This convention is used by some national holidays, for example Christmas Day in the USA.

Method Details

Adjust() public abstract méthode

Adjusts a Date which falls on a holiday within the indicated Calendar to an appropriate business day.
public abstract Adjust ( Calendar calendar, Date date ) : Date
calendar Calendar The to be used.
date Date The to adjust.
Résultat Date

DateRoll() protected méthode

Constructs a DateRoll instance and adds it to the extent set indexed by its symbolic name.
protected DateRoll ( string name ) : System
name string The symbolic name for this instance.
Résultat System

ForName() public static méthode

Attempts to locate a DateRoll instance with the given name.
public static ForName ( string name ) : DateRoll
name string The required DateRoll name.
Résultat DateRoll

Property Details

FOLLOWING public_oe static_oe property

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance FOLLOWING
Résultat DateRoll

MODFOLLOWING public_oe static_oe property

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance MODFOLLOWING
Résultat DateRoll

MODPRECEDING public_oe static_oe property

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance MODPRECEDING
Résultat DateRoll

NONE public_oe static_oe property

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance NONE
Résultat DateRoll

PRECEDING public_oe static_oe property

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance PRECEDING
Résultat DateRoll

WEEKEND public_oe static_oe property

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance WEEKEND
Résultat DateRoll