|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbaobab.bio.permutation.Cycle
baobab.bio.permutation.SignedCycle
public class SignedCycle
The SignedCycle class represents a cycle of points of a signed permutation
Method Summary | |
---|---|
static java.util.Vector<int[]> |
blocksToIntArrays(java.util.Collection blocks)
Transforms the collection of blocks to a collection of arrays of int (with length = 2) |
int |
compareTo(java.lang.Object object)
Compares this block to another block |
SignedComponent |
getComponent()
Gets the component to which this cycle belongs |
Point |
getEndPoint()
Gets the end point of this cycle in the permutation |
CyclePartition |
getPartition(int id)
Gets a partition of this cycle, given its id |
Permutation |
getPermutation()
Gets the permutation to which this element belongs |
Point |
getStartPoint()
Gets the start point of this cycle in the permutation |
boolean |
isAdjacency()
Tests whether this block is an adjacency |
boolean |
isOriented()
Tests whether this block is oriented |
int |
length()
Gets the length of the block (the number of values of the permutation between its start and end points) |
int[] |
toIntArray()
Gets a representation of the block as an array of int, with size 2, representing its start and end positions |
java.lang.String |
toString()
|
Methods inherited from class baobab.bio.permutation.Cycle |
---|
getBreakpoints, getNumber, getPoints, getPointsAsCycle, isActive, size |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public SignedComponent getComponent()
public Point getStartPoint()
getStartPoint
in class Cycle
public Point getEndPoint()
getEndPoint
in class Cycle
public boolean isOriented()
public CyclePartition getPartition(int id)
getPartition
in class Cycle
id
- the partition id
public java.lang.String toString()
toString
in class Cycle
public boolean isAdjacency()
public int length()
public int[] toIntArray()
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
object
- the other block
public static java.util.Vector<int[]> blocksToIntArrays(java.util.Collection blocks)
blocks
- a collection of blocks
public Permutation getPermutation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |