Enum BasePair

java.lang.Object
  extended by java.lang.Enum<BasePair>
      extended by BasePair
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BasePair>

public enum BasePair
extends java.lang.Enum<BasePair>

Enumeration of the possible base pairs - two nucleotides on opposite complementary RNA strands that are connected via hydrogen bonds.

The six basepairs are:

 5' g c g u a u  3'
    | | | | | |
 3' c g u g u a  5'
 
The base pair GC:
 5' g  3'
    |  
 3' c  5'
 
So the first nucleotide is the top one and the second the bottom one.

See also http://2008.igem.org/Team:TUDelft/Temperature_software

Author:
Bastiaan van den Berg
See Also:
Nucleotide

Enum Constant Summary
AU
           
CG
           
GC
           
GU
           
UA
           
UG
           
 
Method Summary
 Nucleotide getBottom()
          Returns the nucleotide at the bottom of the base pair.
 Nucleotide getTop()
          Returns the nucleotide at the top of the base pair.
static BasePair valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BasePair[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GC

public static final BasePair GC

CG

public static final BasePair CG

GU

public static final BasePair GU

UG

public static final BasePair UG

AU

public static final BasePair AU

UA

public static final BasePair UA
Method Detail

values

public static BasePair[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BasePair c : BasePair.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BasePair valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getTop

public Nucleotide getTop()
Returns the nucleotide at the top of the base pair.

Returns:
The top nucleotide.

getBottom

public Nucleotide getBottom()
Returns the nucleotide at the bottom of the base pair.

Returns:
The bottom nucleotide.