Documentation of 'net.finmath.modelling.UnsupportedProduct' Java class
UnsupportedProduct
net.finmath.modelling

Class UnsupportedProduct

    • Constructor Summary

      Constructors 
      Constructor and Description
      UnsupportedProduct(java.lang.Exception exception)
      Creates an unsupported product throwing an exception if its getValue method is called.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double getValue(double evaluationTime, AnalyticModelInterface model)
      Return the valuation of the product using the given model.
      java.lang.Object getValue(double evaluationTime, ModelInterface model)
      Return the valuation of the product using the given model.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UnsupportedProduct

        public UnsupportedProduct(java.lang.Exception exception)
        Creates an unsupported product throwing an exception if its getValue method is called.
        Parameters:
        exception - The exception to be thrown if this product is evaluated.
    • Method Detail

      • getValue

        public java.lang.Object getValue(double evaluationTime,
                                         ModelInterface model)
        Description copied from interface: ProductInterface
        Return the valuation of the product using the given model.
        Specified by:
        getValue in interface ProductInterface
        Parameters:
        evaluationTime - The evaluation time as double. Cash flows prior and including this time are not considered.
        model - The model under which the product is valued.
        Returns:
        The value of the product using the given model.
      • getValue

        public double getValue(double evaluationTime,
                               AnalyticModelInterface model)
        Description copied from interface: AnalyticProductInterface
        Return the valuation of the product using the given model. The model has to implement the modes of AnalyticModelInterface.
        Specified by:
        getValue in interface AnalyticProductInterface
        Parameters:
        evaluationTime - The evaluation time as double. Cash flows prior and including this time are not considered.
        model - The model under which the product is valued.
        Returns:
        The value of the product using the given model.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.