org.jscience.biology
Class RNA

java.lang.Object
  extended by org.jscience.biology.Chain
      extended by org.jscience.biology.RNA
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class RNA
extends Chain
implements java.io.Serializable, java.lang.Cloneable

A class representing RNA strain.

See Also:
Serialized Form

Constructor Summary
RNA(Base[] bases)
          Constructs a RNA representation.
 
Method Summary
 java.lang.Object clone()
          DOCUMENT ME!
 Base[] getBases()
          DOCUMENT ME!
 Chain getComplementary()
          Returns a complementary strain deduced from this one.
 Base getComplementary(Base base)
          DOCUMENT ME!
 int getLength()
          DOCUMENT ME!
 java.util.Set getValidBases()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.biology.Chain
equals
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RNA

public RNA(Base[] bases)
Constructs a RNA representation. The array of base should not contain Thymine.

Parameters:
bases - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getBases

public Base[] getBases()
DOCUMENT ME!

Specified by:
getBases in class Chain
Returns:
DOCUMENT ME!

getLength

public int getLength()
DOCUMENT ME!

Specified by:
getLength in class Chain
Returns:
DOCUMENT ME!

getComplementary

public Base getComplementary(Base base)
DOCUMENT ME!

Specified by:
getComplementary in class Chain
Parameters:
base - DOCUMENT ME!
Returns:
DOCUMENT ME!

getComplementary

public Chain getComplementary()
Returns a complementary strain deduced from this one.

Specified by:
getComplementary in class Chain
Returns:
DOCUMENT ME!

getValidBases

public java.util.Set getValidBases()
DOCUMENT ME!

Specified by:
getValidBases in class Chain
Returns:
DOCUMENT ME!

clone

public java.lang.Object clone()
DOCUMENT ME!

Specified by:
clone in class Chain
Returns:
DOCUMENT ME!