/** * Creates a new {@link EventAssignment} element and adds it to the ListOfEventAssignments list. * * @param variable the target of the new {@link EventAssignment} * @param math the math expression for the new {@link EventAssignment} * @return the new {@link EventAssignment} instance. */ public EventAssignment createEventAssignment(Variable variable, ASTNode math) { return createEventAssignment(variable.getId(), math); }
/** * Creates a new {@link EventAssignment} element and adds it to the ListOfEventAssignments list. * * @param variable the target of the new {@link EventAssignment} * @param math the math expression for the new {@link EventAssignment} * @return the new {@link EventAssignment} instance. */ public EventAssignment createEventAssignment(String variable, ASTNode math) { EventAssignment ea = createEventAssignment(); ea.setVariable(variable); ea.setMath(math); return ea; }