Package org.drip.param.quote
Class ProductMultiMeasure
java.lang.Object
org.drip.param.definition.ProductQuote
org.drip.param.quote.ProductMultiMeasure
public class ProductMultiMeasure extends ProductQuote
ProductMultiMeasure holds the different types of quotes for a given component. It contains a single
market field/quote pair, but multiple alternate named quotes (to accommodate quotes on different measure
for the component).
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Cash Flow, Valuation, Market, Pricing, and Quoting Parameters
- Package = Multi-sided Multi-Measure Ticks Quotes
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ProductMultiMeasure()
Construct an empty instance of ProductMultiMeasure -
Method Summary
Modifier and Type Method Description void
addQuote(java.lang.String strQuoteField, Quote q, boolean bIsMarketQuote)
Add a regular or a market quote for the componentboolean
containsQuote(java.lang.String strQuoteField)
Indicate if the named quote is availableQuote
marketQuote()
Return the market quote objectjava.lang.String
marketQuoteField()
Retrieve the market quote fieldQuote
quote(java.lang.String strQuoteField)
Get the Quote for the given Fieldboolean
removeMarketQuote()
Remove the market quoteboolean
removeQuote(java.lang.String strQuoteField)
Remove the named Quoteboolean
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
-
ProductMultiMeasure
public ProductMultiMeasure()Construct an empty instance of ProductMultiMeasure
-
-
Method Details
-
addQuote
Description copied from class:ProductQuote
Add a regular or a market quote for the component- Specified by:
addQuote
in classProductQuote
- Parameters:
strQuoteField
- The quote fieldq
- Quote to be addedbIsMarketQuote
- Whether the quote is a market quote
-
setMarketQuote
Description copied from class:ProductQuote
Set the market quote for the component- Specified by:
setMarketQuote
in classProductQuote
- Parameters:
strMarketQuoteField
- Market Quote fieldq
- Quote- Returns:
- True if successfully added
-
removeMarketQuote
public boolean removeMarketQuote()Description copied from class:ProductQuote
Remove the market quote- Specified by:
removeMarketQuote
in classProductQuote
- Returns:
- TRUE - The Market Quote has been removed
-
quote
Description copied from class:ProductQuote
Get the Quote for the given Field- Specified by:
quote
in classProductQuote
- Parameters:
strQuoteField
- Field Name- Returns:
- Quote object
-
marketQuote
Description copied from class:ProductQuote
Return the market quote object- Specified by:
marketQuote
in classProductQuote
- Returns:
- Quote object
-
marketQuoteField
public java.lang.String marketQuoteField()Description copied from class:ProductQuote
Retrieve the market quote field- Specified by:
marketQuoteField
in classProductQuote
- Returns:
- Field name
-
removeQuote
public boolean removeQuote(java.lang.String strQuoteField)Description copied from class:ProductQuote
Remove the named Quote- Specified by:
removeQuote
in classProductQuote
- Parameters:
strQuoteField
- Named Quote Field- Returns:
- Success (true) or failure (false)
-
containsQuote
public boolean containsQuote(java.lang.String strQuoteField)Description copied from class:ProductQuote
Indicate if the named quote is available- Specified by:
containsQuote
in classProductQuote
- Parameters:
strQuoteField
- The Quote Name- Returns:
- TRUE - Named Quote is present
-