Package org.biojava.bio.structure
Class AtomImpl
- java.lang.Object
-
- org.biojava.bio.structure.AtomImpl
-
-
Constructor Summary
Constructors Constructor Description AtomImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()returns and identical copy of this object .java.lang.CharactergetAltLoc()get alternate Location.double[]getCoords()get the coordinates as a double[3] array .java.lang.StringgetFullName()get full name of atom e.g.longgetId()Get the Hibernate database ID.java.lang.StringgetName()Gets this object's name.doublegetOccupancy()get occupancy.GroupgetParent()Returns the parent Group of the Atom.java.lang.StringgetPDBline()get the whole line .intgetPDBserial()get PDB atom number.doublegetTempFactor()get set temp factor.doublegetX()Get the X coordinate.doublegetY()Get the Y coordinate.doublegetZ()Get the Z coordinate.voidsetAltLoc(java.lang.Character c)set alternate Location.voidsetCoords(double[] c)the coordinates.voidsetFullName(java.lang.String s)set full name of atom e.g.voidsetId(long id)Set the Hibernate database ID.voidsetName(java.lang.String s)trimmed version of atom name, e.g.voidsetOccupancy(double occu)set occupancy.voidsetParent(Group parent)Sets the back-reference to its parent Group.voidsetPDBline(java.lang.String s)store the whole line.voidsetPDBserial(int i)set PDB atom number.voidsetTempFactor(double temp)get set temp factor .voidsetX(double x)Set the X coordinate.voidsetY(double y)Set the Y coordinate.voidsetZ(double z)Set the Z coordinate.java.lang.StringtoString()string representation.
-
-
-
Method Detail
-
getId
public long getId()
Get the Hibernate database ID.- Returns:
- the id
- See Also:
setId(long)
-
setId
public void setId(long id)
Set the Hibernate database ID.- Parameters:
id- the hibernate id- See Also:
getId()
-
setName
public void setName(java.lang.String s)
trimmed version of atom name, e.g. "CA"
-
getName
public java.lang.String getName()
Gets this object's name.- Specified by:
getNamein interfaceAtom- Returns:
- a String representing the name value
- See Also:
setName(java.lang.String)
-
setFullName
public void setFullName(java.lang.String s)
set full name of atom e.g. " CA " .- Specified by:
setFullNamein interfaceAtom- Parameters:
s- a String specifying the full name value- See Also:
getFullName()
-
getFullName
public java.lang.String getFullName()
get full name of atom e.g. " CA ".- Specified by:
getFullNamein interfaceAtom- Returns:
- a String representing the full name value
- See Also:
setFullName(java.lang.String)
-
setPDBserial
public void setPDBserial(int i)
set PDB atom number.- Specified by:
setPDBserialin interfaceAtom- Parameters:
i- an int specifying the PDBserial value- See Also:
getPDBserial()
-
getPDBserial
public int getPDBserial()
get PDB atom number.- Specified by:
getPDBserialin interfaceAtom- Returns:
- an int representing the PDBserial value
- See Also:
setPDBserial(int)
-
setCoords
public void setCoords(double[] c)
the coordinates.- Specified by:
setCoordsin interfaceAtom- Parameters:
c- an array of doubles specifying the coords value- See Also:
getCoords()
-
getCoords
public double[] getCoords()
get the coordinates as a double[3] array .- Specified by:
getCoordsin interfaceAtom- Returns:
- an array of doubles representing the coords value
- See Also:
setCoords(double[])
-
setX
public void setX(double x)
Description copied from interface:AtomSet the X coordinate.- Specified by:
setXin interfaceAtom- Parameters:
x- a double- See Also:
Atom.getX()
-
setY
public void setY(double y)
Description copied from interface:AtomSet the Y coordinate.- Specified by:
setYin interfaceAtom- Parameters:
y- a double- See Also:
Atom.getY()
-
setZ
public void setZ(double z)
Description copied from interface:AtomSet the Z coordinate.- Specified by:
setZin interfaceAtom- Parameters:
z- a double- See Also:
Atom.getZ()
-
getX
public double getX()
Get the X coordinate.- Specified by:
getXin interfaceAtom- Returns:
- a double
- See Also:
setX(double)
-
getY
public double getY()
Get the Y coordinate.- Specified by:
getYin interfaceAtom- Returns:
- a double
- See Also:
setY(double)
-
getZ
public double getZ()
Get the Z coordinate.- Specified by:
getZin interfaceAtom- Returns:
- a double
- See Also:
setZ(double)
-
setAltLoc
public void setAltLoc(java.lang.Character c)
set alternate Location.- Specified by:
setAltLocin interfaceAtom- Parameters:
c- a Character object specifying the alt loc value- See Also:
getAltLoc()
-
getAltLoc
public java.lang.Character getAltLoc()
get alternate Location.- Specified by:
getAltLocin interfaceAtom- Returns:
- a Character object representing the alt loc value
- See Also:
setAltLoc(java.lang.Character)
-
setPDBline
public void setPDBline(java.lang.String s)
store the whole line.- Specified by:
setPDBlinein interfaceAtom- Parameters:
s- a String specifying the PDBline value- See Also:
getPDBline()
-
getPDBline
public java.lang.String getPDBline()
get the whole line .- Specified by:
getPDBlinein interfaceAtom- Returns:
- a String representing the PDBline value
- See Also:
setPDBline(java.lang.String)
-
toString
public java.lang.String toString()
string representation.- Overrides:
toStringin classjava.lang.Object
-
setOccupancy
public void setOccupancy(double occu)
Description copied from interface:Atomset occupancy.- Specified by:
setOccupancyin interfaceAtom- Parameters:
occu- a double specifying the occupancy value- See Also:
Atom.getOccupancy()
-
getOccupancy
public double getOccupancy()
Description copied from interface:Atomget occupancy.- Specified by:
getOccupancyin interfaceAtom- Returns:
- a double representing the occupancy value
- See Also:
Atom.setOccupancy(double)
-
setTempFactor
public void setTempFactor(double temp)
Description copied from interface:Atomget set temp factor .- Specified by:
setTempFactorin interfaceAtom- Parameters:
temp- a double specifying the temp factor value- See Also:
Atom.getTempFactor()
-
getTempFactor
public double getTempFactor()
Description copied from interface:Atomget set temp factor.- Specified by:
getTempFactorin interfaceAtom- Returns:
- a double representing the temp factor value
- See Also:
Atom.setTempFactor(double)
-
clone
public java.lang.Object clone()
returns and identical copy of this object .
-
setParent
public void setParent(Group parent)
Description copied from interface:AtomSets the back-reference to its parent Group.- Specified by:
setParentin interfaceAtom- Parameters:
parent- the parent Group- See Also:
Atom.getParent()
-
getParent
public Group getParent()
Description copied from interface:AtomReturns the parent Group of the Atom. returns null if the referenced object is not Group- Specified by:
getParentin interfaceAtom- Returns:
- Group the parent Group of the Atom, or null
- See Also:
Atom.setParent(Group)
-
-