/src/main/java/net/finmath/montecarlo/interestrate/products/components/Option.java
RandomVariable values = underlying.getValue( model, exerciseDate) ;
RandomVariable values = underlying.getValue ( exerciseDate, model ) ;
public RandomVariable getValue(final double evaluationTime, final TermStructureMonteCarloSimulationModel model) throws CalculationException { final RandomVariable one = model.getRandomVariableForConstant(1.0); final RandomVariable zero = model.getRandomVariableForConstant(0.0); if(evaluationTime > exerciseDate) { return zero; } <extra_id_0> RandomVariable strike; if(strikeProduct != null) { strike = strikeProduct.getValue(exerciseDate, model); } else { strike = model.getRandomVariableForConstant(strikePrice); }