net.finmath.time.daycount
Interface DayCountConventionInterface
-
- All Known Implementing Classes:
- DayCountConvention_30E_360, DayCountConvention_30E_360_ISDA, DayCountConvention_30U_360, DayCountConvention_ACT, DayCountConvention_ACT_360, DayCountConvention_ACT_365, DayCountConvention_ACT_365A, DayCountConvention_ACT_365L, DayCountConvention_ACT_ACT_AFB, DayCountConvention_ACT_ACT_ICMA, DayCountConvention_ACT_ACT_ISDA, DayCountConvention_ACT_ACT_YEARFRAC, DayCountConvention_NL_365, DayCountConvention_NONE, DayCountConvention_UNKNOWN
public interface DayCountConventionInterfaceInterface for various day count conventions. Classes implementing this interface have to implement the methodsgetDaycount(Calendar, Calendar)andgetDaycountFraction(Calendar, Calendar). Classes implementing these methods then provide day counting and day count fractions for a given interval on aGregorianCalendar.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description doublegetDaycount(java.util.Calendar startDate, java.util.Calendar endDate)Return the number of days between startDate and endDate given the specific daycount convention.doublegetDaycountFraction(java.util.Calendar startDate, java.util.Calendar endDate)Return the daycount fraction corresponding to the period from startDate to endDate given the specific daycount convention.
-
-
-
Method Detail
-
getDaycount
double getDaycount(java.util.Calendar startDate, java.util.Calendar endDate)Return the number of days between startDate and endDate given the specific daycount convention.- Parameters:
startDate- The start date given as aCalendar.endDate- The end date given as aCalendar.- Returns:
- The number of days within the given period.
-
getDaycountFraction
double getDaycountFraction(java.util.Calendar startDate, java.util.Calendar endDate)Return the daycount fraction corresponding to the period from startDate to endDate given the specific daycount convention.- Parameters:
startDate- The start date given as aCalendar.endDate- The end date given as aCalendar.- Returns:
- The daycount fraction corresponding to the given period.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG