Maturity converter
The maturity converter service converts any pillar value into a duration, expressed in number of days, year fraction or a date relative to the current date. The interface of the bean isIMaturityConverter. It can be injected into any Atoti plugin that extends the IMaturityConverterAware interface.
The interface provides the following services:
Here are the parameters needed to make a conversion:
The default implementation provided is
SimpleMaturityConverter.
Tenor converter
The tenor converter transforms a pillar and an as-of date into the target date. The default implementationSimpleTenorConverter handles several pillar types:
Day count convention
TheIDayCountConvention converts a pair of dates into a duration expressed in days or years. Several implementations are provided:
Business day calendar and convention
TheIBusinessDayCalendar tells if a day is open or closed. The IBusinessDayConvention finds the matching business day from a given date.
The common library provides:
TargetBusinessDayConvention: open days based on the Target2 settlement system calendar.NextBusinessDayConvention: returns the closest next open day.