baobab.bio.permutation
Class CyclePartition

java.lang.Object
  extended by baobab.bio.permutation.CyclePartition

public class CyclePartition
extends java.lang.Object

The CyclePartition class represents a partition of a cycle of a permutation

Version:
1.0, May 2006
Author:
Marilia D. V. Braga

Method Summary
 Point firstPoint()
           
 Cycle getCycle()
          Gets the cycle of this partition
 int getId()
          Gets the id of this partition
 java.util.SortedSet<Point> getPoints()
          Gets the list of points of this cycle partition
 boolean isEmpty()
          Tests whether this cycle partition is empty
 Point lastPoint()
           
 int size()
          Gets the size (number of points) of this partition
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getPoints

public java.util.SortedSet<Point> getPoints()
Gets the list of points of this cycle partition

Returns:
a Collection with the list of points

firstPoint

public Point firstPoint()

lastPoint

public Point lastPoint()

size

public int size()
Gets the size (number of points) of this partition

Returns:
the number of points

isEmpty

public boolean isEmpty()
Tests whether this cycle partition is empty

Returns:
true / false

getCycle

public Cycle getCycle()
Gets the cycle of this partition

Returns:
the cycle

getId

public int getId()
Gets the id of this partition

Returns:
the id

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object