Module net.finmath.lib
Class AbstractAnalyticVolatilityCubeProduct
java.lang.Object
net.finmath.singleswaprate.products.AbstractAnalyticVolatilityCubeProduct
- All Implemented Interfaces:
AnalyticProduct,Product,AnalyticVolatilityCubeProduct
- Direct Known Subclasses:
AbstractSingleSwapRateProduct
public abstract class AbstractAnalyticVolatilityCubeProduct
extends Object
implements AnalyticVolatilityCubeProduct
Abstract layer between interface and implementation, which ensures compatibility of model and product.
- Author:
- Christian Fries, Roland Bachl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetValue(double evaluationTime, AnalyticModel model)Return the valuation of the product using the given model.Return the valuation of the product using the given model.doublegetValue(VolatilityCubeModel model)Return the valuation of the product at time 0 using the given model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.finmath.singleswaprate.products.AnalyticVolatilityCubeProduct
getValue
-
Constructor Details
-
AbstractAnalyticVolatilityCubeProduct
public AbstractAnalyticVolatilityCubeProduct()
-
-
Method Details
-
getValue
Description copied from interface:AnalyticProductReturn the valuation of the product using the given model. The model has to implement the modes ofAnalyticModel.- Specified by:
getValuein interfaceAnalyticProduct- 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
Description copied from interface:ProductReturn the valuation of the product using the given model. Implement this method using a checked cast of the model to a derived model for which the product provides a valuation algorithm. Example: an interest rate product requires that the passed model object implements the interface of an interest rate model. Since there is no polymorphism on arguments (see Double Dynamic Dispatch), we reply on a checked cast. -
getValue
Return the valuation of the product at time 0 using the given model. The model has to implement the modes ofVolatilityCubeModel.- Parameters:
model- The model under which the product is valued.- Returns:
- The value of the product using the given model.
-