Package org.biojava.nbio.structure
Class AminoAcidImpl
- java.lang.Object
-
- org.biojava.nbio.structure.HetatomImpl
-
- org.biojava.nbio.structure.AminoAcidImpl
-
- All Implemented Interfaces:
Serializable
,AminoAcid
,Group
public class AminoAcidImpl extends HetatomImpl implements AminoAcid
AminoAcid inherits most from Hetatom. Adds a few AminoAcid specific methods.- Since:
- 1.4
- Version:
- %I% %G%
- Author:
- Andreas Prlic, Jules Jacobsen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.biojava.nbio.structure.HetatomImpl
HetatomImpl.PerformanceBehavior
-
-
Field Summary
Fields Modifier and Type Field Description static GroupType
type
this is an Amino acid. type is "amino".-
Fields inherited from class org.biojava.nbio.structure.HetatomImpl
atoms, chemComp, pdb_flag, pdb_name, residueNumber
-
Fields inherited from interface org.biojava.nbio.structure.AminoAcid
ATOMRECORD, SEQRESRECORD
-
-
Constructor Summary
Constructors Constructor Description AminoAcidImpl()
inherits most from Hetero and has just a few extensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
returns and identical copy of this Group object .Character
getAminoType()
Returns the name of the AA, in single letter code.Atom
getC()
Get C atom.Atom
getCA()
Get CA atom.Atom
getCB()
Get CB atom.Atom
getN()
Get N atom.Atom
getO()
Get O atom.String
getRecordType()
Allows to distinguish between amino acids that are provided as ATOM records and a SEQRES records.GroupType
getType()
void
setAminoType(Character aa)
Set the name of the AA, in single letter code .void
setPDBName(String s)
set three character name of AminoAcid.void
setRecordType(String recordName)
Allows to distinguish between amino acids that are provided as ATOM records and a SEQRES records.String
toString()
string representation.-
Methods inherited from class org.biojava.nbio.structure.HetatomImpl
addAltLoc, addAtom, clearAtoms, cloneAtomsAndBonds, getAltLocGroup, getAltLocs, getAtom, getAtom, getAtoms, getChain, getChainId, getChemComp, getId, getPDBName, getProperties, getProperty, getResidueNumber, has3D, hasAltLoc, hasAminoAtoms, hasAtom, isAminoAcid, isHetAtomInFile, isNucleotide, isPolymeric, isWater, iterator, setAtoms, setChain, setChemComp, setHetAtomInFile, setId, setPDBFlag, setProperties, setProperty, setResidueNumber, setResidueNumber, size, toSDF, trimToSize
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.biojava.nbio.structure.Group
addAltLoc, addAtom, clearAtoms, getAltLocGroup, getAltLocs, getAtom, getAtom, getAtoms, getChain, getChainId, getChemComp, getPDBName, getProperties, getProperty, getResidueNumber, has3D, hasAltLoc, hasAminoAtoms, hasAtom, isAminoAcid, isHetAtomInFile, isNucleotide, isPolymeric, isWater, iterator, setAtoms, setChain, setChemComp, setHetAtomInFile, setPDBFlag, setProperties, setProperty, setResidueNumber, setResidueNumber, size, toSDF, trimToSize
-
-
-
-
Constructor Detail
-
AminoAcidImpl
public AminoAcidImpl()
inherits most from Hetero and has just a few extensions.
-
-
Method Detail
-
getType
public GroupType getType()
Description copied from class:HetatomImpl
- Specified by:
getType
in interfaceGroup
- Overrides:
getType
in classHetatomImpl
- Returns:
- a String representing the type value
-
getAminoType
public Character getAminoType()
Returns the name of the AA, in single letter code.- Specified by:
getAminoType
in interfaceAminoAcid
- Returns:
- a Character object representing the amino type value
- See Also:
AminoAcid.setAminoType(java.lang.Character)
-
setAminoType
public void setAminoType(Character aa)
Set the name of the AA, in single letter code .- Specified by:
setAminoType
in interfaceAminoAcid
- Parameters:
aa
- a Character object specifying the amino type value- See Also:
AminoAcid.getAminoType()
-
setRecordType
public void setRecordType(String recordName)
Allows to distinguish between amino acids that are provided as ATOM records and a SEQRES records.- Specified by:
setRecordType
in interfaceAminoAcid
- Parameters:
recordName
- either ATOMRECORD or SEQRESRECORD- See Also:
AminoAcid.getRecordType()
-
getRecordType
public String getRecordType()
Allows to distinguish between amino acids that are provided as ATOM records and a SEQRES records.- Specified by:
getRecordType
in interfaceAminoAcid
- Returns:
- the origin of this amino acid (ATOM or SEQRES records)
- See Also:
AminoAcid.setRecordType(String)
-
toString
public String toString()
string representation.- Overrides:
toString
in classHetatomImpl
-
setPDBName
public void setPDBName(String s)
set three character name of AminoAcid.- Specified by:
setPDBName
in interfaceGroup
- Overrides:
setPDBName
in classHetatomImpl
- Parameters:
s
- a String specifying the PDBName value- See Also:
HetatomImpl.getPDBName()
-
-