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).

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 component
    boolean containsQuote​(java.lang.String strQuoteField)
    Indicate if the named quote is available
    Quote marketQuote()
    Return the market quote object
    java.lang.String marketQuoteField()
    Retrieve the market quote field
    Quote quote​(java.lang.String strQuoteField)
    Get the Quote for the given Field
    boolean removeMarketQuote()
    Remove the market quote
    boolean removeQuote​(java.lang.String strQuoteField)
    Remove the named Quote
    boolean setMarketQuote​(java.lang.String strMarketQuoteField, Quote q)
    Set the market quote for the component

    Methods 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

      public void addQuote​(java.lang.String strQuoteField, Quote q, boolean bIsMarketQuote)
      Description copied from class: ProductQuote
      Add a regular or a market quote for the component
      Specified by:
      addQuote in class ProductQuote
      Parameters:
      strQuoteField - The quote field
      q - Quote to be added
      bIsMarketQuote - Whether the quote is a market quote
    • setMarketQuote

      public boolean setMarketQuote​(java.lang.String strMarketQuoteField, Quote q)
      Description copied from class: ProductQuote
      Set the market quote for the component
      Specified by:
      setMarketQuote in class ProductQuote
      Parameters:
      strMarketQuoteField - Market Quote field
      q - Quote
      Returns:
      True if successfully added
    • removeMarketQuote

      public boolean removeMarketQuote()
      Description copied from class: ProductQuote
      Remove the market quote
      Specified by:
      removeMarketQuote in class ProductQuote
      Returns:
      TRUE - The Market Quote has been removed
    • quote

      public Quote quote​(java.lang.String strQuoteField)
      Description copied from class: ProductQuote
      Get the Quote for the given Field
      Specified by:
      quote in class ProductQuote
      Parameters:
      strQuoteField - Field Name
      Returns:
      Quote object
    • marketQuote

      public Quote marketQuote()
      Description copied from class: ProductQuote
      Return the market quote object
      Specified by:
      marketQuote in class ProductQuote
      Returns:
      Quote object
    • marketQuoteField

      public java.lang.String marketQuoteField()
      Description copied from class: ProductQuote
      Retrieve the market quote field
      Specified by:
      marketQuoteField in class ProductQuote
      Returns:
      Field name
    • removeQuote

      public boolean removeQuote​(java.lang.String strQuoteField)
      Description copied from class: ProductQuote
      Remove the named Quote
      Specified by:
      removeQuote in class ProductQuote
      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 class ProductQuote
      Parameters:
      strQuoteField - The Quote Name
      Returns:
      TRUE - Named Quote is present