Mobios v0.91

mobios.type
Enum DNA.DNASymbol

java.lang.Object
  extended by java.lang.Enum<DNA.DNASymbol>
      extended by mobios.type.DNA.DNASymbol
All Implemented Interfaces:
Externalizable, Serializable, Comparable<DNA.DNASymbol>, Symbol
Enclosing class:
DNA

public static enum DNA.DNASymbol
extends Enum<DNA.DNASymbol>
implements Symbol

Author:
Willard

Enum Constant Summary
A
           
B
           
C
           
D
           
G
           
H
           
K
           
M
           
N
           
R
           
S
           
T
           
V
           
W
           
Y
           
 
Field Summary
 byte byteValue
          Every symbol has a non-unique byteValue.
 
Method Summary
 byte byteValue()
           
 String description()
           
static int distinctSize()
           
 Symbol getSymbol(String s)
           
 void readExternal(ObjectInput in)
           
 String stringValue()
           
static DNA.DNASymbol valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DNA.DNASymbol[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 void writeExternal(ObjectOutput out)
           
 
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

A

public static final DNA.DNASymbol A

C

public static final DNA.DNASymbol C

G

public static final DNA.DNASymbol G

T

public static final DNA.DNASymbol T

R

public static final DNA.DNASymbol R

Y

public static final DNA.DNASymbol Y

M

public static final DNA.DNASymbol M

K

public static final DNA.DNASymbol K

W

public static final DNA.DNASymbol W

S

public static final DNA.DNASymbol S

B

public static final DNA.DNASymbol B

D

public static final DNA.DNASymbol D

H

public static final DNA.DNASymbol H

V

public static final DNA.DNASymbol V

N

public static final DNA.DNASymbol N
Field Detail

byteValue

public byte byteValue
Every symbol has a non-unique byteValue. Some symbols may have the same byteValue if there is no difference between them in the WeightMatrix.

Method Detail

values

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

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

valueOf

public static DNA.DNASymbol valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

description

public String description()
Returns:
the String description of the Symbol

byteValue

public byte byteValue()
Specified by:
byteValue in interface Symbol
Returns:

stringValue

public String stringValue()
Specified by:
stringValue in interface Symbol
Returns:

getSymbol

public Symbol getSymbol(String s)
Specified by:
getSymbol in interface Symbol
Returns:

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

distinctSize

public static int distinctSize()
Returns:
the number of Distinct byteValues for this set of Symbols.

Mobios v0.91

(C) 2002 - 2006 The MoBIoS Group