net.finmath.modelling
Class UnsupportedProduct
- java.lang.Object
-
- net.finmath.modelling.UnsupportedProduct
-
- All Implemented Interfaces:
- java.io.Serializable, AnalyticProductInterface, ProductInterface
public class UnsupportedProduct extends java.lang.Object implements ProductInterface, AnalyticProductInterface, java.io.Serializable
A product throwing an exception if itsgetValuemethod is called. This class can be used to created products trigger an exception only upon valuation (i.e., late).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description UnsupportedProduct(java.lang.Exception exception)Creates an unsupported product throwing an exception if itsgetValuemethod is called.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetValue(double evaluationTime, AnalyticModelInterface model)Return the valuation of the product using the given model.java.lang.ObjectgetValue(double evaluationTime, ModelInterface model)Return the valuation of the product using the given model.java.lang.StringtoString()
-
-
-
Constructor Detail
-
UnsupportedProduct
public UnsupportedProduct(java.lang.Exception exception)
Creates an unsupported product throwing an exception if itsgetValuemethod 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:ProductInterfaceReturn the valuation of the product using the given model.- Specified by:
getValuein interfaceProductInterface- 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:AnalyticProductInterfaceReturn the valuation of the product using the given model. The model has to implement the modes ofAnalyticModelInterface.- Specified by:
getValuein interfaceAnalyticProductInterface- 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:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG