Lightweight Bartering Grid

lbg.task
Class SupplyingTaskComparator

java.lang.Object
  extended by lbg.task.TaskComparator
      extended by lbg.task.SupplyingTaskComparator
All Implemented Interfaces:
java.util.Comparator<Task>

public class SupplyingTaskComparator
extends TaskComparator

Specialized Comparator targeting pairwise comparison of Supplying Tasks id.

Author:
Cyril Briquet

Constructor Summary
SupplyingTaskComparator()
           
 
Method Summary
 int compare(Task t1, Task t2)
           
static SupplyingTaskComparator getDefaultComparator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SupplyingTaskComparator

public SupplyingTaskComparator()
Method Detail

compare

public int compare(Task t1,
                   Task t2)
Specified by:
compare in interface java.util.Comparator<Task>
Specified by:
compare in class TaskComparator

getDefaultComparator

public static SupplyingTaskComparator getDefaultComparator()

Lightweight Bartering Grid

Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.