long startTime = getPreferredTime(task, AspectType.START_TIME); long endTime = startTime + 1; double quantity = task.getPreferredValue(AspectType.QUANTITY); if (debug) System.out.println("Adding " + compareVerb + " requested due out task: " + task.getUID()+" "+quantity+" at "+new Date(startTime)+" to "+new Date(endTime));  if ((quantity != -1) && (startTime != -1)) { if (isInactive(task, startTime) == isInactive) { UIQuantityScheduleElement element; element = new UIQuantityScheduleElement(startTime, endTime, quantity); scheduleElements.addElement(element); }
if(TaskUtils.isProjection(task)) { Vector projectionScheduleExpansion = getScheduleFromProjectionTask(task,true,isInactive); scheduleElements.addAll(projectionScheduleExpansion); } else { long startTime = getPreferredTime(task, AspectType.START_TIME); long endTime = startTime + 1; double quantity = task.getPreferredValue(AspectType.QUANTITY); if (debug) System.out.println("Adding " + compareVerb + " requested due out task: " + task.getUID()+" "+quantity+" at "+new Date(startTime)+" to "+new Date(endTime));  if ((quantity != -1) && (startTime != -1)) { if (isInactive(task, startTime) == isInactive) { UIQuantityScheduleElement element; element = new UIQuantityScheduleElement(startTime, endTime, quantity); scheduleElements.addElement(element); } }
  private Vector computeRequestedDueOutVectorWVerb(String compareVerb, boolean isInactive) {    RoleSchedule roleSchedule = asset.getRoleSchedule();    Vector scheduleElements = new Vector();    if (roleSchedule == null) {      System.out.println("UIInventoryImpl WARNING: no role schedule in asset");      return null;    }    Enumeration e = roleSchedule.getRoleScheduleElements();    if (e == null) {      System.out.println("UIInventoryImpl WARNING: no role schedule in role schedule");      return null;    }    while (e.hasMoreElements()) {      Allocation allocation = (Allocation) e.nextElement();      Task task = allocation.getTask();      if (task == null) {         System.out.println("UIInventoryImpl WARNING: no allocation task in allocation");        continue;      }      //// If not the right kind of task, then don't compute and add to schedule      if (!(task.getVerb().equals(compareVerb))) { 	  //System.out.println("UIInventoryImpl::computeRequestedDueOutScheduleWVerb Unexpected verb: " + task.getVerb());	  continue;      }            long startTime = getPreferredTime(task, AspectType.START_TIME);      long endTime = startTime + 1;      double quantity = task.getPreferredValue(AspectType.QUANTITY);      if (debug) System.out.println("Adding " + compareVerb + " requested due out task: " + task.getUID()+" "+quantity+" at "+new Date(startTime)+" to "+new Date(endTime));      // must have start time and quantity, but use specified start/end time      if ((quantity != -1) && (startTime != -1)) {         if (isInactive(task, startTime) == isInactive) {          UIQuantityScheduleElement element;          element = new UIQuantityScheduleElement(startTime, endTime, quantity);          scheduleElements.addElement(element);        }      }    }    return scheduleToNonOverlapVector(scheduleElements);  }