baobab.bio.permutation
Class ReversalBlockComparator

java.lang.Object
  extended by baobab.bio.permutation.ReversalBlockComparator
All Implemented Interfaces:
java.util.Comparator

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

The BlockComparator class represents a comparator of two elementary blocks of a signed permutation

Version:
1.0, May 2006
Author:
Marilia D. V. Braga

Constructor Summary
ReversalBlockComparator()
           
 
Method Summary
 int compare(java.lang.Object object1, java.lang.Object object2)
          Compares two blocks
 
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

ReversalBlockComparator

public ReversalBlockComparator()
Method Detail

compare

public int compare(java.lang.Object object1,
                   java.lang.Object object2)
Compares two blocks

Specified by:
compare in interface java.util.Comparator
Parameters:
object1 - the first block
object2 - the second block
Returns:
the result of the comparison, as an int