protected Expression setupExpression(String formula) throws Exception {
return expressionManager.parse(formula);
}
protected void setupExpression(String formula, SimpleFormula algo) throws Exception {
Expression expression = expressionManager.parse(formula);
algo.setFormula(expression);
List vars = expressionManager.parseVariables(formula);
for (Iterator iter = vars.iterator(); iter.hasNext();) {
VariableFunction var = (VariableFunction) iter.next();
algo.addTrigger(var.getVariableName());