예제 #1
0
 // 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";
 }
예제 #2
0
 // 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);
 }