|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uconn.mcb.lineageevolver.ByteAminoAcid
Amino Acid implementation using byte datatype.
| Field Summary | |
private byte |
_byteType
The type of this amino acid. |
private float |
_fltSubstitutionProbability
The probability that this amino acid will undergo substitution. |
| Constructor Summary | |
ByteAminoAcid()
Default constructor for objects of type ByteAminoAcid. |
|
ByteAminoAcid(byte byteType,
float fltSubstitutionProbability)
Constructor for objects of type ByteAminoAcid given a type (encoded as a byte) and a substitution probability. |
|
ByteAminoAcid(char charType,
float fltSubstitutionProbability)
Constructor for objects of type ByteAminoAcid given a type (encoded as a char) and a substitution probability. |
|
| Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
float |
getSubstitutionProbability()
Returns the substitution probability for this amino acid. |
char |
getType()
Returns the type of this amino acid. |
static void |
main(java.lang.String[] args)
Simple driver for ByteAminoAcid testing/debugging. |
void |
setSubstitutionProbability(float fltNewSubstitutionProbability)
Sets the substitution probability of this amino acid. |
void |
setType(byte byteNewType)
Sets the type of this amino acid given a new type encoded as a byte.. |
void |
setType(char charNewType)
Sets the type of this amino acid given a new type encoded as a character. |
void |
substitute(SubstitutionMatrix sm)
Induces substitution in this substitutable object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private byte _byteType
private float _fltSubstitutionProbability
| Constructor Detail |
public ByteAminoAcid()
public ByteAminoAcid(char charType,
float fltSubstitutionProbability)
AATranslator class.
charType - the desired type for the new AminoAcid, encoded as a character..fltSubstitutionProbability - the desired substitution probability for the new AminoAcid.AATranslator.getByte(char)
public ByteAminoAcid(byte byteType,
float fltSubstitutionProbability)
byteType - the desired type for the new AminoAcid, encoded as a byte..fltSubstitutionProbability - the desired substitution probability for the new AminoAcid.| Method Detail |
public float getSubstitutionProbability()
AminoAcid
getSubstitutionProbability in interface AminoAcidAminoAcid.getSubstitutionProbability()public void setSubstitutionProbability(float fltNewSubstitutionProbability)
AminoAcid
setSubstitutionProbability in interface AminoAcidfltNewSubstitutionProbability - the new substitution probability of this amino acidAminoAcid.setSubstitutionProbability(float)public void substitute(SubstitutionMatrix sm)
Substitutable
substitute in interface Substitutablesm - the substitution matrix to use when processing substitution.Substitutable.substitute(SubstitutionMatrix)public char getType()
getType in interface AminoAcidpublic void setType(char charNewType)
AATranslator.
setType in interface AminoAcidcharNewType - The type to set this amino acid to.AATranslator.getByte(char)public void setType(byte byteNewType)
AATranslator.
byteNewType - AATranslator.sanityCheck(byte)public java.lang.Object clone()
clone in interface AminoAcidObject.clone()public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public java.lang.String toString()
Object.toString()public static void main(java.lang.String[] args)
args - Arguments are not used in this driver.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||