System.out.println (getName () + " for resource " + assign.getResource().getKey() + " got " + multi.length + " tasks assigned.");
System.out.println (getName () + " for resource " + resources[i].getKey() + " got " + multi.length + " task groups assigned.");
   protected void directlyHandleAssignments (Scheduler sched, SchedulingData data,											 TimeOps timeOps) {	 Date start = new Date ();	 // This shows how to extract the assignments after scheduling.	 // When sched.assignmentsMultitask() is true, the assignments	 // will actually be MultitaskAssignment objects instead.	 if (! sched.assignmentsMultitask()) {	   org.cougaar.lib.vishnu.server.Task[] tasks = data.getTasks();	   for (int i = 0; i < tasks.length; i++) {		 Assignment assign = tasks[i].getAssignment();		 parseAssignment (assign.getTask().getKey(), assign.getResource().getKey(),						  timeOps.timeToDate (assign.getTaskStartTime()),						  timeOps.timeToDate (assign.getTaskEndTime()),						 timeOps.timeToDate (assign.getStartTime()), // setup						 timeOps.timeToDate (assign.getEndTime()));   // wrapup      }    } else {      Resource[] resources = data.getResources();      for (int i = 0; i < resources.length; i++) {        MultitaskAssignment[] multi = resources[i].getMultitaskAssignments();		if (multi.length > 0) {		  Vector tasks = new Vector ();		  MultitaskAssignment assign = multi[0];		  if (myExtraOutput) 			System.out.println (getName () + " for resource " + assign.getResource().getKey() +								" got " + multi.length + " tasks assigned.");		  		  for (int j = 0; j < multi.length; j++) {			org.cougaar.lib.vishnu.server.Task [] multiTasks = multi[j].getTasks();						for (int k = 0; k < multiTasks.length; k++) {			  Task task = getTaskFromAssignment(multiTasks[k].getKey());			  if (task != null)				tasks.add (task);			}		  }		  handleMultiAssignment (tasks, 								 getAssignedAsset   (assign.getResource().getKey()),								 timeOps.timeToDate (assign.getTaskStartTime()),								 timeOps.timeToDate (assign.getTaskEndTime()),								 timeOps.timeToDate (assign.getStartTime()), // setup								 timeOps.timeToDate (assign.getEndTime()));   // wrapup		}	  }    } 	if (showTiming)	  domUtil.reportTime (".directlyHandleAssignments - parsed assignments in ", start);  }