WebCab Bonds Demo
(J2EE Edition)

com.webcab.ejb.finance.interest
Interface ValueReturnYieldLocal

All Superinterfaces:
EJBLocalObject

public interface ValueReturnYieldLocal
extends EJBLocalObject

Local interface of ValueReturnYield. This interface provides the same functionality as the ValueReturnYield remote interface.

See Also:
ValueReturnYield

Method Summary
 double nominalYield(double interest, double inflation)
          Method nominalYield(double, double) as defined in the ValueReturnYield remote interface.
 double presentValue(double interest, double finalSum, double noOfPeriods)
          Method presentValue(double, double, double) as defined in the ValueReturnYield remote interface.
 double presentValue(double interest, double noOfPeriods, double finalWorth, double rateOfInflation, int dayCountConvention, int days)
          Method presentValue(double, double, double, double, int, int) as defined in the ValueReturnYield remote interface.
 double realReturnRepo(double price, double finalPayment, double inflation, double periods)
          Method realReturnRepo(double, double, double, double) as defined in the ValueReturnYield remote interface.
 double yield(double investment, double amountRepaid, int numberOfPeriods)
          Method yield(double, double, int) as defined in the ValueReturnYield remote interface.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

presentValue

public double presentValue(double interest,
                           double finalSum,
                           double noOfPeriods)
                    throws ValueReturnYieldDemoException
Method presentValue(double, double, double) as defined in the ValueReturnYield remote interface.

Description copied from the ValueReturnYield interface:

Calculates the initial amount of money which has to be invested within a fixed interest bearing investment in order to accumulate a given final sum.

Parameters:
interest - the fixed rate of interest over all periods expressed in decimal format (i.e. 1 percent = 0.01)
finalSum - the final sum which is required by the investor
ValueReturnYieldDemoException
See Also:
ValueReturnYield.presentValue(double, double, double)

presentValue

public double presentValue(double interest,
                           double noOfPeriods,
                           double finalWorth,
                           double rateOfInflation,
                           int dayCountConvention,
                           int days)
                    throws ValueReturnYieldDemoException
Method presentValue(double, double, double, double, int, int) as defined in the ValueReturnYield remote interface.

Description copied from the ValueReturnYield interface:

Calculates the initial amount of money which has to be invested in order to accumulate a given final worth (that is, an inflation adjusted sum) from an fixed interest bearing investment.

Parameters:
interest - the fixed rate of interest paid by the interest bearing investment expressed in decimal format (i.e. 1 percent = 0.01) over each period during the life of the investment
days - the number of days in each period over which the investment is compounded
finalWorth - the value required of the invested asset at the end of the investment periods
rateOfInflation - the (fixed) annual rate of inflation expressed in decimal format (i.e. 1 percent = 0.01)
dayCountConvention - the number of days that the annual inflation is quoted over. For example, the UK/Japan convention uses 365 days whereas the European convention for quoted inflation uses 360 days.
ValueReturnYieldDemoException
See Also:
ValueReturnYield.presentValue(double, double, double, double, int, int)

realReturnRepo

public double realReturnRepo(double price,
                             double finalPayment,
                             double inflation,
                             double periods)
                      throws ValueReturnYieldDemoException
Method realReturnRepo(double, double, double, double) as defined in the ValueReturnYield remote interface.

Description copied from the ValueReturnYield interface:

Calculates the real return of a Repo agreement when the initial purchase price and the final payment and annual rate of inflation is known.

Parameters:
price - the initial purchase price of the investment asset when the Repo agreement is initiated
finalPayment - the final payment make at the end of the Repo Agreement in order to repurchase the assets
inflation - the rate of inflation in decimal format (i.e. 1 percent = 0.01) over the given period (see description of periods parameter))
periods - the number of the given time peridos used (days, years etc) over which the Repo agreement holds
ValueReturnYieldDemoException
See Also:
ValueReturnYield.realReturnRepo(double, double, double, double)

yield

public double yield(double investment,
                    double amountRepaid,
                    int numberOfPeriods)
             throws ValueReturnYieldDemoException
Method yield(double, double, int) as defined in the ValueReturnYield remote interface.

Description copied from the ValueReturnYield interface:

Calculates the yield per period of an investment knowing the initial investment and the value at expiry/redemption of the investment.

Parameters:
investment - the amount paid in order to purchase the investment
amountRepaid - the value of the investment at expiry/redemption
numberOfPeriods - the number of periods until the expiry/redemption of the investment
Returns:
the yield is returned in decimal format (i.e. 1 percent = 0.01)
ValueReturnYieldDemoException
See Also:
ValueReturnYield.yield(double, double, int)

nominalYield

public double nominalYield(double interest,
                           double inflation)
                    throws ValueReturnYieldDemoException
Method nominalYield(double, double) as defined in the ValueReturnYield remote interface.

Description copied from the ValueReturnYield interface:

Calculates the nominal yield of an investment knowing the annual interest and rate of inflation.

Parameters:
interest - the annual rate of interest paid by the investment
inflation - the annual rate of inflation
ValueReturnYieldDemoException
See Also:
ValueReturnYield.nominalYield(double, double)

WebCab Bonds Demo
(J2EE Edition)