|
JMSLTM Numerical Library 4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Component of DayCountBasis. The day count basis consists of a
month basis and a yearly basis. Each of these components implements this
interface.
DayCountBasis| Method Summary | |
int |
daysBetween(GregorianCalendar date1,
GregorianCalendar date2)
Returns the number of days from date1 to
date2. |
double |
daysInPeriod(GregorianCalendar date,
int frequency)
Returns the number of days in a coupon period. |
int |
getDaysInYear(GregorianCalendar settlement,
GregorianCalendar maturity)
Returns the number of days in the year. |
| Method Detail |
public int daysBetween(GregorianCalendar date1,
GregorianCalendar date2)
date1 to
date2.
date1 - a GregorianCalendar which specifies the
initial datedate2 - a GregorianCalendar which specifies the
final date
int indicating the number of days from
date1 to date2.
public double daysInPeriod(GregorianCalendar date,
int frequency)
date - a GregorianCalendar which specifies the
final date of the coupon periodfrequency - is the number of coupon periods per year. This
is typically 1, 2 or 4.
int which specifies the number of days in
the coupon period
public int getDaysInYear(GregorianCalendar settlement,
GregorianCalendar maturity)
settlement - a GregorianCalendar date which
specifies the settlement datematurity - a GregorianCalendar date which
specifies the maturity date
int which specifies the number of days in
the year
|
JMSLTM Numerical Library 4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||