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 TypeMethodDescriptionvoid
Adds an atom to this amino acidgetAtoms()
getName()
int
void
void
void
setResSeqNr
(int i) void
validate()
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:
chainId
- - a field of the pdb filename
- - the name of the atomresSeqNr
- - a unique identifier for the amino acid
-
-
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
-
-