|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.AbstractSecurity
public abstract class AbstractSecurity
Abstract Security implementation with very minimum common fields.
| Constructor Summary | |
|---|---|
AbstractSecurity(Market market)
Creates an AbstractSecurity object of the given Market. |
|
| Method Summary | |
|---|---|
protected void |
addSecurityInvalidationListener(SecurityInvalidationListener listener)
Add a SecurityInvalidationListener. |
FISADate |
getDatedDate()
Get method for property datedDate. |
DayCountBasis |
getDayCountBasis()
Get method for property dayCountBasis. |
Market |
getMarket()
Get method for property market. |
double |
getParValue()
Get method for property parValue. |
protected void |
invalidate()
This method is called to inform all interested listeners that this Security has been changed. |
boolean |
isEomAdjust()
Get method for property eomAdjust. |
protected void |
removeSecurityInvalidationListener(SecurityInvalidationListener listener)
Remove a SecurityInvalidationListener. |
void |
setDatedDate(FISADate datedDate)
Set method for property datedDate. |
void |
setDayCountBasis(DayCountBasis dayCountBasis)
Set the DayCountBasis to be used for calculating this Security. |
void |
setEomAdjust(boolean eomAdjust)
Set whether or not the End Of Month Adjustment rule should be used when calculating this Security. |
void |
setParValue(double parValue)
Set method for property parValue. |
| 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 |
|---|
calculate, calculate, calculateAccruedInterest, calculatePrice, calculatePrice, calculateYield, calculateYield, createQuoteAnalytics, getCalculator, getCalculator, getRedemptions |
| Constructor Detail |
|---|
public AbstractSecurity(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 Market getMarket()
getMarket in interface Securitypublic final FISADate getDatedDate()
public final void setDatedDate(FISADate datedDate)
datedDate - New value of property datedDate.public final double getParValue()
public final void setParValue(double parValue)
parValue - New value of property parValue.public final DayCountBasis getDayCountBasis()
DayCountBasis for this Security.
If a DayCountBasis has not been set for this
Security then the default DayCountBasis
for this Market will be returned.public final void setDayCountBasis(DayCountBasis dayCountBasis)
DayCountBasis to be used for calculating this Security.
dayCountBasis - The DayCountBasis to be used for calculating this Security.public final boolean isEomAdjust()
Security.
If eomAdjust has not been set for this Security
then the default eomAdjust value for this Market
will be returned.public final void setEomAdjust(boolean eomAdjust)
Security.
eomAdjust - New value of property eomAdjust.protected void invalidate()
Security has been changed.
protected void addSecurityInvalidationListener(SecurityInvalidationListener listener)
SecurityInvalidationListener. This is wrapped with a
WeakReference, so it is important that a strong reference be kept
to the passed listener.
listener - The SecurityInvalidationListener to be added.protected void removeSecurityInvalidationListener(SecurityInvalidationListener listener)
SecurityInvalidationListener.
listener - The SecurityInvalidationListener to be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||