/** * Sets value of the local loop variable of the sequence and updates all it's dependencies until * we reach the sequence algo. */ private void updateLocalVar(double varVal) { // set local variable to given value var.setValue(varVal); // update var's algorithms until we reach expression if (expressionParentAlgo != null) { // update all dependent algorithms of the local variable var this.setStopUpdateCascade(true); var.getAlgoUpdateSet().updateAllUntil(expressionParentAlgo); this.setStopUpdateCascade(false); expressionParentAlgo.update(); } }