|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.DayCountBasis
com.ftlabs.fisa.DayCountBasis_30_360
public class DayCountBasis_30_360
Implementation of the 30/360 Day Count Basis.
| Field Summary |
|---|
| Fields inherited from class com.ftlabs.fisa.DayCountBasis |
|---|
_30_360, _30E_360, ACT_360, ACT_365, ACT_365_NL, ACT_ACT |
| Method Summary | |
|---|---|
double |
calculateDays(FISADate earlierDate,
FISADate laterDate,
int interestFrequency,
boolean eomAdjust)
Calculate the number of days between two dates using the 30/360 Day Count method. |
double |
calculateDaysAccrued(FISADate previousCouponDate,
FISADate nextCouponDate,
FISADate settlementDate,
int interestFrequency,
boolean eomAdjust)
Calculate the number of days accrued within a coupon period using the 30/360 day count method. |
double |
calculateDaysInPeriod(FISADate previousCouponDate,
FISADate nextCouponDate,
int interestFrequency,
boolean eomAdjust)
Calculate the total number of days in a coupon period. |
double |
calculateDaysRemaining(FISADate previousCouponDate,
FISADate nextCouponDate,
FISADate settlementDate,
int interestFrequency,
boolean eomAdjust)
Calculate the number of days remaining in a coupon period. |
int |
getDaysInYear(FISADate date)
Calculate the number of days for a given year. |
java.lang.String |
toString()
|
| Methods inherited from class com.ftlabs.fisa.DayCountBasis |
|---|
getByName, getSupportedDayCountBases |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public double calculateDaysInPeriod(FISADate previousCouponDate,
FISADate nextCouponDate,
int interestFrequency,
boolean eomAdjust)
calculateDaysInPeriod in class DayCountBasispreviousCouponDate - the previous coupon date.nextCouponDate - the next coupon date.interestFrequency - the interestFrequency.eomAdjust - determines whether the end of month adjustment rule is used.
public double calculateDaysAccrued(FISADate previousCouponDate,
FISADate nextCouponDate,
FISADate settlementDate,
int interestFrequency,
boolean eomAdjust)
calculateDaysAccrued in class DayCountBasispreviousCouponDate - the previous coupon date.nextCouponDate - the next coupon date.settlementDate - the date on which settlement occurs.interestFrequency - the interestFrequency.eomAdjust - determines whether the end of month adjustment rule is used.
public double calculateDaysRemaining(FISADate previousCouponDate,
FISADate nextCouponDate,
FISADate settlementDate,
int interestFrequency,
boolean eomAdjust)
calculateDaysRemaining in class DayCountBasispreviousCouponDate - the previous coupon date.nextCouponDate - the next coupon date.settlementDate - the date on which settlement occurs.interestFrequency - the interestFrequency.eomAdjust - determines whether the end of month adjustment rule is used.
public double calculateDays(FISADate earlierDate,
FISADate laterDate,
int interestFrequency,
boolean eomAdjust)
calculateDays in class DayCountBasisearlierDate - The starting date of the period.laterDate - The ending date of the period.interestFrequency - the interestFrequency.eomAdjust - determines whether the end of month adjustment rule is used.
public int getDaysInYear(FISADate date)
getDaysInYear in class DayCountBasisdate - The date for which the number of
days per year will be returned.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||