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 voidaddQuote(java.lang.String strQuoteField, Quote q, boolean bIsMarketQuote)Add a regular or a market quote for the componentbooleancontainsQuote(java.lang.String strQuoteField)Indicate if the named quote is availableQuotemarketQuote()Return the market quote objectjava.lang.StringmarketQuoteField()Retrieve the market quote fieldQuotequote(java.lang.String strQuoteField)Get the Quote for the given FieldbooleanremoveMarketQuote()Remove the market quotebooleanremoveQuote(java.lang.String strQuoteField)Remove the named QuotebooleansetMarketQuote(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:ProductQuoteAdd a regular or a market quote for the component- Specified by:
addQuotein classProductQuote- Parameters:
strQuoteField- The quote fieldq- Quote to be addedbIsMarketQuote- Whether the quote is a market quote
-
setMarketQuote
Description copied from class:ProductQuoteSet the market quote for the component- Specified by:
setMarketQuotein classProductQuote- Parameters:
strMarketQuoteField- Market Quote fieldq- Quote- Returns:
- True if successfully added
-
removeMarketQuote
public boolean removeMarketQuote()Description copied from class:ProductQuoteRemove the market quote- Specified by:
removeMarketQuotein classProductQuote- Returns:
- TRUE - The Market Quote has been removed
-
quote
Description copied from class:ProductQuoteGet the Quote for the given Field- Specified by:
quotein classProductQuote- Parameters:
strQuoteField- Field Name- Returns:
- Quote object
-
marketQuote
Description copied from class:ProductQuoteReturn the market quote object- Specified by:
marketQuotein classProductQuote- Returns:
- Quote object
-
marketQuoteField
public java.lang.String marketQuoteField()Description copied from class:ProductQuoteRetrieve the market quote field- Specified by:
marketQuoteFieldin classProductQuote- Returns:
- Field name
-
removeQuote
public boolean removeQuote(java.lang.String strQuoteField)Description copied from class:ProductQuoteRemove the named Quote- Specified by:
removeQuotein classProductQuote- Parameters:
strQuoteField- Named Quote Field- Returns:
- Success (true) or failure (false)
-
containsQuote
public boolean containsQuote(java.lang.String strQuoteField)Description copied from class:ProductQuoteIndicate if the named quote is available- Specified by:
containsQuotein classProductQuote- Parameters:
strQuoteField- The Quote Name- Returns:
- TRUE - Named Quote is present
-