baobab.bio.permutation
Class BPGraphReversalBlockComparator

java.lang.Object
  extended by baobab.bio.permutation.BPGraphReversalBlockComparator
All Implemented Interfaces:
java.util.Comparator<BPGraphReversalBlock>

public class BPGraphReversalBlockComparator
extends java.lang.Object
implements java.util.Comparator<BPGraphReversalBlock>

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

Author:
Marilia D. V. Braga

Constructor Summary
BPGraphReversalBlockComparator()
           
 
Method Summary
 int compare(BPGraphReversalBlock block1, BPGraphReversalBlock block2)
          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

BPGraphReversalBlockComparator

public BPGraphReversalBlockComparator()
Method Detail

compare

public int compare(BPGraphReversalBlock block1,
                   BPGraphReversalBlock block2)
Compares two blocks

Specified by:
compare in interface java.util.Comparator<BPGraphReversalBlock>
Parameters:
block1 - the first block
block2 - the second block
Returns:
the result of the comparison, as an int