// generate the code corresponding to the compute aggregates public String toCodeComputeAggregates() { if (computeAggregatesGroup == null) return null; else return computeAggregatesGroup.toCodeSource() + " " + Utility.wordForm(computeAggregatesGroup.toCodeSource(), "computes") + " aggregates"; }
// same as a above but take a task string instead of a TaskGroup public void setComputeAggregatesGroup(String computeAggregatesGroupString) { TaskGroup taskGroup = new TaskGroup(program); taskGroup.setSource(computeAggregatesGroupString); setComputeAggregatesGroup(taskGroup); }