|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.Market
public class Market
This class identifies the Market of a given Security
and provides market default settings and market specific
calculation methods.
To get an instance of Market, you can either use the static public country collections such as Market.US.CORPORATE, or the static public getByName() method such as Market.getByName( "US/Corporate" );
| Nested Class Summary | |
|---|---|
static class |
Market.US
Static Collection of all supported US markets. |
| Method Summary | |
|---|---|
static Market |
getByName(java.lang.String name)
Get a Market for the given name. |
DayCountBasis |
getDefaultDayCountBasis()
Retrieve the default DayCountBasis. |
DayCountBasis |
getDefaultDayCountBasis(java.lang.Class<? extends Security> securityClass)
Retrieve the default DayCountBasis for the provided Security
class within this Market. |
boolean |
getDefaultEomAdjust()
Retrieve the default End Of Month Adjustment setting. |
boolean |
getDefaultEomAdjust(java.lang.Class<? extends Security> securityClass)
Retrieve the default End Of Month Adjustment setting for the provided Security class within this Market. |
InterestFrequency |
getDefaultInterestFrequency()
Retrieve the default InterestFrequency. |
InterestFrequency |
getDefaultInterestFrequency(java.lang.Class<? extends Security> securityClass)
Retrieve the default InterestFrequency for the provided Security
class within this Market. |
int |
getDefaultSettlementDays()
Retrieve the default Number of days to settle. |
int |
getDefaultSettlementDays(java.lang.Class<? extends Security> securityClass)
Retrieve the default Number of days to settle for the provided Security class within this Market. |
static java.util.Collection<Market> |
getSupportedMarkets()
A static method that returns a sorted Collection
of all supported markets. |
double |
prepareAIForDisplay(double accruedInterest)
Prepare an accrued interest value for display according to market specific rules. |
double |
preparePriceForDisplay(double price)
Prepare a price value for display according to market specific rules. |
double |
prepareYieldForDisplay(double yield)
Prepare a yield value for display according to market specific rules. |
void |
setDefaultDayCountBasis(java.lang.Class<? extends Security> securityClass,
DayCountBasis dayCountBasis)
Change the default DayCountBasis for the provided Security
class within this Market. |
void |
setDefaultDayCountBasis(DayCountBasis dayCountBasis)
Change the default DayCountBasis for the this Market. |
void |
setDefaultEomAdjust(boolean eomAdjust)
Change the default End Of Month Adjustment setting for the this Market. |
void |
setDefaultEomAdjust(java.lang.Class<? extends Security> securityClass,
boolean eomAdjust)
Change the default End of Month Admustment setting for the provided Security class within this Market. |
void |
setDefaultInterestFrequency(java.lang.Class<? extends Security> securityClass,
InterestFrequency interestFrequency)
Change the default InterestFrequency for the provided Security
class within this Market. |
void |
setDefaultInterestFrequency(InterestFrequency interestFrequency)
Change the default InterestFrequency for the this Market. |
void |
setDefaultSettlementDays(java.lang.Class<? extends Security> securityClass,
int settlementDays)
Change the default days to settlement. |
void |
setDefaultSettlementDays(int settlementDays)
Change the default days to settlement. |
java.lang.String |
toString()
Returns the Market name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void setDefaultDayCountBasis(DayCountBasis dayCountBasis)
dayCountBasis - new default DayCountBasis.
public void setDefaultDayCountBasis(java.lang.Class<? extends Security> securityClass,
DayCountBasis dayCountBasis)
Security
class within this Market.
securityClass - A Security implementation Class.dayCountBasis - the new default DayCountBasis.public DayCountBasis getDefaultDayCountBasis()
public DayCountBasis getDefaultDayCountBasis(java.lang.Class<? extends Security> securityClass)
Security
class within this Market.
securityClass - A Security implementation Class.
Security
class within this Market.public void setDefaultInterestFrequency(InterestFrequency interestFrequency)
interestFrequency - new InterestFrequency.
public void setDefaultInterestFrequency(java.lang.Class<? extends Security> securityClass,
InterestFrequency interestFrequency)
Security
class within this Market.
securityClass - A Security implementation Class.interestFrequency - new InterestFrequency.public InterestFrequency getDefaultInterestFrequency()
public InterestFrequency getDefaultInterestFrequency(java.lang.Class<? extends Security> securityClass)
Security
class within this Market.
securityClass - A Security implementation Class.
Security
class within this Market.public void setDefaultEomAdjust(boolean eomAdjust)
eomAdjust - new default End Of Month Adjustment setting.
public void setDefaultEomAdjust(java.lang.Class<? extends Security> securityClass,
boolean eomAdjust)
Security class within this Market.
securityClass - A Security implementation Class.eomAdjust - the new default End Of Month Adjustment setting.public boolean getDefaultEomAdjust()
public boolean getDefaultEomAdjust(java.lang.Class<? extends Security> securityClass)
Security class within this Market.
securityClass - A Security implementation Class.
Security class within this Market.public int getDefaultSettlementDays()
public int getDefaultSettlementDays(java.lang.Class<? extends Security> securityClass)
Security class within this Market.
securityClass - A Security implementation Class.
Security class within this Market.public void setDefaultSettlementDays(int settlementDays)
settlementDays - new default days to settlement.
public void setDefaultSettlementDays(java.lang.Class<? extends Security> securityClass,
int settlementDays)
securityClass - A Security implementation Class.settlementDays - new default days to settlement.public double preparePriceForDisplay(double price)
price - The calculated price.
public double prepareYieldForDisplay(double yield)
yield - The calculated yield.
public double prepareAIForDisplay(double accruedInterest)
accruedInterest - The calculated accruedInterest.
public java.lang.String toString()
toString in class java.lang.Objectpublic static java.util.Collection<Market> getSupportedMarkets()
Collection
of all supported markets.
Collection of all supported Markets.public static Market getByName(java.lang.String name)
name - The name of the Market to retrieve.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||