Package org.drip.param.definition
Class ProductQuote
java.lang.Object
org.drip.param.definition.ProductQuote
- Direct Known Subclasses:
ProductMultiMeasure
public abstract class ProductQuote
extends java.lang.Object
ProductQuote abstract class holds the different types of quotes for a given product. It contains a
single market field/quote pair, but multiple alternate named quotes (to accommodate quotes on different
measures for the component).
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Cash Flow, Valuation, Market, Pricing, and Quoting Parameters
- Package = Latent State Quantification Metrics Tweak
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ProductQuote()
-
Method Summary
Modifier and Type Method Description abstract void
addQuote(java.lang.String strQuoteField, Quote q, boolean bIsMarketQuote)
Add a regular or a market quote for the componentabstract boolean
containsQuote(java.lang.String strQuoteField)
Indicate if the named quote is availableabstract Quote
marketQuote()
Return the market quote objectabstract java.lang.String
marketQuoteField()
Retrieve the market quote fieldabstract Quote
quote(java.lang.String strQuoteField)
Get the Quote for the given Fieldabstract boolean
removeMarketQuote()
Remove the market quoteabstract boolean
removeQuote(java.lang.String strQuoteField)
Remove the named Quoteabstract boolean
setMarketQuote(java.lang.String strMarketQuoteField, Quote q)
Set the market quote for the componentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ProductQuote
public ProductQuote()
-
-
Method Details
-
addQuote
Add a regular or a market quote for the component- Parameters:
strQuoteField
- The quote fieldq
- Quote to be addedbIsMarketQuote
- Whether the quote is a market quote
-
setMarketQuote
Set the market quote for the component- Parameters:
strMarketQuoteField
- Market Quote fieldq
- Quote- Returns:
- True if successfully added
-
removeMarketQuote
public abstract boolean removeMarketQuote()Remove the market quote- Returns:
- TRUE - The Market Quote has been removed
-
quote
Get the Quote for the given Field- Parameters:
strQuoteField
- Field Name- Returns:
- Quote object
-
marketQuote
Return the market quote object- Returns:
- Quote object
-
marketQuoteField
public abstract java.lang.String marketQuoteField()Retrieve the market quote field- Returns:
- Field name
-
removeQuote
public abstract boolean removeQuote(java.lang.String strQuoteField)Remove the named Quote- Parameters:
strQuoteField
- Named Quote Field- Returns:
- Success (true) or failure (false)
-
containsQuote
public abstract boolean containsQuote(java.lang.String strQuoteField)Indicate if the named quote is available- Parameters:
strQuoteField
- The Quote Name- Returns:
- TRUE - Named Quote is present
-