baobab.bio.permutation
Class SignedBPGraphReversalBlock
java.lang.Object
baobab.bio.permutation.BPGraphReversalBlock
baobab.bio.permutation.SignedBPGraphReversalBlock
- All Implemented Interfaces:
- java.lang.Comparable
public class SignedBPGraphReversalBlock
- extends BPGraphReversalBlock
The SignedBPGraphReversalBlock class represents an elementary block of a signed permutation,
given by its start and end points, which can be used as the breakpoints of a signed reversal
- Author:
- Marilia D. V. Braga
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SPLIT_CYCLE
public static final int SPLIT_CYCLE
- See Also:
- Constant Field Values
KEEP_CYCLE
public static final int KEEP_CYCLE
- See Also:
- Constant Field Values
JOIN_CYCLES
public static final int JOIN_CYCLES
- See Also:
- Constant Field Values
SignedBPGraphReversalBlock
public SignedBPGraphReversalBlock(SignedPermutationBPGraph permutation,
BPGraphPoint start,
BPGraphPoint end)
throws PermutationException
- Creates a new block
- Parameters:
permutation
- the permutation to which this block belongsstart
- the start Point of this block in the permutationend
- the end Point of this block in the permutation
- Throws:
PermutationException
SignedBPGraphReversalBlock
public SignedBPGraphReversalBlock(SignedPermutationBPGraph permutation,
int start,
int end)
- Creates a new block
- Parameters:
permutation
- the permutation to which this block belongsstart
- the start position of this block in the permutationend
- the end position of this block in the permutation
getReversalType
public int getReversalType()
- Gets the type of the reversal represented by this block
- Returns:
- SPLIT_CYCLE, KEEP_CYCLE or JOIN_CYCLES as an int
toString
public java.lang.String toString()
- Overrides:
toString
in class BPGraphReversalBlock
getPermutationBPGraph
public PermutationBPGraph getPermutationBPGraph()
- Gets the permutation breakpoint graph to which this element belongs
- Returns:
- the breakpoint graph to which this element belongs