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 3NucleotideCompound
s, its correspondingAminoAcidCompound
and 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 boolean
equals(Object obj)
boolean
equalsIgnoreCase(Compound compound)
AminoAcidCompound
getAminoAcid()
String
getDescription()
String
getLongName()
Float
getMolecularWeight()
NucleotideCompound
getOne()
String
getShortName()
NucleotideCompound
getThree()
Table.CaseInsensitiveTriplet
getTriplet()
NucleotideCompound
getTwo()
int
hashCode()
boolean
isStart()
boolean
isStop()
void
setDescription(String description)
void
setLongName(String longName)
void
setMolecularWeight(Float molecularWeight)
void
setShortName(String shortName)
String
toString()
-
-
-
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:
equalsIgnoreCase
in interfaceCompound
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceCompound
-
getLongName
public String getLongName()
- Specified by:
getLongName
in interfaceCompound
-
getMolecularWeight
public Float getMolecularWeight()
- Specified by:
getMolecularWeight
in interfaceCompound
-
getShortName
public String getShortName()
- Specified by:
getShortName
in interfaceCompound
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceCompound
-
setLongName
public void setLongName(String longName)
- Specified by:
setLongName
in interfaceCompound
-
setMolecularWeight
public void setMolecularWeight(Float molecularWeight)
- Specified by:
setMolecularWeight
in interfaceCompound
-
setShortName
public void setShortName(String shortName)
- Specified by:
setShortName
in interfaceCompound
-
-