|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.AbstractSecurity
com.ftlabs.fisa.MaturingSecurity
public abstract class MaturingSecurity
An abstract implementation of Security for securities that mature.
| Constructor Summary | |
|---|---|
MaturingSecurity(Market market)
Creates a MaturingSecurity object of the given Market. |
|
| Method Summary | |
|---|---|
Analytics |
calculate(AnalyticValueType givenType,
double givenValue,
FISADate settlementDate)
A convenience method to calculate an Analytics object using the provided
value and settlementDate to Maturity period. |
Analytics |
calculate(AnalyticValueType givenType,
double givenValue,
FISADate settlementDate,
Redemption redemption)
A convenience method to calculate an Analytics object using the provided
value and settlementDate to Redemption period. |
double |
calculateAccruedInterest(FISADate settlementDate)
A convenience method to calculate the accrued interest for the provided settlementDate. |
double |
calculatePrice(double yield,
FISADate settlementDate)
A convenience method to calculate the price from the provided yield and settlementDate to maturity Redemption period. |
double |
calculatePrice(double yield,
FISADate settlementDate,
Redemption redemption)
A convenience method to calculate the price from the provided yield and settlement to Redemption period. |
double |
calculateYield(double price,
FISADate settlementDate)
A convenience method to calculate the yield from the provided price and settlementDate to maturity Redemption period. |
double |
calculateYield(double price,
FISADate settlementDate,
Redemption redemption)
A convenience method to calculate the yield from the provided price and settlement to Redemption period. |
QuoteAnalytics |
createQuoteAnalytics(Quote quote,
FISADate settlementDate)
|
Calculator |
getCalculator(FISADate settlementDate)
Get a Calculator for this Security and provided
settlementDate. |
Redemption |
getMaturity()
Get the maturity Redemption. |
FISADate |
getMaturityDate()
A convenience method to get the current maturityDate. |
java.util.Collection |
getRedemptions()
Get a Collection that only contains maturity. |
void |
setMaturity(FISADate maturityDate)
Sets maturity to a new Redemption object for the given
maturityDate with a default redemption value of 100. |
void |
setMaturity(FISADate maturityDate,
double redemptionValue)
Sets maturity to a new Redemption object for the
given maturityDate and redemptionValue. |
void |
setMaturity(Redemption maturity)
Set the maturity Redemption. |
| Methods inherited from class com.ftlabs.fisa.AbstractSecurity |
|---|
addSecurityInvalidationListener, getDatedDate, getDayCountBasis, getMarket, getParValue, invalidate, isEomAdjust, removeSecurityInvalidationListener, setDatedDate, setDayCountBasis, setEomAdjust, setParValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ftlabs.fisa.Security |
|---|
getCalculator |
| Constructor Detail |
|---|
public MaturingSecurity(Market market)
Market.
market - required and immutable Market for
this security. This constructor will throw a
java.lang.NullPointerException if Market is null.| Method Detail |
|---|
public final Redemption getMaturity()
Redemption.
Redemption.public final FISADate getMaturityDate()
public final void setMaturity(Redemption maturity)
Redemption.
maturity - New maturity Redemption.
public final void setMaturity(FISADate maturityDate,
double redemptionValue)
Redemption object for the
given maturityDate and redemptionValue.
maturityDate - the date on which the security maturesredemptionValue - the redemption value at maturitypublic final void setMaturity(FISADate maturityDate)
Redemption object for the given
maturityDate with a default redemption value of 100.
maturityDate - the date on which the security matures
public Calculator getCalculator(FISADate settlementDate)
throws CalculationException
Calculator for this Security and provided
settlementDate. The maturity Redemption will be used with
this settlementDate to create a new Calculator.
settlementDate - The binding settlementDate for which all calculations
will be run.
Calculator for this Security and provided settlement
date to maturity Redemption period.
com.ftlabs.fis.calc.CalculationException
CalculationException
public QuoteAnalytics createQuoteAnalytics(Quote quote,
FISADate settlementDate)
throws CalculationException
CalculationException
public double calculatePrice(double yield,
FISADate settlementDate)
throws CalculationException
Redemption period.
yield - The yield.settlementDate - The settlement date.
com.ftlabs.fis.calc.CalculationException
CalculationException
public double calculatePrice(double yield,
FISADate settlementDate,
Redemption redemption)
throws CalculationException
Redemption period.
yield - The yield.settlementDate - The settlement date for which this calculation is run.redemption - The Redemption to which this calculation is run.
Redemption period.
com.ftlabs.fis.calc.CalculationException
CalculationException
public double calculateYield(double price,
FISADate settlementDate)
throws CalculationException
Redemption period.
price - The price.settlementDate - The settlement date.
com.ftlabs.fis.calc.CalculationException
CalculationException
public double calculateYield(double price,
FISADate settlementDate,
Redemption redemption)
throws CalculationException
Redemption period.
price - The price.settlementDate - The settlement date for which this calculation is run.redemption - The Redemption to which this calculation is run.
Redemption period.
com.ftlabs.fis.calc.CalculationException
CalculationException
public Analytics calculate(AnalyticValueType givenType,
double givenValue,
FISADate settlementDate)
throws CalculationException
Analytics object using the provided
value and settlementDate to Maturity period.
givenType - The AnalyticValueType of the givenValue.givenValue - The value to calculate the Analytics from.settlementDate - The settlement date.
Analytics for this Security calcluated from the provided
value and settlement date.
com.ftlabs.fis.calc.CalculationException
CalculationException
public Analytics calculate(AnalyticValueType givenType,
double givenValue,
FISADate settlementDate,
Redemption redemption)
throws CalculationException
Analytics object using the provided
value and settlementDate to Redemption period.
givenType - The AnalyticValueType of the givenValue.givenValue - The value to calculate the Analytics from.settlementDate - The settlement date.redemption - The Redemption.
Analytics for this Security calcluated from the provided
value and settlementDate to Redemption period.
com.ftlabs.fis.calc.CalculationException
CalculationException
public double calculateAccruedInterest(FISADate settlementDate)
throws CalculationException
settlementDate - The settlement date.
com.ftlabs.fis.calc.CalculationException
CalculationExceptionpublic java.util.Collection getRedemptions()
Collection that only contains maturity.
Collection that only contains maturity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||