// obtain stochastic process
this.stochProcess = new BlackScholesMertonProcess(new Handle<Quote>(spot), qTS, rTS, volTS);
// obtain a pricing engine and assign to this option :: 3 intervals a day
final int timeSteps = (int) (exercise.lastDate().sub(referenceDate) * 3);
final PricingEngine engine = new BinomialDividendVanillaEngine<CoxRossRubinstein>(CoxRossRubinstein.class, stochProcess, timeSteps) { /* anonymous */ };
// assign the pricing engine to this option
this.setPricingEngine(engine);
// assign new values to spot, qRate, rRate and vol