java.lang.Object
de.grogra.ext.pdb.model.AminoAcid
- Author:
- fdill Respresenting amino acids. The amino acid holds its atoms.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an atom to this amino acidgetAtoms()getName()intvoidvoidvoidsetResSeqNr(int i) voidvalidate()Compares the actual vector of atoms with a reference vector from the HashMap which is initialized in the constructor.
-
Field Details
-
numberOfAcids
public static int numberOfAcids
-
-
Constructor Details
-
AminoAcid
By every creation a counter is incremented.- Parameters:
name- - the name of the atomresSeqNr- - a unique identifier for the amino acidchainId- - a field of the pdb file
-
-
Method Details
-
getAtoms
- Returns:
-
getName
- Returns:
-
setAtoms
- Parameters:
vector-
-
setName
- Parameters:
string-
-
addAtom
Adds an atom to this amino acid- Parameters:
atom-
-
validate
public void validate()Compares the actual vector of atoms with a reference vector from the HashMap which is initialized in the constructor. If they are not equal a text output is generated. -
getResSeqNr
public int getResSeqNr()- Returns:
-
setResSeqNr
public void setResSeqNr(int i) - Parameters:
i-
-