|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.concord.biologica.engine.Base
This class represents a Base object, as in the base purines and pyrimidines which form DNA and RNA.
This class contains mainly static methods.
Field Summary | |
static byte |
ADENINE
A purine which links with thymine in DNA and with uracil in RNA. |
static byte |
CYTOSINE
A purine which links with guanine in DNA and RNA. |
static byte |
GUANINE
A pyrimidine which links with cytosine in DNA and RNA. |
static int |
IN_DNA
Used in various methods to indicate a base or some nucleic acid is in DNA. |
static int |
IN_DNA_OR_RNA
Used in various methods to indicate a base or some nucleic acid is in DNA or RNA. |
static java.lang.String |
IN_DNA_STRING
|
static int |
IN_RNA
Used in various methods to indicate a base or some nucleic acid is in RNA. |
static java.lang.String |
IN_RNA_STRING
|
static byte |
THYMINE
A pyrimidine which links with adenine only in DNA, not RNA. |
static byte |
URACIL
A pyrimidine which links with adenine only in RNA, not DNA. |
Constructor Summary | |
Base()
|
Method Summary | |
static int |
getInDNAorRNAasInt(java.lang.String inDNAorRNA)
Convert an int inDNAorRNA value to a String. |
static java.lang.String |
getInDNAorRNAasString(int inDNAorRNA)
Convert an int inDNAorRNA value to a String. |
static byte |
getPairBase(byte aBase,
int inDNAorRNA)
Get pair base value in either DNA or RNA. |
static boolean |
isValidBase(byte aBase,
int inDNAorRNA)
Determines if a base value is valid. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte URACIL
public static final byte CYTOSINE
public static final byte ADENINE
public static final byte GUANINE
public static final byte THYMINE
public static final int IN_DNA
public static final java.lang.String IN_DNA_STRING
public static final int IN_RNA
public static final java.lang.String IN_RNA_STRING
public static final int IN_DNA_OR_RNA
Constructor Detail |
public Base()
Method Detail |
public static boolean isValidBase(byte aBase, int inDNAorRNA)
aBase
- byte - a base valueinDNAorRNA
- int - indicates if base in DNA or RNA is soughtpublic static byte getPairBase(byte aBase, int inDNAorRNA)
aBase
- byte - base value for which pair base is sought, must be a valid base valueinDNAorRNA
- int - indicates if pair base in DNA or RNA is soughtjava.lang.IllegalArgumentException
- - input arguments not validpublic static final java.lang.String getInDNAorRNAasString(int inDNAorRNA)
public static final int getInDNAorRNAasInt(java.lang.String inDNAorRNA)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |