Class Table.Codon
- java.lang.Object
-
- org.biojava.nbio.core.sequence.transcription.Table.Codon
-
- All Implemented Interfaces:
Compound
- Enclosing interface:
- Table
public static class Table.Codon extends java.lang.Object implements Compound
Instance of a Codon which is 3NucleotideCompounds, its correspondingAminoAcidCompoundand if it is a start or stop codon. The object implements hashCode & equals but according to the nucleotide compounds & not to the designation of it being a start, stop & amino acid compound- Author:
- ayates
-
-
Constructor Summary
Constructors Constructor Description Codon(Table.CaseInsensitiveTriplet triplet)Codon(Table.CaseInsensitiveTriplet triplet, AminoAcidCompound aminoAcid, boolean start, boolean stop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleanequalsIgnoreCase(Compound compound)AminoAcidCompoundgetAminoAcid()java.lang.StringgetDescription()java.lang.StringgetLongName()java.lang.FloatgetMolecularWeight()NucleotideCompoundgetOne()java.lang.StringgetShortName()NucleotideCompoundgetThree()Table.CaseInsensitiveTripletgetTriplet()NucleotideCompoundgetTwo()inthashCode()booleanisStart()booleanisStop()voidsetDescription(java.lang.String description)voidsetLongName(java.lang.String longName)voidsetMolecularWeight(java.lang.Float molecularWeight)voidsetShortName(java.lang.String shortName)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Codon
public Codon(Table.CaseInsensitiveTriplet triplet, AminoAcidCompound aminoAcid, boolean start, boolean stop)
-
Codon
public Codon(Table.CaseInsensitiveTriplet triplet)
-
-
Method Detail
-
getOne
public NucleotideCompound getOne()
-
getTwo
public NucleotideCompound getTwo()
-
getThree
public NucleotideCompound getThree()
-
isStart
public boolean isStart()
-
isStop
public boolean isStop()
-
getAminoAcid
public AminoAcidCompound getAminoAcid()
-
getTriplet
public Table.CaseInsensitiveTriplet getTriplet()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equalsIgnoreCase
public boolean equalsIgnoreCase(Compound compound)
- Specified by:
equalsIgnoreCasein interfaceCompound
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceCompound
-
getLongName
public java.lang.String getLongName()
- Specified by:
getLongNamein interfaceCompound
-
getMolecularWeight
public java.lang.Float getMolecularWeight()
- Specified by:
getMolecularWeightin interfaceCompound
-
getShortName
public java.lang.String getShortName()
- Specified by:
getShortNamein interfaceCompound
-
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescriptionin interfaceCompound
-
setLongName
public void setLongName(java.lang.String longName)
- Specified by:
setLongNamein interfaceCompound
-
setMolecularWeight
public void setMolecularWeight(java.lang.Float molecularWeight)
- Specified by:
setMolecularWeightin interfaceCompound
-
setShortName
public void setShortName(java.lang.String shortName)
- Specified by:
setShortNamein interfaceCompound
-
-