public class AtomImpl extends java.lang.Object implements Atom, java.io.Serializable, PDBRecord
| Constructor and Description |
|---|
AtomImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
returns and identical copy of this object .
|
java.lang.Character |
getAltLoc()
get alternate Location.
|
java.util.List<Bond> |
getBonds()
Gets all
Bonds this atom is part of. |
double[] |
getCoords()
get the coordinates as a double[3] array .
|
Element |
getElement()
get element of the atom, e.g.
|
java.lang.String |
getFullName()
get full name of atom e.g.
|
Group |
getGroup()
Returns the parent Group of the Atom.
|
long |
getId()
Get the Hibernate database ID.
|
java.lang.String |
getName()
Gets this object's name.
|
double |
getOccupancy()
get occupancy.
|
Group |
getParent()
Returns the parent Group of the Atom.
|
java.lang.String |
getPDBline()
Deprecated.
|
int |
getPDBserial()
get PDB atom number.
|
double |
getTempFactor()
get set temp factor.
|
double |
getX()
Get the X coordinate.
|
double |
getY()
Get the Y coordinate.
|
double |
getZ()
Get the Z coordinate.
|
void |
setAltLoc(java.lang.Character c)
set alternate Location.
|
void |
setCoords(double[] c)
the coordinates.
|
void |
setElement(Element e)
set element of the atom name, e.g.
|
void |
setFullName(java.lang.String s)
set full name of atom e.g.
|
void |
setGroup(Group parent)
Sets the back-reference to its parent Group.
|
void |
setId(long id)
Set the Hibernate database ID.
|
void |
setName(java.lang.String s)
trimmed version of atom name, e.g.
|
void |
setOccupancy(double occu)
set occupancy.
|
void |
setParent(Group parent)
Sets the back-reference to its parent Group.
|
void |
setPDBline(java.lang.String s)
Deprecated.
|
void |
setPDBserial(int i)
set PDB atom number.
|
void |
setTempFactor(double temp)
get set temp factor .
|
void |
setX(double x)
Set the X coordinate.
|
void |
setY(double y)
Set the Y coordinate.
|
void |
setZ(double z)
Set the Z coordinate.
|
java.lang.String |
toPDB()
Returns a PDB file like representation of this record.
|
void |
toPDB(java.lang.StringBuffer buf)
Appends a PDB file like representation of this record to the provided StringBuffer.
|
java.lang.String |
toString()
string representation.
|
public long getId()
setId(long)public void setId(long id)
id - the hibernate idgetId()public void setName(java.lang.String s)
public java.lang.String getName()
getName in interface AtomsetName(java.lang.String)public void setFullName(java.lang.String s)
setFullName in interface Atoms - a String specifying the full name valuegetFullName()public java.lang.String getFullName()
getFullName in interface AtomsetFullName(java.lang.String)public void setPDBserial(int i)
setPDBserial in interface Atomi - an int specifying the PDBserial valuegetPDBserial()public int getPDBserial()
getPDBserial in interface AtomsetPDBserial(int)public void setCoords(double[] c)
setCoords in interface Atomc - an array of doubles specifying the coords valuegetCoords()public double[] getCoords()
getCoords in interface AtomsetCoords(double[])public void setX(double x)
AtomsetX in interface Atomx - a doubleAtom.getX()public void setY(double y)
AtomsetY in interface Atomy - a doubleAtom.getY()public void setZ(double z)
AtomsetZ in interface Atomz - a doubleAtom.getZ()public double getX()
getX in interface AtomsetX(double)public double getY()
getY in interface AtomsetY(double)public double getZ()
getZ in interface AtomsetZ(double)public void setAltLoc(java.lang.Character c)
setAltLoc in interface Atomc - a Character object specifying the alt loc valuegetAltLoc()public java.lang.Character getAltLoc()
getAltLoc in interface AtomsetAltLoc(java.lang.Character)public void setPDBline(java.lang.String s)
setPDBline in interface Atoms - a String specifying the PDBline valuegetPDBline()public java.lang.String getPDBline()
getPDBline in interface AtomsetPDBline(java.lang.String)public java.lang.String toString()
toString in class java.lang.Objectpublic void setOccupancy(double occu)
AtomsetOccupancy in interface Atomoccu - a double specifying the occupancy valueAtom.getOccupancy()public double getOccupancy()
AtomgetOccupancy in interface AtomAtom.setOccupancy(double)public void setTempFactor(double temp)
AtomsetTempFactor in interface Atomtemp - a double specifying the temp factor valueAtom.getTempFactor()public double getTempFactor()
AtomgetTempFactor in interface AtomAtom.setTempFactor(double)public java.lang.Object clone()
public void setParent(Group parent)
AtomsetParent in interface Atomparent - the parent GroupAtom.getParent()public Group getParent()
AtomgetParent in interface AtomAtom.setParent(Group)public void setGroup(Group parent)
AtomsetGroup in interface Atomparent - the parent GroupAtom.getGroup()public Group getGroup()
AtomgetGroup in interface AtomAtom.setParent(Group)public Element getElement()
AtomgetElement in interface AtomAtom.setElement(org.biojava.bio.structure.Element)public void setElement(Element e)
AtomsetElement in interface Atome - an Element enumerationAtom.getElement()public java.lang.String toPDB()
PDBRecordpublic void toPDB(java.lang.StringBuffer buf)
PDBRecord