org.gridbus.broker.farming.common.data
Class LinkCostComparator
java.lang.Object
org.gridbus.broker.farming.common.data.LinkCostComparator
- All Implemented Interfaces:
- java.util.Comparator
public class LinkCostComparator
- 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)
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two data-compute pair objects on the basis of their cost |
void |
setNetworkLinks(java.util.Hashtable networkLinks)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
LinkCostComparator
public LinkCostComparator()
setNetworkLinks
public void setNetworkLinks(java.util.Hashtable networkLinks)
- Parameters:
networkLinks
- The networkLinks to set.
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)