|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbaobab.bio.permutation.SignedComponent
public class SignedComponent
The SignedComponent class represents a component of signed cycles 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 |
java.util.SortedSet<Point> |
getBreakpoints()
Gets the breakpoint list of this block |
java.util.SortedSet<SignedComponent> |
getCoveredUnorientedComponents()
Gets all unoriented components directly covered by this component |
SignedComponent |
getCovererUnorientedComponent()
Gets the direct coverer unoriented component of this component |
java.util.SortedSet<Cycle> |
getCycles()
Gets the list of cycles of this group of cycles |
Point |
getEndPoint()
Gets the end point of this component in the permutation |
int |
getNumberOfCycles()
Gets the number of cycles of this group of cycles |
java.util.SortedSet |
getOrientedCycles()
Gets the list of oriented cycles of this group of cycles |
Permutation |
getPermutation()
Gets the permutation to which this element belongs |
java.util.SortedSet<Point> |
getPoints()
Gets all points which belong to this group of cycles |
Point |
getStartPoint()
Gets the start point of this component in the permutation |
java.util.SortedSet<Cycle> |
getUnorientedCycles()
Gets the list of non-oriented cycles of this group of cycles |
boolean |
isAdjacency()
Tests whether this component is an adjacency |
boolean |
isHurdle()
Tests whether this component is a hurdle |
boolean |
isMaxHurdle()
Tests whether this component is the maximum hurdle |
boolean |
isOriented()
Tests whether this cycle group is oriented |
boolean |
isSuperHurdle()
Tests whether this component is a super hurdle |
int |
length()
Gets the length of the block (the number of values of the permutation between its start and end points) |
void |
setSuperHurdle()
Sets this component as super hurdle |
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Point getStartPoint()
public Point getEndPoint()
public boolean isAdjacency()
public boolean isHurdle()
public boolean isSuperHurdle()
public void setSuperHurdle()
public SignedComponent getCovererUnorientedComponent()
public boolean isMaxHurdle()
public java.util.SortedSet<SignedComponent> getCoveredUnorientedComponents()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.SortedSet<Point> getBreakpoints()
public int getNumberOfCycles()
public java.util.SortedSet<Cycle> getCycles()
public java.util.SortedSet getOrientedCycles()
public boolean isOriented()
public java.util.SortedSet<Point> getPoints()
public java.util.SortedSet<Cycle> getUnorientedCycles()
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 |