/src/main/java/net/finmath/modelling/productfactory/InterestRateMonteCarloProductFactory.java
final net.finmath.modelling.descriptor.InterestRateSwapLegProductDescriptor swapLeg =((net.finmath.modelling.descriptor.InterestRateSwapLegProductDescriptor)(descriptor)); final net.finmath.modelling.DescribedProduct<net.finmath.modelling.descriptor.InterestRateSwapLegProductDescriptor> product = new net.finmath.modelling.productfactory.InterestRateMonteCarloProductFactory.SwapLegMonteCarlo(swapLeg, referenceDate); return product;
if ( descriptor instanceof InterestRateSwapLegProductDescriptor ) { final InterestRateSwapLegProductDescriptor swapLeg   = ( InterestRateSwapLegProductDescriptor ) descriptor; final DescribedProduct<InterestRateSwapLegProductDescriptor> product = new SwapLegMonteCarlo ( swapLeg, referenceDate ) ; return product; }
public InterestRateMonteCarloProductFactory(final LocalDate referenceDate) { super(); this.referenceDate = referenceDate; } @Override public DescribedProduct<? extends InterestRateProductDescriptor> getProductFromDescriptor(final ProductDescriptor descriptor) { <extra_id_0> } else if(descriptor instanceof InterestRateSwapProductDescriptor){ final InterestRateSwapProductDescriptor swap = (InterestRateSwapProductDescriptor) descriptor; final DescribedProduct<InterestRateSwapProductDescriptor> product = new SwapMonteCarlo(swap, referenceDate); return product; }