com.ftlabs.fisa
Interface InterestRateSchedule

All Known Implementing Classes:
DiscreteInterestRateSchedule

public interface InterestRateSchedule

This interface defines methods used to access coupon rates for securities that have variable interest rates.


Method Summary
 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.
 

Method Detail

getIndex

int getIndex(FISADate date)
Get the index of the given date.

Parameters:
date - a date
Returns:
the index of the given date.

getInterestRate

double getInterestRate(FISADate date)
Get the interest rate that would be applicable for the given date.

Parameters:
date - a date
Returns:
the interest rate that is applicable for the given date.

getCount

int getCount()
Get the total number of interest rates in this schedule.

Returns:
the totla number of interest rates in this schedule.

getDate

FISADate getDate(int index)
Get the conversionDate for the specified index.

Parameters:
index - the interest rate index
Returns:
the conversionDate for the specified index.

getInterestRate

double getInterestRate(int index)
Get the interest reate for the specified index.

Parameters:
index - the interest rate index
Returns:
the interest rate for the specified index.