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 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(Object obj)booleanequalsIgnoreCase(Compound compound)AminoAcidCompoundgetAminoAcid()StringgetDescription()StringgetLongName()FloatgetMolecularWeight()NucleotideCompoundgetOne()StringgetShortName()NucleotideCompoundgetThree()Table.CaseInsensitiveTripletgetTriplet()NucleotideCompoundgetTwo()inthashCode()booleanisStart()booleanisStop()voidsetDescription(String description)voidsetLongName(String longName)voidsetMolecularWeight(Float molecularWeight)voidsetShortName(String shortName)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()
-
equalsIgnoreCase
public boolean equalsIgnoreCase(Compound compound)
- Specified by:
equalsIgnoreCasein interfaceCompound
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceCompound
-
getLongName
public String getLongName()
- Specified by:
getLongNamein interfaceCompound
-
getMolecularWeight
public Float getMolecularWeight()
- Specified by:
getMolecularWeightin interfaceCompound
-
getShortName
public String getShortName()
- Specified by:
getShortNamein interfaceCompound
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceCompound
-
setLongName
public void setLongName(String longName)
- Specified by:
setLongNamein interfaceCompound
-
setMolecularWeight
public void setMolecularWeight(Float molecularWeight)
- Specified by:
setMolecularWeightin interfaceCompound
-
setShortName
public void setShortName(String shortName)
- Specified by:
setShortNamein interfaceCompound
-
-