org.gridbus.broker.scheduler
Class CostComparator

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

public class CostComparator
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
CostComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two data-compute pair objects on the basis of their cost
 
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

CostComparator

public CostComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares two data-compute pair objects on the basis of their cost

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