public class AtomImpl extends Object implements Atom, Serializable, PDBRecord
| Modifier and Type | Field and Description | 
|---|---|
static int | 
BONDS_INITIAL_CAPACITY
The inital capacity of the bonds list. 
 | 
| Constructor and Description | 
|---|
AtomImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addBond(Bond bond)
Add a bond 
 | 
Object | 
clone()
returns and identical copy of this  object . 
 | 
Character | 
getAltLoc()
Get alternate Location. 
 | 
List<Bond> | 
getBonds()
Get all  
Bonds this atom is part of. | 
short | 
getCharge()
Get the charge of this atom 
 | 
double[] | 
getCoords()
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 inputCharge)
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 occu)
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. 
 | 
String | 
toPDB()
Returns a PDB file like representation of this record. 
 | 
void | 
toPDB(StringBuffer buf)
Appends a PDB file like representation of this record to the provided StringBuffer. 
 | 
String | 
toString()  | 
public static final int BONDS_INITIAL_CAPACITY
public AtomImpl()
public void setName(String s)
setName in interface Atoms - a trimmed String specifying the name valueAtom.getName()public String getName()
Atom.getElement()getName in interface AtomAtom.setName(java.lang.String)public void setPDBserial(int i)
setPDBserial in interface Atomi - an int specifying the PDBserial valueAtom.getPDBserial()public int getPDBserial()
getPDBserial in interface AtomAtom.setPDBserial(int)public void setCoords(double[] c)
setCoords in interface Atomc - an array of doubles specifying the coords valueAtom.getCoords()public double[] getCoords()
getCoords in interface AtomAtom.setCoords(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 AtomAtom.setX(double)public double getY()
getY in interface AtomAtom.setY(double)public double getZ()
getZ in interface AtomAtom.setZ(double)public void setAltLoc(Character c)
setAltLoc in interface Atomc - a Character object specifying the alt loc valuegetAltLoc()public Character getAltLoc()
getAltLoc in interface AtomsetAltLoc(java.lang.Character)public void setOccupancy(float occu)
AtomsetOccupancy in interface Atomoccu - a float specifying the occupancy valueAtom.getOccupancy()public float getOccupancy()
AtomgetOccupancy in interface AtomAtom.setOccupancy(float)public void setTempFactor(float temp)
AtomsetTempFactor in interface Atomtemp - a float specifying the temp factor valueAtom.getTempFactor()public float getTempFactor()
AtomgetTempFactor in interface AtomAtom.setTempFactor(float)public void setGroup(Group parent)
setGroup in interface Atomparent - the parent GroupAtom.getGroup()public Group getGroup()
getGroup in interface AtomAtom.setGroup(Group)public Element getElement()
Element.CagetElement in interface AtomAtom.setElement(org.biojava.nbio.structure.Element)public void setElement(Element e)
Element.FesetElement in interface Atome - an Element enumerationAtom.getElement()public String toPDB()
PDBRecordpublic void toPDB(StringBuffer buf)
PDBRecordpublic void addBond(Bond bond)
AtomaddBond in interface Atombond - to be addedAtom.getBonds()public short getCharge()
AtomCopyright © 2000–2017 BioJava. All rights reserved.