|
WebCab Bonds Demo (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Local interface of FixedInterestBonds. This interface provides the same functionality as the FixedInterestBonds remote interface.
FixedInterestBonds| Method Summary | |
double |
currentPrice(double coupon,
double grossRedemption,
Date evaluationDate,
Date redemptionDate,
BusinessCalendar businessCalendar)
Method currentPrice(double, double, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar) as defined in the FixedInterestBonds remote interface. |
double |
currentPrice(double coupon,
double grossRedemption,
int redemption)
Method currentPrice(double, double, int) as defined in the FixedInterestBonds remote interface. |
double |
grossRedemptionYield(double price,
double coupon,
Date evaluationDate,
Date redemptionDate,
BusinessCalendar businessCalendar)
Method grossRedemptionYield(double, double, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar) as defined in the FixedInterestBonds remote interface. |
double |
grossRedemptionYield(double price,
double coupon,
Date evaluationDate,
Date redemptionDate,
double upperLimit,
double precision,
BusinessCalendar businessCalendar)
Method grossRedemptionYield(double, double, java.util.Date, java.util.Date, double, double, webcab.lib.calendar.BusinessCalendar) as defined in the FixedInterestBonds remote interface. |
double |
grossRedemptionYield(double price,
double coupon,
double nextCoupon,
Date couponDate,
Date redemption,
Date evaluationDate,
BusinessCalendar businessCalendar)
Method grossRedemptionYield(double, double, double, java.util.Date, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar) as defined in the FixedInterestBonds remote interface. |
double |
grossRedemptionYield(double price,
double coupon,
double nextCoupon,
Date interestDate,
Date redemptionDate,
Date evaluationDate,
Date couponDate,
double upperLimit,
double precision,
BusinessCalendar businessCalendar)
Method grossRedemptionYield(double, double, double, java.util.Date, java.util.Date, java.util.Date, java.util.Date, double, double, webcab.lib.calendar.BusinessCalendar) as defined in the FixedInterestBonds remote interface. |
double |
grossRedemptionYield(double price,
double coupon,
double nextCoupon,
int years2Redemption,
double years2Coupon)
Method grossRedemptionYield(double, double, double, int, double) as defined in the FixedInterestBonds remote interface. |
double |
grossRedemptionYield(double price,
double coupon,
double nextCoupon,
int years2Redemp,
double time2Coupon,
double upperLimit,
double precision)
Method grossRedemptionYield(double, double, double, int, double, double, double) as defined in the FixedInterestBonds remote interface. |
double |
grossRedemptionYield(double price,
double coupon,
int redemption)
Method grossRedemptionYield(double, double, int) as defined in the FixedInterestBonds remote interface. |
double |
grossRedemptionYield(double price,
double coupon,
int redemption,
double upperLimit,
double precision)
Method grossRedemptionYield(double, double, int, double, double) as defined in the FixedInterestBonds remote interface. |
double |
holdingPeriodReturn(double price,
double coupon,
double sellingPrice,
Date purchaseDate,
Date saleDate,
BusinessCalendar businessCalendar)
Method holdingPeriodReturn(double, double, double, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar) as defined in the FixedInterestBonds remote interface. |
double |
holdingPeriodReturn(double purchasePrice,
double coupon,
double sellingPrice,
Date purchaseDate,
Date saleDate,
double upperBound,
double precision,
BusinessCalendar businessCalendar)
Method holdingPeriodReturn(double, double, double, java.util.Date, java.util.Date, double, double, webcab.lib.calendar.BusinessCalendar) as defined in the FixedInterestBonds remote interface. |
double |
holdingPeriodReturn(double price,
double coupon,
double sellingPrice,
int yearsHeld)
Method holdingPeriodReturn(double, double, double, int) as defined in the FixedInterestBonds remote interface. |
double |
holdingPeriodReturn(double purchasePrice,
double coupon,
double sellingPrice,
int yearsHeld,
double upperBound,
double precision)
Method holdingPeriodReturn(double, double, double, int, double, double) as defined in the FixedInterestBonds remote interface. |
double |
netRedemptionYield(double price,
double coupon,
double taxRate,
Date evaluationDate,
Date redemptionDate,
BusinessCalendar businessCalendar)
Method netRedemptionYield(double, double, double, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar) as defined in the FixedInterestBonds remote interface. |
double |
netRedemptionYield(double price,
double coupon,
double taxRate,
Date evaluationDate,
Date redemptionDate,
double upperBound,
double precision,
BusinessCalendar businessCalendar)
Method netRedemptionYield(double, double, double, java.util.Date, java.util.Date, double, double, webcab.lib.calendar.BusinessCalendar) as defined in the FixedInterestBonds remote interface. |
double |
netRedemptionYield(double price,
double coupon,
double taxRate,
int yearsToRedemption)
Method netRedemptionYield(double, double, double, int) as defined in the FixedInterestBonds remote interface. |
double |
netRedemptionYield(double price,
double coupon,
double taxRate,
int yearsToRedemption,
double upperBound,
double precision)
Method netRedemptionYield(double, double, double, int, double, double) as defined in the FixedInterestBonds remote interface. |
double |
simpleYieldToMaturity(double price,
double coupon,
Date evaluationDate,
Date redemptionDate,
BusinessCalendar businessCalendar)
Method simpleYieldToMaturity(double, double, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar) as defined in the FixedInterestBonds remote interface. |
double |
simpleYieldToMaturity(double price,
double coupon,
double redemption)
Method simpleYieldToMaturity(double, double, double) as defined in the FixedInterestBonds remote interface. |
| Methods inherited from interface javax.ejb.EJBLocalObject |
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
| Method Detail |
public double grossRedemptionYield(double price,
double coupon,
Date evaluationDate,
Date redemptionDate,
BusinessCalendar businessCalendar)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the gross redemption yield (in decimal format) of a fixed-interest bond on an interest payment date where there is an integer number of years until the bond matures. That is, the total (annual) yield of the fixed interest bond from now until maturity where the tax implications of the investor are not taken into account.
Remarks:
200 percent and the precision
used is 0.001, if the yield falls out side this range or you desire a different level
of precision then you should us the method
(double,double,int,double,double).
coupon - the coupon per annum convertible half-yearlyprice - the current price of the bond, including accrued interestevaluationDate - the date on which the gross redemption yield is evaluatedredemptionDate - the redemption (or maturity) date of the bondbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
NoSolutionException - thrown is a solution cannot be found
FixedInterestBondsDemoExceptiongrossRedemptionYield - Offering the same functionality
except that here the internal equation solver algorithms parameters can be set.,
FixedInterestBonds.grossRedemptionYield(double, double, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar)
public double grossRedemptionYield(double price,
double coupon,
int redemption)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the gross redemption yield (in decimal format) of a fixed-interest bond on an interest payment date where there is an integer number of years until the bond matures. That is, the total (annual) yield of the fixed interest bond from now until maturity where the tax implications of the investor are not taken into account.
Remarks:
200 percent and the precision
used is 0.001, if the yield falls out side this range or you desire a different level
of precision then you should us the method
(double,double,int,double,double).
coupon - the coupon per annum convertible half-yearlyprice - the current price of the bond, including accrued interestredemption - the integer number of years until redemption (i.e. the maturity of the bond)
NoSolutionException - thrown is a solution cannot be found
FixedInterestBondsDemoExceptiongrossRedemptionYield - Offering the same functionality
except that here the internal equation solver algorithms parameters can be set.,
FixedInterestBonds.grossRedemptionYield(double, double, int)
public double grossRedemptionYield(double price,
double coupon,
Date evaluationDate,
Date redemptionDate,
double upperLimit,
double precision,
BusinessCalendar businessCalendar)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the gross redemption yield of a fixed interest bond on an interest bearing date where
there is an integer number of years until redemption (i.e. maturity). That is, the total
(annual) yield of the fixed interest bond from now until maturity where the tax implications
of the investor are not taken into account. This procedure offers the same functionality as the
method (double,double, int) except
that here the internal equation solving algorithms parameters can be set. That is, the upper bound of
the interval over which the yield is sort and the precision of the returned valued can be specified.
Remarks:
coupon - the coupon per annum paid by the fixed interest bond convertible half-yearlyprice - the current market price of the bondupperLimit - the upper bound of the interval over which the yield will be sort. If you are unsure as to a suitable value then by setting this parameter to 2 you will cover all cases where the yield is less than 200 percent.precision - the accuracy of the result. This is an internal parameter used by the equation solver algorithm, the smaller the precision required the more accurate the result but also the longer the computation will take. A suitable value for this parameter is 0.0001.evaluationDate - the date on which the gross redemption yield is evaluatedredemptionDate - the redemption date of the bondbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
NoSolutionException - if there can not be found a solution for this equation
FixedInterestBondsDemoException- Offering the same functionality except
that here the internal equation solver has pre-fixed algorithm parameters.,
FixedInterestBonds.grossRedemptionYield(double, double, java.util.Date, java.util.Date, double, double, webcab.lib.calendar.BusinessCalendar)
public double grossRedemptionYield(double price,
double coupon,
int redemption,
double upperLimit,
double precision)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the gross redemption yield of a fixed interest bond on an interest bearing date where
there is an integer number of years until redemption (i.e. maturity). That is, the total
(annual) yield of the fixed interest bond from now until maturity where the tax implications
of the investor are not taken into account. This procedure offers the same functionality as the
method (double,double, int) except
that here the internal equation solving algorithms parameters can be set. That is, the upper bound of
the interval over which the yield is sort and the precision of the returned valued can be specified.
Remarks:
coupon - the coupon per annum paid by the fixed interest bond convertible half-yearlyprice - the current market price of the bondredemption - the integer number of years until redemption (i.e. maturity). For example, 1 would implied that there is exactly 1 year until the bond matures.upperLimit - the upper bound of the interval over which the yield will be sort. If you are unsure as to a suitable value then by setting this parameter to 2 you will cover all cases where the yield is less than 200 percent.precision - the accuracy of the result. This is an internal parameter used by the equation solver algorithm, the smaller the precision required the more accurate the result but also the longer the computation will take. A suitable value for this parameter is 0.0001.
NoSolutionException - if there can not be found a solution for this equation
FixedInterestBondsDemoException- Offering the same functionality except
that here the internal equation solver has pre-fixed algorithm parameters.,
FixedInterestBonds.grossRedemptionYield(double, double, int, double, double)
public double grossRedemptionYield(double price,
double coupon,
double nextCoupon,
Date couponDate,
Date redemption,
Date evaluationDate,
BusinessCalendar businessCalendar)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the gross redemption yield if there is less than half a year to the next coupon payment and there is a whole number of years from the next coupon until the maturity of the bond. That is, the total (annual) yield of the fixed interest bond from now until maturity where the tax implications of the investor are not taken into account.
Remarks:
200 percent and the precision
used is 0.001, if the yield falls out side this range or you desire a different level
of precision then you should us the method
(double,double,double,int,double,double,double).
price - the current market price of the bondcoupon - the coupon per annum payable in half-yearly installmentsnextCoupon - the next interest payment which will be received in `years2Coupon' years expressed as a decimalevaluationDate - the date when the gross redemption yield is evaluatedcouponDate - the date when the next coupon in paidredemption - the redemption (i.e. maturity) date of the bondbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
NoSolutionException - thrown if no solution was found for the yield within the range 0 - 200 percent.
FixedInterestBondsDemoExceptionalso evaluates the gross redemption yield using the same approach but allow the upper bound over which the yield is sort and the
precision with which it is returned to be specified.,
FixedInterestBonds.grossRedemptionYield(double, double, double, java.util.Date, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar)
public double grossRedemptionYield(double price,
double coupon,
double nextCoupon,
int years2Redemption,
double years2Coupon)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the gross redemption yield if there is less than half a year to the next coupon payment and there is a whole number of years from the next coupon until the maturity of the bond. That is, the total (annual) yield of the fixed interest bond from now until maturity where the tax implications of the investor are not taken into account.
Remarks:
200 percent and the precision
used is 0.001, if the yield falls out side this range or you desire a different level
of precision then you should us the method
(double,double,double,int,double,double,double).
price - the current market price of the bondcoupon - the coupon per annum payable in half-yearly installmentsnextCoupon - the next interest payment which will be received in `years2Coupon' years expressed as a decimalyears2Coupon - the number of years (in decimal format) until the next coupon paymentyears2Redemption - the number of (whole) years from the next interest payment date to the redemption date
NoSolutionException - thrown if no solution was found for the yield within the range 0 - 200 percent.
FixedInterestBondsDemoExceptionalso evaluates the gross redemption yield using the same approach but allow the upper bound over which the yield is sort and the
precision with which it is returned to be specified.,
FixedInterestBonds.grossRedemptionYield(double, double, double, int, double)
public double grossRedemptionYield(double price,
double coupon,
double nextCoupon,
Date interestDate,
Date redemptionDate,
Date evaluationDate,
Date couponDate,
double upperLimit,
double precision,
BusinessCalendar businessCalendar)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the gross redemption yield if there is less than half a year to the next coupon
payment and there in an whole number of years from the next coupon until the maturity of the bond.
That is, the total
(annual) yield of the fixed interest bond from now until maturity where the tax implications
of the investor are not taken into account. This procedure offers the same functionality as the
method (double,double, double, int, double)
except that here the internal equation solving algorithms parameters can be set. That is, the interval over
which the yield is sort and the precision with which the result is returned can be specified.
Remarks:
price - the current market price of the fixed interest bondcoupon - the coupon per annum payable in half-yearly installmentsnextCoupon - the next interest payment which will be received in `yearsToNextPayment' years expressed as a decimalupperLimit - the upper bound of the interval over which the yield will be sort. If you are unsure as to a suitable value then by setting this parameter to 2 you will cover all cases where the yield is less than 200 percent.precision - the accuracy of the result. This is an internal parameter used by the equation solver algorithm, the smaller the precision required the more accurate the result but also the longer the computation will take. A suitable value for this parameter is 0.0001.evaluationDate - the date on which the gross redemption yield is evaluationcouponDate - the date on which the next coupon is paidredemptionDate - the redemption date of the bondbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
NoSolutionException - thrown if no solution to the equation corresponding to the yield can be found for the given search interval
FixedInterestBondsDemoExceptionFixedInterestBonds.grossRedemptionYield(double, double, double, java.util.Date, java.util.Date, java.util.Date, java.util.Date, double, double, webcab.lib.calendar.BusinessCalendar)
public double grossRedemptionYield(double price,
double coupon,
double nextCoupon,
int years2Redemp,
double time2Coupon,
double upperLimit,
double precision)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the gross redemption yield if there is less than half a year to the next coupon
payment and there in an whole number of years from the next coupon until the maturity of the bond.
That is, the total
(annual) yield of the fixed interest bond from now until maturity where the tax implications
of the investor are not taken into account. This procedure offers the same functionality as the
method (double,double, double, int, double)
except that here the internal equation solving algorithms parameters can be set. That is, the interval over
which the yield is sort and the precision with which the result is returned can be specified.
Remarks:
price - the current market price of the fixed interest bondcoupon - the coupon per annum payable in half-yearly installmentsnextCoupon - the next interest payment which will be received in `yearsToNextPayment' years expressed as a decimaltime2Coupon - the number of years (in decimal format) until the next coupon paymentupperLimit - the upper bound of the interval over which the yield will be sort. If you are unsure as to a suitable value then by setting this parameter to 2 you will cover all cases where the yield is less than 200 percent.precision - the accuracy of the result. This is an internal parameter used by the equation solver algorithm, the smaller the precision required the more accurate the result but also the longer the computation will take. A suitable value for this parameter is 0.0001.
NoSolutionException - thrown if no solution to the equation corresponding to the yield can be found for the given search interval
FixedInterestBondsDemoExceptionFixedInterestBonds.grossRedemptionYield(double, double, double, int, double, double, double)
public double netRedemptionYield(double price,
double coupon,
double taxRate,
Date evaluationDate,
Date redemptionDate,
BusinessCalendar businessCalendar)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the net redemption yield excluding capital gains tax (CGT) where the term to redemption is an integer number of years. That is, the yield of the bond is evaluated where the income tax of the investor is taken into account (i.e. gross yield minus the income tax) and there are an integer number of years until the bond matures.
Remarks:
200 percent and the precision
used is 0.001, if the yield falls out side this range or you desire a different level
of precision then you should us the method
(double,double,double,int,double,double).
price - the current market price of the bondcoupon - the annual coupon of the bond convertible half-yearly (that is, paid in half-yearly installments)taxRate - the investor's rate of tax on income in decimal format (i.e. 1 percent = 0.01)evaluationDate - the date on which the net redemption yield is evaluatedredemptionDate - the redemption date of the bondbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
NoSolutionException - thrown if no solution to the equation corresponding to the yield can be found within the interval 0 - 200 percent.
FixedInterestBondsDemoExceptionalso evaluates the net redemption yield using the same approach but allow the upper bound over which the yield is sort and the
precision with which it is returned to be specified.,
FixedInterestBonds.netRedemptionYield(double, double, double, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar)
public double netRedemptionYield(double price,
double coupon,
double taxRate,
int yearsToRedemption)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the net redemption yield excluding capital gains tax (CGT) where the term to redemption is an integer number of years. That is, the yield of the bond is evaluated where the income tax of the investor is taken into account (i.e. gross yield minus the income tax) and there are an integer number of years until the bond matures.
Remarks:
200 percent and the precision
used is 0.001, if the yield falls out side this range or you desire a different level
of precision then you should us the method
(double,double,double,int,double,double).
price - the current market price of the bondcoupon - the annual coupon of the bond convertible half-yearly (that is, paid in half-yearly installments)taxRate - the investor's rate of tax on income in decimal format (i.e. 1 percent = 0.01)yearsToRedemption - the number of (whole) year until the redemption (or maturity) of the bond
NoSolutionException - thrown if no solution to the equation corresponding to the yield can be found within the interval 0 - 200 percent.
FixedInterestBondsDemoExceptionalso evaluates the net redemption yield using the same approach but allow the upper bound over which the yield is sort and the
precision with which it is returned to be specified.,
FixedInterestBonds.netRedemptionYield(double, double, double, int)
public double netRedemptionYield(double price,
double coupon,
double taxRate,
Date evaluationDate,
Date redemptionDate,
double upperBound,
double precision,
BusinessCalendar businessCalendar)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the net redemption yield excluding capital gains tax (CGT) where the term to redemption is an integer number of years. That is, the yield of the bond is evaluated where the income tax of the investor is taken into account (i.e. the gross yield minus the income tax) and there are an integer number of years until the bond matures.
This procedure offers the same functionality as the
method (double, double, double, int)
except that here the internal equation solving algorithm parameters can be set. These parameters are the upper bound
of the yield over which the solution is searched and the precision of the returned result can be specified.
Remarks:
price - the current market price of the bondcoupon - the annual coupon of the bond convertible half-yearly (that is, paid in half-yearly installments)taxRate - the investor's rate of tax on income in decimal format (i.e. 1 percent = 0.01)upperBound - the upper bound of the interval over which the yield will be sort. If you are unsure as to a suitable value then by setting this parameter to 2 you will cover all cases where the yield is less than 200 percent.precision - the accuracy of the result. This is an internal parameter used by the equation solver algorithm, the smaller the precision required the more accurate the result but also the longer the computation will take. A suitable value for this parameter is 0.0001.evaluationDate - the date on which the net redemption yield is evaluatedredemptionDate - the redemption date of the bondbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
NoSolutionException - thrown if no solution to the equation corresponding to the yield can be found for the given search interval
FixedInterestBondsDemoExceptionnetRedemptionYield(double, double, double, int)
also evaluates the net redemption yield but here the upper bound and the precision are given pre-set values, namely
200 percent and 0.001 respectively.,
FixedInterestBonds.netRedemptionYield(double, double, double, java.util.Date, java.util.Date, double, double, webcab.lib.calendar.BusinessCalendar)
public double netRedemptionYield(double price,
double coupon,
double taxRate,
int yearsToRedemption,
double upperBound,
double precision)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the net redemption yield excluding capital gains tax (CGT) where the term to redemption is an integer number of years. That is, the yield of the bond is evaluated where the income tax of the investor is taken into account (i.e. the gross yield minus the income tax) and there are an integer number of years until the bond matures.
This procedure offers the same functionality as the
method (double, double, double, int)
except that here the internal equation solving algorithm parameters can be set. These parameters are the upper bound
of the yield over which the solution is searched and the precision of the returned result can be specified.
Remarks:
price - the current market price of the bondcoupon - the annual coupon of the bond convertible half-yearly (that is, paid in half-yearly installments)taxRate - the investor's rate of tax on income in decimal format (i.e. 1 percent = 0.01)yearsToRedemption - the number of (whole) year until the redemption (or maturity) of the bondupperBound - the upper bound of the interval over which the yield will be sort. If you are unsure as to a suitable value then by setting this parameter to 2 you will cover all cases where the yield is less than 200 percent.precision - the accuracy of the result. This is an internal parameter used by the equation solver algorithm, the smaller the precision required the more accurate the result but also the longer the computation will take. A suitable value for this parameter is 0.0001.
NoSolutionException - thrown if no solution to the equation corresponding to the yield can be found for the given search interval
FixedInterestBondsDemoExceptionnetRedemptionYield(double, double, double, int)
also evaluates the net redemption yield but here the upper bound and the precision are given pre-set values, namely
200 percent and 0.001 respectively.,
FixedInterestBonds.netRedemptionYield(double, double, double, int, double, double)
public double holdingPeriodReturn(double price,
double coupon,
double sellingPrice,
Date purchaseDate,
Date saleDate,
BusinessCalendar businessCalendar)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the half-yearly holding period return on an interest payment date when the bond is held for a (whole) number of years. Recall that, the holding period return is the return over the period that the bond was held by the investor.
Remarks:
200 percent and the precision
used is 0.001. If the yield falls out side this range or if you desire a different level
of precision then you should us the method
(double,double,double,int,double,double).
price - the purchase price on the bondcoupon - the annual coupon of the bond convertible half-yearly (that is, payable in half-yearly installments)sellingPrice - the market price at which the investor can sell the bond (when the holding period is evaluated)purchaseDate - the date when the asset is purchasedsaleDate - the date when the asset is soldbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
NoSolutionException - if no solution to the equation can be found
FixedInterestBondsDemoExceptionholdingPeriodReturn(double, double, double, int, double, double)
also evaluates the holding period return using the same approach but allow the upper bound over which the return is sort and the
precision with which it is returned to be specified.,
FixedInterestBonds.holdingPeriodReturn(double, double, double, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar)
public double holdingPeriodReturn(double price,
double coupon,
double sellingPrice,
int yearsHeld)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the half-yearly holding period return on an interest payment date when the bond is held for a (whole) number of years. Recall that, the holding period return is the return over the period that the bond was held by the investor.
Remarks:
200 percent and the precision
used is 0.001. If the yield falls out side this range or if you desire a different level
of precision then you should us the method
(double,double,double,int,double,double).
price - the purchase price on the bondcoupon - the annual coupon of the bond convertible half-yearly (that is, payable in half-yearly installments)yearsHeld - the number of (whole) years over which the bond in heldsellingPrice - the market price at which the investor can sell the bond (when the holding period is evaluated)
NoSolutionException - if no solution to the equation can be found
FixedInterestBondsDemoExceptionholdingPeriodReturn(double, double, double, int, double, double)
also evaluates the holding period return using the same approach but allow the upper bound over which the return is sort and the
precision with which it is returned to be specified.,
FixedInterestBonds.holdingPeriodReturn(double, double, double, int)
public double holdingPeriodReturn(double purchasePrice,
double coupon,
double sellingPrice,
Date purchaseDate,
Date saleDate,
double upperBound,
double precision,
BusinessCalendar businessCalendar)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the half-yearly holding period return on an interest payment date when the asset is held for a whole number of years in accordance with user defined algorithm specific parameters. Recall that, the holding period return is the yield over the period that the bond was held by the investor.
This procedure offers the same functionality as the method holdingPeriodReturn(double, double, double, int)
except that here the internal equation solving algorithm parameters can be set. This is, the upper bound
of the return over which the solution is searched and the precision of the returned result can be specified.
Remarks:
purchasePrice - the purchase price of the bondcoupon - the annual coupon of the bond convertible half-yearly (that is, payable in half yearly-installments)sellingPrice - the market price at which the investor can sell the bond (when the holding period return is evaluated)upperBound - the upper bound of the interval over which the (holding period) return will be sort. If you are unsure as to a suitable value then by setting this parameter to 2 you will cover all cases where the (annual) return is less than 200 percent.precision - the accuracy of the result. This is an internal parameter used by the equation solver algorithm, the smaller the precision required the more accurate the result but also the longer the computation will take. A suitable value for this parameter is 0.0001.purchaseDate - the date when the asset is purchasedsaleDate - the date when the holding period return is evaluatedbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
NoSolutionException - thrown if no solution to the equation corresponding to the holding period return
can be found for the given search interval selected.
FixedInterestBondsDemoExceptionalso evaluates the holding period return but here the upper bound and the precision are given pre-set values, namely
200 percent and 0.001 respectively.,
FixedInterestBonds.holdingPeriodReturn(double, double, double, java.util.Date, java.util.Date, double, double, webcab.lib.calendar.BusinessCalendar)
public double holdingPeriodReturn(double purchasePrice,
double coupon,
double sellingPrice,
int yearsHeld,
double upperBound,
double precision)
throws NoSolutionException,
FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the half-yearly holding period return on an interest payment date when the asset is held for a whole number of years in accordance with user defined algorithm specific parameters. Recall that, the holding period return is the yield over the period that the bond was held by the investor.
This procedure offers the same functionality as the method holdingPeriodReturn(double, double, double, int)
except that here the internal equation solving algorithm parameters can be set. This is, the upper bound
of the return over which the solution is searched and the precision of the returned result can be specified.
Remarks:
purchasePrice - the purchase price of the bondcoupon - the annual coupon of the bond convertible half-yearly (that is, payable in half yearly-installments)yearsHeld - the number of (whole) years over which the bond is heldsellingPrice - the market price at which the investor can sell the bond (when the holding period return is evaluated)upperBound - the upper bound of the interval over which the (holding period) return will be sort. If you are unsure as to a suitable value then by setting this parameter to 2 you will cover all cases where the (annual) return is less than 200 percent.precision - the accuracy of the result. This is an internal parameter used by the equation solver algorithm, the smaller the precision required the more accurate the result but also the longer the computation will take. A suitable value for this parameter is 0.0001.
NoSolutionException - thrown if no solution to the equation corresponding to the holding period return
can be found for the given search interval selected.
FixedInterestBondsDemoExceptionalso evaluates the holding period return but here the upper bound and the precision are given pre-set values, namely
200 percent and 0.001 respectively.,
FixedInterestBonds.holdingPeriodReturn(double, double, double, int, double, double)
public double simpleYieldToMaturity(double price,
double coupon,
Date evaluationDate,
Date redemptionDate,
BusinessCalendar businessCalendar)
throws FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Returns the simple yield to maturity of a fixed-interest bond.
Remark Within Japanese bond markets the concept of simple interest is used when calculating the yield to maturity rather than the usual compound interest method (i.e. redemption yield).
price - the current market price of the bond (this may including accrued interestcoupon - the annual coupon payable in half yearly installmentsevaluationDate - the date when the simple yield to maturity is evaluatedredemptionDate - the redemption date of the bondbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
FixedInterestBondsDemoExceptionFixedInterestBonds.simpleYieldToMaturity(double, double, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar)
public double simpleYieldToMaturity(double price,
double coupon,
double redemption)
throws FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Returns the simple yield to maturity of a fixed-interest bond.
Remark Within Japanese bond markets the concept of simple interest is used when calculating the yield to maturity rather than the usual compound interest method (i.e. redemption yield).
price - the current market price of the bond (this may including accrued interestcoupon - the annual coupon payable in half yearly installmentsredemption - the time in years expressed in decimal format until the redemption of the bond
FixedInterestBondsDemoExceptionFixedInterestBonds.simpleYieldToMaturity(double, double, double)
public double currentPrice(double coupon,
double grossRedemption,
Date evaluationDate,
Date redemptionDate,
BusinessCalendar businessCalendar)
throws FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the current price of a fixed-interest bond where there is an integer number of years until the redemption of the bond.
coupon - annual coupon of the bondgrossRedemption - the gross redemption yield of the fixed-interest bondevaluationDate - the evaluation dateredemptionDate - the redemption date of the bondbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
FixedInterestBondsDemoExceptionFixedInterestBonds.currentPrice(double, double, java.util.Date, java.util.Date, webcab.lib.calendar.BusinessCalendar)
public double currentPrice(double coupon,
double grossRedemption,
int redemption)
throws FixedInterestBondsDemoException
Description copied from the FixedInterestBonds interface:
Calculates the current price of a fixed-interest bond where there is an integer number of years until the redemption of the bond.
coupon - annual coupon of the bondgrossRedemption - the gross redemption yield of the fixed-interest bondredemption - the (whole) number of years until redemption on the bond
FixedInterestBondsDemoExceptionFixedInterestBonds.currentPrice(double, double, int)
|
WebCab Bonds Demo (J2EE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||