java.lang.Object
de.grogra.ext.pdb.model.Atom
- Author:
- fdill, mdube This class models the pdb ATOM entry. atomName corresponds to the Atom name entry in the pdb file element is an identifier to which element the atom belongs to xCoord, yCoord, zCoord corresponds
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
numberOfAtoms
public static int numberOfAtomsa counter for statistics. Is incremented with every creation.
-
-
Constructor Details
-
Atom
Creates an atom- Parameters:
name- - the name of the atom taken from the PDB entryx- - the x coordinatey- - the y coordinatez- - the z coordinate
-
-
Method Details
-
getAtomName
- Returns:
- the name of the atom
-
getElement
The first character of the atom name indicates the element this atom belongs to- Returns:
- the basic element
-
getXCoord
public float getXCoord()- Returns:
- - the x coordinate
-
getYCoord
public float getYCoord()- Returns:
- - the y coordinate
-
getZCoord
public float getZCoord()- Returns:
- - the z coordinate
-
setAtomName
- Parameters:
string-
-
setXCoord
public void setXCoord(float float1) - Parameters:
float1-
-
setYCoord
public void setYCoord(float float1) - Parameters:
float1-
-
setZCoord
public void setZCoord(float float1) - Parameters:
float1-
-
toString
-