org.gridbus.broker.farming.common.data
Class LinkBWComparator

java.lang.Object
  extended by org.gridbus.broker.farming.common.data.LinkBWComparator
All Implemented Interfaces:
java.util.Comparator

public class LinkBWComparator
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
LinkBWComparator()
           
 
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
 

Constructor Detail

LinkBWComparator

public LinkBWComparator()
Method Detail

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)