|
||||||||||
| 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_Actual
public class DayCountBasis_Actual
Implementation of the Actual/Actual 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 date1,
FISADate date2,
int interestFrequency,
boolean eomAdjust)
Calculates the number of days in a given period using the Actual/Actual Day Count Basis. |
double |
calculateDaysAccrued(FISADate previousCouponDate,
FISADate nextCouponDate,
FISADate settlementDate,
int interestFrequency,
boolean eomAdjust)
Calculate the number of days accrued within a coupon period. |
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)
calculateDays( previousCouponDate, nextCouponDate, security );
calculateDaysInPeriod in class DayCountBasispreviousCouponDate - the previous coupon date.nextCouponDate - the next coupon date.interestFrequency - the interestFrequency. The Act/Act implementation
ignores this parameter.eomAdjust - determines whether the end of month adjustment rule is used.
The Act/Act implementation ignores this parameter.
public double calculateDaysAccrued(FISADate previousCouponDate,
FISADate nextCouponDate,
FISADate settlementDate,
int interestFrequency,
boolean eomAdjust)
calculateDays( previousCouponDate, settlementDate, security );
calculateDaysAccrued in class DayCountBasispreviousCouponDate - the previous coupon date.nextCouponDate - the next coupon date.settlementDate - the date on which settlement occurs.interestFrequency - the interestFrequency. The Act/Act implementation
ignores this parameter.eomAdjust - determines whether the end of month adjustment rule is used.
The Act/Act implementation ignores this parameter.
public double calculateDaysRemaining(FISADate previousCouponDate,
FISADate nextCouponDate,
FISADate settlementDate,
int interestFrequency,
boolean eomAdjust)
calculateDays( settlementDate, nextCouponDate, security );
calculateDaysRemaining in class DayCountBasispreviousCouponDate - the previous coupon date.nextCouponDate - the next coupon date.settlementDate - the date on which settlement occurs.interestFrequency - the interestFrequency. The Act/Act implementation
ignores this parameter.eomAdjust - determines whether the end of month adjustment rule is used.
The Act/Act implementation ignores this parameter.
public double calculateDays(FISADate date1,
FISADate date2,
int interestFrequency,
boolean eomAdjust)
calculateDays in class DayCountBasisdate1 - The starting date of the period.date2 - The ending date of the period.interestFrequency - the interestFrequency. The Act/Act implementation
ignores this parameter.eomAdjust - determines whether the end of month adjustment rule is used.
The Act/Act implementation ignores this parameter.
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 | |||||||||