|
||||||||||
| 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
public abstract class AbstractPreferredSecurity
Abstract Security implementation that includes call information and data required for preferred Securities.
| Field Summary | |
|---|---|
protected FISADate |
dividendPaymentDate
|
protected FISADate |
exDividendDate
|
protected InterestFrequency |
interestFrequency
|
protected double |
interestRate
|
| Constructor Summary | |
|---|---|
AbstractPreferredSecurity(Market market)
Creates an AbstractCallableSecurity 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. |
Calculator |
getCalculator(FISADate settlementDate,
Redemption redemption)
Get a Calculator for this Security and provided
settlementDate to Redemption period. |
CallSchedule |
getCallSchedule()
Get the CallSchedule for this Security. |
FISADate |
getDividendPaymentDate()
Get the dividendPaymentDate. |
FISADate |
getExDividendDate()
Get the exDividendDate. |
InterestFrequency |
getInterestFrequency()
Get the InterestFrequency. |
double |
getInterestRate()
Get the interest rate. |
java.util.Collection |
getRedemptions()
Get a Collection of all Redemptions. |
void |
setCallSchedule(CallSchedule callSchedule)
Set the CallSchedule for this Security. |
void |
setDividendPaymentDate(FISADate dividendPaymentDate)
Set the dividendPaymentDate. |
void |
setExDividendDate(FISADate exDividendDate)
Set the exDividendDate. |
void |
setInterestFrequency(InterestFrequency interestFrequency)
Set the InterestFrequency. |
void |
setInterestRate(double interestRate)
Set the interestRate rate. |
| 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 |
|---|
createQuoteAnalytics, getCalculator |
| Field Detail |
|---|
protected double interestRate
protected InterestFrequency interestFrequency
protected FISADate dividendPaymentDate
protected FISADate exDividendDate
| Constructor Detail |
|---|
public AbstractPreferredSecurity(Market market)
Market.
market - required and immutable Market for
this security. This constructor will throw a
NullPointerException if Market is null.| Method Detail |
|---|
public double getInterestRate()
public void setInterestRate(double interestRate)
interestRate - rate.public InterestFrequency getInterestFrequency()
public void setInterestFrequency(InterestFrequency interestFrequency)
interestFrequency - the InterestFrequencypublic FISADate getDividendPaymentDate()
public void setDividendPaymentDate(FISADate dividendPaymentDate)
dividendPaymentDate - public FISADate getExDividendDate()
public void setExDividendDate(FISADate exDividendDate)
exDividendDate - public void setCallSchedule(CallSchedule callSchedule)
CallSchedule for this Security.
callSchedule - public CallSchedule getCallSchedule()
CallSchedule for this Security.
CallSchedule for this Security.
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
CalculationException
public Calculator getCalculator(FISADate settlementDate,
Redemption redemption)
throws CalculationException
Calculator for this Security and provided
settlementDate to Redemption period. Settlement will be used
as tradeDate.
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
CalculationExceptionpublic java.util.Collection getRedemptions()
Collection of all Redemptions.
Redemptions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||