|
WebCab Bonds Demo (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Local interface of Interest. This interface provides the same functionality as the Interest remote interface.
Interest| Method Summary | |
double |
accumulatedValue(double initialDeposit,
int noOfPeriods,
double interest)
Method accumulatedValue(double, int, double) as defined in the Interest remote interface. |
double |
averageInflation(double[] inflation)
Method averageInflation(double[]) as defined in the Interest remote interface. |
double |
averageInterest(double[] interest)
Method averageInterest(double[]) as defined in the Interest remote interface. |
double |
continuouslyCompounded(double initialInvestment,
double forceOfInterest,
double investmentPeriod)
Method continuouslyCompounded(double, double, double) as defined in the Interest remote interface. |
double |
depositAfterOnePeriod(double initialDeposit,
double interest)
Method depositAfterOnePeriod(double, double) as defined in the Interest remote interface. |
double |
depreciation(double[] depreciation,
double initialValue)
Method depreciation(double[], double) as defined in the Interest remote interface. |
double |
depreciation(double depreciation,
double initialValue,
int periods)
Method depreciation(double, double, int) as defined in the Interest remote interface. |
double |
depreciationRate(double initialValue,
double finalValue,
int periods)
Method depreciationRate(double, double, int) as defined in the Interest remote interface. |
double |
initialDeposit(double finalAmount,
double interest,
double periods)
Method initialDeposit(double, double, double) as defined in the Interest remote interface. |
double |
initialInvestment(double finalAmount,
double investmentPeriod,
double forceOfInterest)
Method initialInvestment(double, double, double) as defined in the Interest remote interface. |
double |
initialWorth(double finalAmount,
double inflation,
double dayCountConvention,
double periods,
double noOfDays,
double interest)
Method initialWorth(double, double, double, double, double, double) as defined in the Interest remote interface. |
double |
realReturn(double interest,
double inflation)
Method realReturn(double, double) as defined in the Interest remote interface. |
double |
realReturnEurope(double interest,
double inflation,
int periods,
int noOfDays)
Method realReturnEurope(double, double, int, int) as defined in the Interest remote interface. |
double |
realReturnGeneral(double interest,
double inflation,
int dayCountConvention,
double periods,
double noOfDays)
Method realReturnGeneral(double, double, int, double, double) as defined in the Interest remote interface. |
double |
realReturnUkJapan(double interest,
double inflation,
int periods,
int noOfDays)
Method realReturnUkJapan(double, double, int, int) as defined in the Interest remote interface. |
double |
realWorth(double initialDeposit,
double interest,
double inflation)
Method realWorth(double, double, double) as defined in the Interest remote interface. |
double |
realWorthEurope(double initialInvestment,
double interest,
int noOfPeriods,
double inflation,
double noOfDays)
Method realWorthEurope(double, double, int, double, double) as defined in the Interest remote interface. |
double |
realWorthGeneral(double initialInvestment,
double interest,
int noOfPeriods,
int dayCountConvention,
double inflation,
double noOfDays)
Method realWorthGeneral(double, double, int, int, double, double) as defined in the Interest remote interface. |
double |
realWorthUkJapan(double initialInvestment,
double interest,
int noOfPeriods,
double inflation,
double noOfDays)
Method realWorthUkJapan(double, double, int, double, double) as defined in the Interest remote interface. |
| Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
| Method Detail |
public double depositAfterOnePeriod(double initialDeposit,
double interest)
throws InterestDemoException
Description copied from the Interest interface:
Calculates the accumulated value of an interest bearing investment after the initial interest payment.
initialDeposit - the amount which is initially invested within the interest bearing investmentinterest - the fixed interest rate which the investment pays expressed in decimal format (i.e. 0.01 = 1 percent).
InterestDemoExceptionInterest.depositAfterOnePeriod(double, double)
public double realWorth(double initialDeposit,
double interest,
double inflation)
throws InterestDemoException
Description copied from the Interest interface:
Calculates the real worth of an interest bearing investment over a given period when the average rate of inflation and the average interest rate over the investment period are known. The real worth is the inflation adjusted value of an investment over a given period.
initialDeposit - the amount which is initially invested within the interest bearing investmentinterest - the average rate of interest paid by the investment during the investment period expressed in decimal format (i.e. 1 percent = 0.01)inflation - the average rate of inflation over the investment period expressed in decimal format (i.e. 1 percent = 0.01)
InterestDemoExceptionInterest.realWorth(double, double, double)
public double realReturn(double interest,
double inflation)
throws InterestDemoException
Description copied from the Interest interface:
Calculates the real return of an interest bearing investment over a given period when the average rate of inflation and the average rate of interest over that period are known. The real return is the inflation adjusted return from the investment.
interest - the average rate of interest paid of the interest bearing investment over the period expressed in decimal format (i.e. 1 percent = 0.01)inflation - the average rate of inflation during the period under consideration expressed in decimal format (i.e. 1 percent = 0.01)
InterestDemoExceptionInterest.realReturn(double, double)
public double averageInflation(double[] inflation)
throws InterestDemoException
Description copied from the Interest interface:
Evaluates the average rate of inflation during a period in which the rate of inflation is known at equal intervals within the entire period. For example, if the annual rate of inflation over the last three years has been 2%, 3%, 4%, respectively, then the average annual rate of inflation over the three year period would be 3%.
inflation - an array of measurements of the inflation rates during the considered periods where each inflation rate is expressed in decimal format (i.e. 1 percent = 0.01)
InterestDemoExceptionInterest.averageInflation(double[])
public double averageInterest(double[] interest)
throws InterestDemoException
Description copied from the Interest interface:
Evaluates the average rate of interest during a period when the rate of interest is measured at equal intervals within the entire period. For example, if the annual rate of interest over the last three years has been 2%, 3%, 4%, respectively, then the average annual rate of inflation over the three year period would be 3%.
interest - an array of measurements of the known interest rates during the considered periods where each interest rate is expressed in decimal format (i.e. 1 percent = 0.01)
InterestDemoExceptionInterest.averageInterest(double[])
public double accumulatedValue(double initialDeposit,
int noOfPeriods,
double interest)
throws InterestDemoException
Description copied from the Interest interface:
Calculates the accumulated value of a fixed interest bearing investment. That is, we evaluate the value of an investment resulting from the compounding on that investment of a fixed interest over a number of compounding periods.
initialDeposit - the amount which is initially invested within the fixed interest bearing investment.noOfPeriods - the number of periods over which the interest must is compoundedinterest - the fixed rate of interest of the investment over the entire period expressed in decimal format (i.e. 1 percent = 0.01)
InterestDemoExceptionInterest.accumulatedValue(double, int, double)
public double initialDeposit(double finalAmount,
double interest,
double periods)
throws InterestDemoException
Description copied from the Interest interface:
Returns the amount which initially needs to be deposited within an interest bearing investment in order to attain a pre-determined amount at a future date.
finalAmount - the amount which the investment is worth at the end in of time periodinterest - the fixed interest rate which is paid by the investment over each period expressed in decimal format (i.e. 1 percent = 0.01)periods - the number of time periods which the investment runs over
InterestDemoExceptionInterest.initialDeposit(double, double, double)
public double realWorthEurope(double initialInvestment,
double interest,
int noOfPeriods,
double inflation,
double noOfDays)
throws InterestDemoException
Description copied from the Interest interface:
Calculate the real worth of a fixed rate interest bearing investment over `noOfPeriods' periods of time according to the European convention for quoting the annual inflation over 360 days.
initialInvestment - the initial investment within the fixed interest bearing investmentnoOfPeriods - the number of equal time periods over which the investment is compoundednoOfDays - the length in days of each time period over which the investment is compoundedinterest - the fixed rate of interest per period which is paid by the investment expressed in decimal format (i.e. 1 percent = 0.01)inflation - fixed annual rate of inflation according to the European convention expressed in decimal format (i.e. 1 percent = 0.01)
InterestDemoExceptionInterest.realWorthEurope(double, double, int, double, double)
public double realWorthUkJapan(double initialInvestment,
double interest,
int noOfPeriods,
double inflation,
double noOfDays)
throws InterestDemoException
Description copied from the Interest interface:
Calculate the real worth of a fixed rate interest bearing investment according to the UK and Japanese convention for quoting the annual inflation over 365 days.
initialInvestment - the initial investment within the fixed interest bearing investmentnoOfPeriods - the number of equal time periods over which the investment is compoundednoOfDays - the length in days of each time period over which the interest is compoundedinterest - the fixed rate of interest per period which is paid by the investment expressed in decimal format (i.e. 1 percent = 0.01)inflation - fixed annual rate in inflation according to the UK and Japanese convention expressed in decimal format (i.e. 1 percent = 0.01)
InterestDemoExceptionInterest.realWorthUkJapan(double, double, int, double, double)
public double realWorthGeneral(double initialInvestment,
double interest,
int noOfPeriods,
int dayCountConvention,
double inflation,
double noOfDays)
throws InterestDemoException
Description copied from the Interest interface:
Calculate the real worth of a fixed rate interest bearing investment over equal time periods when the annual rate of inflation is quoted with respect to some integer number of days.
initialInvestment - the initial investmentnoOfPeriods - the number of equal time periods over which the interest is compoundednoOfDays - the length in days of each time period over which the interest is compoundedinterest - the fixed rate of interest per period which is paid by the investment expressed in decimal format (i.e. 1 percent = 0.01)inflation - fixed annual rate in inflation according to the UK and Japanese convention expressed in decimal format (i.e. 1 percent = 0.01)dayCountConvention - the number of days over which the annual rate of inflation in quoted
InterestDemoExceptionInterest.realWorthGeneral(double, double, int, int, double, double)
public double initialWorth(double finalAmount,
double inflation,
double dayCountConvention,
double periods,
double noOfDays,
double interest)
throws InterestDemoException
Description copied from the Interest interface:
Evaluates the amount needed to be initially invested in order for the real worth of a fixed interest bearing investment to have a pre-determined real worth at expiry. That is, we determine the amound which means to be invested in order to acheive a given purchasing powers at a future date from a fixed interest investment.
finalAmount - the amount which the investor requires at the end of the time periodinflation - fixed `annual' rate of inflation quoted with respect to the day count convention expressed in decimal format (i.e. 1 percent = 0.01)dayCountConvention - the number of days over which the inflation is quoted. In the case that the European 360 day convention is used then this parameter will take the value 360, in the case that the UK/Japan convention is used then this parameter will be 365periods - number of interest compounding time periods over which the investment in heldnoOfDays - the length in days of each period over which the interest is compounded.interest - the fixed interest rate paid by the interest bearing investment over each period expressed in decimal format (i.e. 1 percent = 0.01)
InterestDemoExceptionInterest.initialWorth(double, double, double, double, double, double)
public double realReturnUkJapan(double interest,
double inflation,
int periods,
int noOfDays)
throws InterestDemoException
Description copied from the Interest interface:
Evaluates the real return from an interest bearing investment over equal time periods when the annual rate of inflation is quoted according to the UK and Japanese day count convention of 365 days per annum. The real return measures the inflation adjusted return from an interest bearing investment.
inflation - the annual rate of inflation according to the UK and Japanese day count convention expressed in decimal format (i.e. 1 percent = 0.01)interest - fixed interest rate during the period when the investment is held expressed in decimal format (i.e. 1 percent = 0.01)periods - the number of time periods over which the real return is calculatednoOfDays - the number of days in each period over which the interest is compounded
InterestDemoExceptionInterest.realReturnUkJapan(double, double, int, int)
public double realReturnEurope(double interest,
double inflation,
int periods,
int noOfDays)
throws InterestDemoException
Description copied from the Interest interface:
Evaluates the real return from an interest bearing investment over equal time periods when the annual rate of inflation is quoted according to the European day count convention of 360 days per annum. The real return measures the inflation adjusted return from an interest bearing investment.
inflation - the annual rate of inflation according to the European day count convention expressed in decimal format (i.e. 1 percent = 0.01)interest - fixed interest rate during the period when the investment is held expressed in decimal format (i.e. 1 percent = 0.01)periods - the number of time periods over which the real return is calculatednoOfDays - the length in days of each time period over which the interest is compounded
InterestDemoExceptionInterest.realReturnEurope(double, double, int, int)
public double realReturnGeneral(double interest,
double inflation,
int dayCountConvention,
double periods,
double noOfDays)
throws InterestDemoException
Description copied from the Interest interface:
Calculate the real return of a fixed interest bearing investment over equal time periods when the fixed `annual' rate of inflation is known. The real return measures the inflation adjusted return from an interest bearing investment.
inflation - the rate of inflation which is quoted with respect to the particular day count convention expressed in decimal format (i.e. 1 percent = 0.01)dayCountConvention - the number of days over which the annual rate of inflation is quotedinterest - the fixed interest rate which is paid by the investment during the period under consideration expressed in decimal format (i.e. 1 percent = 0.01)periods - the number of time periods over which the real return is calculatednoOfDays - the length in days of each time period over which the interest is compounded
InterestDemoExceptionInterest.realReturnGeneral(double, double, int, double, double)
public double depreciation(double depreciation,
double initialValue,
int periods)
throws InterestDemoException
Description copied from the Interest interface:
Calculates an assets value (or book value) at the end of a number of time periods when an assets constant rate of depreciation is known.
initialValue - the initial value of the assetdepreciation - the constant rate of depreciation of the asset in decimal format (i.e. 1 percent = 0.01)periods - the number of equal time periods over which the asset depreciates.
InterestDemoExceptionInterest.depreciation(double, double, int)
public double depreciation(double[] depreciation,
double initialValue)
throws InterestDemoException
Description copied from the Interest interface:
Evaluates the value (or book value) of an asset after a number of time periods which may have differing rates of depreciation.
initialValue - the initial value of the assetdepreciation - is an array of doubles which gives the percentage depreciation rate for each period over which the asset depreciates. The percentage for each period is expressed in decimal format (i.e. 1 percent = 0.01).
InterestDemoExceptionInterest.depreciation(double[], double)
public double depreciationRate(double initialValue,
double finalValue,
int periods)
throws InterestDemoException
Description copied from the Interest interface:
Calculates the average depreciation rate of an asset after a given number of time periods of equal duration.
initialValue - the initial value of the assetfinalValue - the value (or book value) of the asset at the end of the periodsperiods - the number of equal time periods over which the asset depreciates.
InterestDemoExceptionInterest.depreciationRate(double, double, int)
public double continuouslyCompounded(double initialInvestment,
double forceOfInterest,
double investmentPeriod)
throws InterestDemoException
Description copied from the Interest interface:
Calculates the accumulated amount from an investment which is continuously compounded over a given period.
initialInvestment - the amount which is initially invested and continuously compoundedforceOfInterest - the force of interest with respect to some time units (days or years etc) expressed in decimal format (i.e. 1 percent = 0.01)investmentPeriod - the time period over which the investment is held. Note that the units used to measure time must be the same as the units used for the forceOfInterest
InterestDemoExceptionInterest.continuouslyCompounded(double, double, double)
public double initialInvestment(double finalAmount,
double investmentPeriod,
double forceOfInterest)
throws InterestDemoException
Description copied from the Interest interface:
Evaluates the amount which needs to be initially invested within a continuously compounded investment in order to achieve a certain level of return.
finalAmount - the amount which the investor requires at the end of the investment periodforceOfInterest - the force of interest with respect to some time units (days or years etc) expressed in decimal format.investmentPeriod - the time period over which the investment is held. Note that the units used to measure time must be the same as the units used for the forceOfInterest
InterestDemoExceptionInterest.initialInvestment(double, double, double)
|
WebCab Bonds Demo (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||