|
WebCab Bonds Demo (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Local interface of EffectiveAndNominalInterest. This interface provides the same functionality as the EffectiveAndNominalInterest remote interface.
EffectiveAndNominalInterest| Method Summary | |
double |
convertYearlyRate(double yearlyRate,
int noOfPeriods,
int newNoOfPeriods)
Method convertYearlyRate(double, int, int) as defined in the EffectiveAndNominalInterest remote interface. |
double |
forceOfInterest(double interest)
Method forceOfInterest(double) as defined in the EffectiveAndNominalInterest remote interface. |
double |
nominalRateOfInterest(double interest,
int noOfPeriods)
Method nominalRateOfInterest(double, int) as defined in the EffectiveAndNominalInterest remote interface. |
double |
realReturn(double yearlyRate,
double inflation,
int noOfPeriods,
int newNoOfPeriods)
Method realReturn(double, double, int, int) as defined in the EffectiveAndNominalInterest remote interface. |
| Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
| Method Detail |
public double convertYearlyRate(double yearlyRate,
int noOfPeriods,
int newNoOfPeriods)
throws EffectiveAndNominalInterestDemoException
Description copied from the EffectiveAndNominalInterest interface:
Converts the effective `yearlyRate' of interest which is quoted in `noOfPeriods'-yearly rate into the `newNoOfPeriods'-yearly rate.
yearlyRate - the interest rate in deciaml format (i.e. 1 percent = 0.01) quoted with respect to `noOfPeriods' periodsnoOfPeriods - the number of periods per annum in which the `yearlyRate' is quotednewNoOfPeriods - the number of annual time periods the annual interest rate is compounded over
EffectiveAndNominalInterestDemoExceptionEffectiveAndNominalInterest.convertYearlyRate(double, int, int)
public double realReturn(double yearlyRate,
double inflation,
int noOfPeriods,
int newNoOfPeriods)
throws EffectiveAndNominalInterestDemoException
Description copied from the EffectiveAndNominalInterest interface:
Calculates the real return of a `newNoOfPeriods'-yearly rate when the return with respect to a `noOfPeriods'-yearly rate and the annual inflation is known.
yearlyRate - the return quoted in terms of the `noOfPeriods'-yearly rate and given in decimal format (i.e. 1 percent = 0.01). Note that this is not the inflation adjusted real return.inflation - the annual rate of inflation in decimal format (i.e. 1 percent = 0.01)noOfPeriods - the number of periods per annual in which the yearlyRate is quotednewNoOfPeriods - the number of annual time periods which the returned real return is quoted in
EffectiveAndNominalInterestDemoExceptionEffectiveAndNominalInterest.realReturn(double, double, int, int)
public double forceOfInterest(double interest)
throws EffectiveAndNominalInterestDemoException
Description copied from the EffectiveAndNominalInterest interface:
Evaluates the force of interest with respect a given period from a given interest rate expressed within respect to the same period. That is, we convert the annual interest rate in the annual force of interest.
interest - the rate of interest in decimal format (i.e. 1 percent = 0.01) with respect to a given period (for example, daily annual etc).
EffectiveAndNominalInterestDemoExceptionEffectiveAndNominalInterest.forceOfInterest(double)
public double nominalRateOfInterest(double interest,
int noOfPeriods)
throws EffectiveAndNominalInterestDemoException
Description copied from the EffectiveAndNominalInterest interface:
Converts the effective annual nominal rate of interest to the nominal rate of interest convertible `noOfPeriods'-yearly.
interest - the annual rate of interest in decimal format (i.e. 1 percent = 0.01)noOfPeriods - the number of periods over which the converted nominal interest in expressed in terms of.
EffectiveAndNominalInterestDemoExceptionEffectiveAndNominalInterest.nominalRateOfInterest(double, int)
|
WebCab Bonds Demo (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||