|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.DiscreteInterestRateSchedule
public class DiscreteInterestRateSchedule
| Constructor Summary | |
|---|---|
DiscreteInterestRateSchedule()
|
|
DiscreteInterestRateSchedule(double firstInterestRate,
FISADate conversionDate,
double newInterestRate)
A convenience constructor to create a DiscreteInterestRateSchedule with an initial interest rate and a single step. |
|
| Method Summary | |
|---|---|
void |
add(FISADate conversionDate,
double interestRate)
Adds a new InterestRateStep to this DiscreteInterestRateSchedule,
created using the provided date and interestRate. |
void |
clear()
Clears this DiscreteInterestRateSchedule. |
int |
getCount()
Get the total number of interest rates in this schedule. |
FISADate |
getDate(int index)
Get the conversionDate for the specified index. |
int |
getIndex(FISADate date)
Get the index of the given date. |
double |
getInterestRate(FISADate date)
Get the interest rate that would be applicable for the given date. |
double |
getInterestRate(int index)
Get the interest reate for the specified index. |
void |
setSingleStep(double firstInterestRate,
FISADate conversionDate,
double newInterestRate)
A convenience method to clear this schedule and set an initial interest rate with a single step. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscreteInterestRateSchedule()
public DiscreteInterestRateSchedule(double firstInterestRate,
FISADate conversionDate,
double newInterestRate)
firstInterestRate - the interestRate to use from settlementDate until
the conversionDate.conversionDate - the date on which the newInterestRate takes effect.newInterestRate - the interest rate to be used from conversionDate
to maturity.| Method Detail |
|---|
public void setSingleStep(double firstInterestRate,
FISADate conversionDate,
double newInterestRate)
firstInterestRate - the interestRate to use from settlementDate until
the conversionDate.conversionDate - the date on which the newInterestRate takes effect.newInterestRate - the interest rate to be used from conversionDate
to maturity.public int getIndex(FISADate date)
getIndex in interface InterestRateScheduledate - a date
public double getInterestRate(FISADate date)
getInterestRate in interface InterestRateScheduledate - a date
public void add(FISADate conversionDate,
double interestRate)
InterestRateStep to this DiscreteInterestRateSchedule,
created using the provided date and interestRate.
conversionDate - the date that the provided interestRate takes effect.interestRate - the new interestRate.public int getCount()
getCount in interface InterestRateSchedulepublic FISADate getDate(int index)
getDate in interface InterestRateScheduleindex - the interest rate index
public double getInterestRate(int index)
getInterestRate in interface InterestRateScheduleindex - the interest rate index
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||