Fixed unimplemented method.
@@ -15,7 +15,9 @@ import net.finmath.marketdata.model.curves.DiscountCurveInterface;
import net.finmath.modelling.DescribedModel;
import net.finmath.modelling.DescribedProduct;
import net.finmath.modelling.ProductDescriptor;
+import net.finmath.modelling.SingleAssetProductDescriptor;
import net.finmath.modelling.descriptor.BlackScholesModelDescriptor;
+import net.finmath.modelling.productfactory.SingleAssetFourierProductFactory;
/**
* Implements the characteristic function of a Black Scholes model.
@@ -124,7 +126,6 @@ public class BlackScholesModel implements ProcessCharacteristicFunctionInterface
@Override
public DescribedProduct<? extends ProductDescriptor> getProductFromDescriptor(ProductDescriptor productDescriptor) {
- // TODO Auto-generated method stub
- return null;
+ return (new SingleAssetFourierProductFactory()).getProductFromDescriptor((SingleAssetProductDescriptor) productDescriptor);
}
}
