} } else { nUnallocated++; }
} else { nUnallocated++; } } data[0] = new Integer(nTasks); data[1] = new Integer(nUnallocated); data[2] = new Integer(nLowConfidence); results.add(support.getAgentIdentifier()); results.add(data); return results;
    protected ArrayList collectData(SimpleServletSupport support) {             Collection tasks = getAllTasks(support);    Iterator taskIter = tasks.iterator();    ArrayList results = new ArrayList(2);    int nTasks = 0;    int nLowConfidence = 0;    int nUnallocated = 0;    Integer[] data = new Integer[3];    while(taskIter.hasNext()) {      Task t = (Task)taskIter.next();      nTasks++;      PlanElement pe = t.getPlanElement();      if(pe != null) {	AllocationResult estResult = pe.getEstimatedResult();	if( estResult != null ) {	  double estConf = estResult.getConfidenceRating();	  if( estConf < 0.5 ) {	    nLowConfidence++;	  }	}      } else {	nUnallocated++;      }	    }    data[0] = new Integer(nTasks);    data[1] = new Integer(nUnallocated);    data[2] = new Integer(nLowConfidence);    results.add(support.getAgentIdentifier());    results.add(data);    return results;    }