|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.calc.YieldQuote
public class YieldQuote
A yield based implementation of Quote.
| Nested Class Summary | |
|---|---|
static class |
YieldQuote.RedemptionType
|
| Constructor Summary | |
|---|---|
YieldQuote(double yield)
Constructs a new YieldQuote from the given yield without a concession and priced to the lowest yield. |
|
YieldQuote(double yield,
double concession)
Constructs a new YieldQuote from the given yield an concession priced to the lowest yield. |
|
YieldQuote(double yield,
double concession,
Redemption redemption)
Constructs a new YieldQuote using the given yield less concession, priced to the given Redemption. |
|
YieldQuote(double yield,
double concession,
YieldQuote.RedemptionType redemptionType)
Constructs a new YieldQuote using the given yield less concession priced to the given RedemptionType. |
|
YieldQuote(double yield,
Redemption redemption)
Constructs a new YieldQuote from the given yield and Redemption without a concession. |
|
YieldQuote(double yield,
YieldQuote.RedemptionType redemptionType)
Constructs a new YieldQuote from the given yield and RedemptionType without a concession. |
|
| Method Summary | |
|---|---|
double |
getConcession()
Get the concession. |
double |
getPrice(Calculator maturityCalculator,
Calculator[] otherRedemptionCalculators)
Returns a price. |
Redemption |
getRedemption()
Get the specific Redemption if any, to which this quote is priced. |
YieldQuote.RedemptionType |
getRedemptionType()
Get the RedemptionType if any. |
double |
getYield()
Get the yield. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YieldQuote(double yield)
yield - the yield.
public YieldQuote(double yield,
YieldQuote.RedemptionType redemptionType)
yield - the yield.redemptionType - the RedemptionType to which this quote is priced.
public YieldQuote(double yield,
Redemption redemption)
yield - the yield.redemption - the Redemption to which this quote is priced.
public YieldQuote(double yield,
double concession)
yield - the yield.concession - the concession.
public YieldQuote(double yield,
double concession,
YieldQuote.RedemptionType redemptionType)
yield - the yield.concession - the concession.redemptionType - the RedemptionType to which this quote is priced.
public YieldQuote(double yield,
double concession,
Redemption redemption)
yield - the yield.concession - the concession.redemption - the Redemption to which this quote is priced.| Method Detail |
|---|
public double getYield()
public double getConcession()
public YieldQuote.RedemptionType getRedemptionType()
public Redemption getRedemption()
public double getPrice(Calculator maturityCalculator,
Calculator[] otherRedemptionCalculators)
throws CalculationException
Quote
getPrice in interface QuotematurityCalculator - A calculator bound to maturity.otherRedemptionCalculators - An array of calculators bound to
each of the calls.
CalculationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||