baobab.bio.permutation
Class PerfectReversalConstraint
java.lang.Object
baobab.bio.permutation.PerfectReversalConstraint
public class PerfectReversalConstraint
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_SCORE_NON_PERFECT_REVERSAL
public static final int MAX_SCORE_NON_PERFECT_REVERSAL
- See Also:
- Constant Field Values
PerfectReversalConstraint
public PerfectReversalConstraint(SignedPermutationBPGraph permutation,
boolean progressiveDetection,
int maxNonPerfectReversalScore)
update
public void update(SignedPermutationBPGraph permutation)
refreshIntervals
public void refreshIntervals()
getIntervals
public java.util.TreeSet<BitList> getIntervals()
getMaxNonPerfectReversalScore
public int getMaxNonPerfectReversalScore()
canBeRelaxed
public boolean canBeRelaxed()
isPositionRelated
public boolean isPositionRelated()
testReversal
public boolean testReversal(int start,
int end)
scoreReversal
public int scoreReversal(int permutationSize,
int[] element)
updateIntervals
public void updateIntervals(int permutationSize,
int[] element)
getNextReversals
public java.util.Vector<int[]> getNextReversals()
getDescription
public java.lang.String getDescription()
getScoreDescription
public java.lang.String getScoreDescription()