|
||||||||||
| 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.AbstractPreferredSecurity
com.ftlabs.fisa.PreferredSecurity
public class PreferredSecurity
An implementation of Security for Preferreds.
| Field Summary |
|---|
| Fields inherited from class com.ftlabs.fisa.AbstractPreferredSecurity |
|---|
dividendPaymentDate, exDividendDate, interestFrequency, interestRate |
| Constructor Summary | |
|---|---|
PreferredSecurity(Market market)
Creates an PreferredSecurity object of the given Market. |
|
| Method Summary | |
|---|---|
QuoteAnalytics |
createQuoteAnalytics(Quote quote,
FISADate settlementDate)
|
Calculator |
getCalculator(FISADate settlementDate)
Get a Calculator for this Security and provided settlementDate. |
Calculator |
getCalculator(FISADate tradeDate,
FISADate settlementDate)
Get a Calculator for this Security and provided
tradeDate and settlementDate. |
Calculator |
getCalculator(FISADate tradeDate,
FISADate settlementDate,
Redemption redemption)
Get a Calculator for this PreferredSecurity and provided
settlementDate to Redemption period using the overriding
DayCountBasis. |
Redemption |
getMaturity()
Get the maturity Redemption. |
FISADate |
getMaturityDate()
A convenience method to get the current maturityDate. |
java.util.Collection |
getRedemptions()
Get a Collection of all Redemptions. |
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.AbstractPreferredSecurity |
|---|
calculate, calculate, calculateAccruedInterest, calculatePrice, calculatePrice, calculateYield, calculateYield, getCalculator, getCallSchedule, getDividendPaymentDate, getExDividendDate, getInterestFrequency, getInterestRate, setCallSchedule, setDividendPaymentDate, setExDividendDate, setInterestFrequency, setInterestRate |
| 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 |
| Constructor Detail |
|---|
public PreferredSecurity(Market market)
Market.
market - required and immutable Market for
this security. This constructor will throw a
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.
Settlement date will be used as the trade date and maturity
Redemption will be used as redemption.
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 Calculator getCalculator(FISADate tradeDate,
FISADate settlementDate)
throws CalculationException
Calculator for this Security and provided
tradeDate and settlementDate. The maturity Redemption will
be used with this settlementDate to create a new Calculator.
tradeDate - The binding tradeDate for which all calculations
will be run.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 Calculator getCalculator(FISADate tradeDate,
FISADate settlementDate,
Redemption redemption)
throws CalculationException
Calculator for this PreferredSecurity and provided
settlementDate to Redemption period using the overriding
DayCountBasis.
tradeDate - The binding tradeDate for which all calculations
will be run.settlementDate - The binding settlementDate for which all calculations
will be run.redemption - The binding Redemption to which all calculations
will be run.
Calculator for this Security and provided settlementDate
to Redemption period.
com.ftlabs.fis.calc.CalculationException
CalculationException
public QuoteAnalytics createQuoteAnalytics(Quote quote,
FISADate settlementDate)
throws CalculationException
CalculationExceptionpublic java.util.Collection getRedemptions()
Collection of all Redemptions.
getRedemptions in interface SecuritygetRedemptions in class AbstractPreferredSecurityRedemptions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||