/src/main/java/net/finmath/modelling/modelfactory/AssetModelMonteCarloFactory.java
private SingleAssetMonteCarloProductFactory productFactory;
private final SingleAssetMonteCarloProductFactory productFactory;
public DescribedProduct<? extends ProductDescriptor> getProductFromDescriptor(final ProductDescriptor productDescriptor) { return productFactory.getProductFromDescriptor(productDescriptor); } } private static class MertonModelMonteCarlo extends MonteCarloAssetModel implements DescribedModel<MertonModelDescriptor>{ private final MertonModelDescriptor descriptor; <extra_id_0> private MertonModelMonteCarlo(final MertonModelDescriptor descriptor, final RandomVariableFactory randomVariableFactory, final IndependentIncrements stochasticDriver) { super(new net.finmath.montecarlo.assetderivativevaluation.models.MertonModel(descriptor), stochasticDriver); this.descriptor = descriptor; productFactory = new SingleAssetMonteCarloProductFactory(descriptor.getReferenceDate());