|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbaobab.bio.permutation.BPGraphReversalBlock
baobab.bio.permutation.BPGraphTranspositionBlock
public class BPGraphTranspositionBlock
The BPGraphTranspositionBlock class represents an elementary block of a permutation, given by its start, middle and end points, which can be used as the breakpoints of a transposition
Constructor Summary | |
---|---|
BPGraphTranspositionBlock(PermutationBPGraph permutation,
BPGraphPoint start,
BPGraphPoint middle,
BPGraphPoint end)
Creates a new block |
|
BPGraphTranspositionBlock(PermutationBPGraph permutation,
int start,
int middle,
int end)
Creates a new block |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object object)
Compares this block to another block |
BPGraphPoint |
getMiddlePoint()
Gets the middle point of this block |
int |
getMiddlePosition()
Gets the middle point of this block |
PermutationBPGraph |
getPermutationBPGraph()
Gets the permutation breakpoint graph to which this element belongs |
int[] |
toIntArray()
Gets a representation of the block as an array of int, with size 3, representing its start, middle and end positions |
Methods inherited from class baobab.bio.permutation.BPGraphReversalBlock |
---|
getEndPoint, getEndPosition, getStartPoint, getStartPosition, isAdjacency, length, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BPGraphTranspositionBlock(PermutationBPGraph permutation, BPGraphPoint start, BPGraphPoint middle, BPGraphPoint end) throws PermutationException
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
PermutationException
public BPGraphTranspositionBlock(PermutationBPGraph permutation, int start, int middle, int end)
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 permutationMethod Detail |
---|
public BPGraphPoint getMiddlePoint()
public int getMiddlePosition()
public int[] toIntArray()
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
compareTo
in class BPGraphReversalBlock
object
- the other block
public PermutationBPGraph getPermutationBPGraph()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |