|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbaobab.bio.permutation.BPGraphReversalBlock
public class BPGraphReversalBlock
The BPGraphReversalBlock class represents an elementary block of a permutation given by its start and end points, which can be used as the breakpoints of a reversal
Constructor Summary | |
---|---|
BPGraphReversalBlock(PermutationBPGraph permutation,
BPGraphPoint start,
BPGraphPoint end)
Creates a new block |
|
BPGraphReversalBlock(PermutationBPGraph permutation,
int start,
int end)
Creates a new block |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object object)
Compares this block to another block |
BPGraphPoint |
getEndPoint()
Gets the end point of this block in the permutation |
int |
getEndPosition()
Gets the end position of this block in the permutation |
PermutationBPGraph |
getPermutationBPGraph()
Gets the permutation breakpoint graph to which this element belongs |
BPGraphPoint |
getStartPoint()
Gets the start point of this block in the permutation |
int |
getStartPosition()
Gets the start position of this block in the permutation |
boolean |
isAdjacency()
Tests whether this block is an adjacency |
int |
length()
Gets the length of the block (the number of values of the permutation between its start and end points) |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BPGraphReversalBlock(PermutationBPGraph permutation, BPGraphPoint start, 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 BPGraphReversalBlock(PermutationBPGraph permutation, int start, int end)
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 permutationMethod Detail |
---|
public int length()
public boolean isAdjacency()
public BPGraphPoint getStartPoint()
public BPGraphPoint getEndPoint()
public int getStartPosition()
public int getEndPosition()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
object
- the other block
public PermutationBPGraph getPermutationBPGraph()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |