at.dms.kjc.spacetime
Class CompareSliceBNWork

java.lang.Object
  extended by at.dms.kjc.spacetime.CompareSliceBNWork
All Implemented Interfaces:
Comparator<Slice>

public class CompareSliceBNWork
extends Object
implements Comparator<Slice>

A Comparator for the work estimation of slices that compares slices based on the amount of work in the bottleneck (the filter of the slice that performs the most work).

Author:
mgordon

Constructor Summary
CompareSliceBNWork(Partitioner partitioner)
          Create a new object that uses the work estimates of partitioner.
 
Method Summary
 int compare(Slice o1, Slice o2)
          Compare the bottleneck work of Slice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CompareSliceBNWork

public CompareSliceBNWork(Partitioner partitioner)
Create a new object that uses the work estimates of partitioner.

Parameters:
partitioner -
Method Detail

compare

public int compare(Slice o1,
                   Slice o2)
Compare the bottleneck work of Slice
o1
with Slice
o2
.

Specified by:
compare in interface Comparator<Slice>
Returns:
The comparison