public interface Atom extends Cloneable, PDBRecord
getCoords()
, or the
getX()
, getY()
, getZ()
methods.
There are a few additional methods here to provide some PDB specific information.Modifier and Type | Method and Description |
---|---|
void |
addBond(Bond bond)
Add a bond
|
Object |
clone()
Return an identical copy of this object .
|
Character |
getAltLoc()
Get alternate Location.
|
List<Bond> |
getBonds()
Get all
Bond s this atom is part of. |
short |
getCharge()
Get the charge of this atom
|
double[] |
getCoords()
Get the coordinates.
|
javax.vecmath.Point3d |
getCoordsAsPoint3d()
Get the coordinates.
|
Element |
getElement()
Get element of the atom, e.g.
|
Group |
getGroup()
Return the parent Group of the Atom.
|
String |
getName()
Get atom name, e.g.
|
float |
getOccupancy()
Get occupancy.
|
int |
getPDBserial()
Get PDB atom number.
|
float |
getTempFactor()
Get temp factor.
|
double |
getX()
Get coordinate X.
|
double |
getY()
Get coordinate Y.
|
double |
getZ()
Get coordinate Z.
|
boolean |
hasBond(Atom other)
Test if another atom has a bond to this atom
|
void |
setAltLoc(Character c)
Set alternate Location.
|
void |
setBonds(List<Bond> bonds)
Sets the bonds
|
void |
setCharge(short charge)
Set the charge of this atom
|
void |
setCoords(double[] c)
Set the coordinates.
|
void |
setElement(Element e)
Set element of the atom name, e.g.
|
void |
setGroup(Group parent)
Set the back-reference to its parent Group.
|
void |
setName(String s)
Set atom name, e.g.
|
void |
setOccupancy(float occupancy)
Set occupancy.
|
void |
setPDBserial(int i)
Set PDB atom number.
|
void |
setTempFactor(float temp)
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.
|
void setName(String s)
s
- a trimmed String specifying the name valuegetName()
String getName()
getElement()
setName(java.lang.String)
void setElement(Element e)
Element.Fe
e
- an Element enumerationgetElement()
Element getElement()
Element.Ca
setElement(org.biojava.nbio.structure.Element)
void setPDBserial(int i)
i
- an int specifying the PDBserial valuegetPDBserial()
int getPDBserial()
setPDBserial(int)
void setCoords(double[] c)
c
- an array of doubles specifying the coords valuegetCoords()
double[] getCoords()
setCoords(double[])
,
getCoordsAsPoint3d()
javax.vecmath.Point3d getCoordsAsPoint3d()
Internally the coordinates are represented as Point3d so this
is recommended over getCoords()
getCoords()
double getX()
setX(double)
double getY()
setY(double)
double getZ()
setZ(double)
void setAltLoc(Character c)
c
- a Character object specifying the alt loc valuegetAltLoc()
Character getAltLoc()
setAltLoc(java.lang.Character)
void setOccupancy(float occupancy)
occupancy
- a float specifying the occupancy valuegetOccupancy()
float getOccupancy()
setOccupancy(float)
void setTempFactor(float temp)
temp
- a float specifying the temp factor valuegetTempFactor()
float getTempFactor()
setTempFactor(float)
Object clone()
void setGroup(Group parent)
parent
- the parent GroupgetGroup()
Group getGroup()
setGroup(Group)
void addBond(Bond bond)
bond
- to be addedgetBonds()
List<Bond> getBonds()
Bond
s this atom is part of.Bond
s or null if no bonds exist for this Atomboolean hasBond(Atom other)
other
- short getCharge()
void setCharge(short charge)
Copyright © 2000–2018 BioJava. All rights reserved.