System.out.println("Sorted Traces: ");
SpaceTimeBackend.println("Sorted Traces: ");
    private void scheduleWork() {        // sort traces...        Trace[] tempArray = (Trace[]) spaceTime.partitioner.getTraceGraph().clone();        Arrays.sort(tempArray, new CompareTraceBNWork(spaceTime.partitioner));        LinkedList sortedTraces = new LinkedList(Arrays.asList(tempArray));        // schedule predefined filters first, but don't put them in the        // schedule just assign them tiles...        removePredefined(sortedTraces);        // reverse the list        Collections.reverse(sortedTraces);        System.out.println("Sorted Traces: ");        Iterator it = sortedTraces.iterator();        while (it.hasNext()) {            Trace trace = (Trace) it.next();            System.out.println(" * " + trace + " (work: "                               + spaceTime.partitioner.getTraceBNWork(trace) + ")");        }        // start to schedule the traces        while (!sortedTraces.isEmpty()) {            //remove the first trace, the trace with the most work            Trace trace = (Trace)sortedTraces.removeFirst();                      scheduleTrace(trace, sortedTraces);        }    }