at.dms.kjc.spacetime
Class CompareSliceBNWork
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompareSliceBNWork
public CompareSliceBNWork(Partitioner partitioner)
- Create a new object that uses the work estimates of partitioner.
- Parameters:
partitioner
-
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