org.gridbus.broker.scheduler
Class TimeComparator

java.lang.Object
  extended by org.gridbus.broker.scheduler.TimeComparator
All Implemented Interfaces:
java.util.Comparator

public class TimeComparator
extends java.lang.Object
implements java.util.Comparator

This is a class to compare two data compute pairs on the basis of time taken

Author:
Srikumar Venugopal (srikumar@cs.mu.oz.au)

Constructor Summary
TimeComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two DataCompute pairs with respect to their total time estimate.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

TimeComparator

public TimeComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares two DataCompute pairs with respect to their total time estimate.

Specified by:
compare in interface java.util.Comparator
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)