Package org.openscience.cdk.protein.data
Class PDBAtom
- java.lang.Object
-
- org.openscience.cdk.ChemObject
-
- org.openscience.cdk.Element
-
- org.openscience.cdk.Isotope
-
- org.openscience.cdk.AtomType
-
- org.openscience.cdk.Atom
-
- org.openscience.cdk.protein.data.PDBAtom
-
- All Implemented Interfaces:
Serializable
,Cloneable
,IAtom
,IAtomType
,ICDKObject
,IChemObject
,IElement
,IIsotope
,IPDBAtom
- Direct Known Subclasses:
DebugPDBAtom
public class PDBAtom extends Atom implements Cloneable, IPDBAtom
Represents the idea of an atom as used in PDB files. It contains extra fields normally associated with atoms in such files.- See Also:
Atom
, Serialized Form- Source code:
- main
- Belongs to CDK module:
- data
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openscience.cdk.interfaces.IAtomType
IAtomType.Hybridization
-
-
Field Summary
-
Fields inherited from class org.openscience.cdk.Atom
charge, fractionalPoint3d, hydrogenCount, point2d, point3d, stereoParity
-
Fields inherited from class org.openscience.cdk.AtomType
electronValency, formalCharge, formalNeighbourCount, hybridization
-
Fields inherited from class org.openscience.cdk.Isotope
exactMass, naturalAbundance
-
Fields inherited from class org.openscience.cdk.Element
atomicNumber
-
Fields inherited from interface org.openscience.cdk.interfaces.IElement
Ac, Ag, Al, Am, Ar, As, At, Au, B, Ba, Be, Bh, Bi, Bk, Br, C, Ca, Cd, Ce, Cf, Cl, Cm, Cn, Co, Cr, Cs, Cu, Db, Ds, Dy, Er, Es, Eu, F, Fe, Fl, Fm, Fr, Ga, Gd, Ge, H, He, Hf, Hg, Ho, Hs, I, In, Ir, K, Kr, La, Li, Lr, Lu, Lv, Mc, Md, Mg, Mn, Mo, Mt, N, Na, Nb, Nd, Ne, Nh, Ni, No, Np, O, Og, Os, P, Pa, Pb, Pd, Pm, Po, Pr, Pt, Pu, Ra, Rb, Re, Rf, Rg, Rh, Rn, Ru, S, Sb, Sc, Se, Sg, Si, Sm, Sn, Sr, Ta, Tb, Tc, Te, Th, Ti, Tl, Tm, Ts, U, V, W, Wildcard, Xe, Y, Yb, Zn, Zr
-
-
Constructor Summary
Constructors Constructor Description PDBAtom(String symbol)
Constructs anIPDBAtom
from a String containing an element symbol.PDBAtom(String symbol, javax.vecmath.Point3d coordinate)
Constructs anIPDBAtom
from an Element and a Point3d.PDBAtom(IElement element)
Constructs an IPDBAtom from a Element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAltLoc()
get the Alternate location indicator of this atom.String
getChainID()
get the Chain identifier of this atom.Boolean
getHetAtom()
Determine whether this is a heteroatom or not.String
getICode()
get Code for insertion of residues of this atom.String
getName()
get the Atom name of this atom.Double
getOccupancy()
get the Occupancy of this atom.Boolean
getOxt()
Returns true of this atom is a PDB OXT atom.String
getRecord()
get one entire line from the PDB entry file which describe the IPDBAtom.String
getResName()
get the Residue name of this atom.String
getResSeq()
get the Residue sequence number of this atom.String
getSegID()
get the Segment identifier, left-justified of this atom.Integer
getSerial()
get the Atom serial number of this atom.Double
getTempFactor()
get the Temperature factor of this atom.void
setAltLoc(String newAltLoc)
set the Alternate location indicator of this atom.void
setChainID(String newChainID)
set the Chain identifier of this atom.void
setHetAtom(Boolean newHetAtom)
Mark the atom as a heteroatom.void
setICode(String newICode)
set the Code for insertion of residues of this atom.void
setName(String newName)
set the Atom name of this atom.void
setOccupancy(Double newOccupancy)
set the Occupancy of this atom.void
setOxt(Boolean newOxt)
Change the state of this atom in being the PDB OXT atom.void
setRecord(String newRecord)
set one entire line from the PDB entry file which describe the IPDBAtom.void
setResName(String newResName)
set the Residue name of this atom.void
setResSeq(String newResSeq)
set the Residue sequence number of this atom.void
setSegID(String newSegID)
set the Segment identifier, left-justified of this atom.void
setSerial(Integer newSerial)
set the Atom serial number of this atom.void
setTempFactor(Double newTempFactor)
set the Temperature factor of this atom.String
toString()
Returns a one line string representation of this Atom.-
Methods inherited from class org.openscience.cdk.Atom
bonds, clone, compare, equals, getBond, getBondCount, getCharge, getContainer, getFractionalPoint3d, getImplicitHydrogenCount, getIndex, getMapIdx, getPoint2d, getPoint3d, getStereoParity, hashCode, isAromatic, isInRing, setCharge, setFractionalPoint3d, setImplicitHydrogenCount, setIsAromatic, setIsInRing, setMapIdx, setPoint2d, setPoint3d, setStereoParity
-
Methods inherited from class org.openscience.cdk.AtomType
getAtomTypeName, getBondOrderSum, getCovalentRadius, getFormalCharge, getFormalNeighbourCount, getHybridization, getMaxBondOrder, getValency, setAtomTypeName, setBondOrderSum, setCovalentRadius, setFormalCharge, setFormalNeighbourCount, setHybridization, setMaxBondOrder, setValency
-
Methods inherited from class org.openscience.cdk.Isotope
getExactMass, getMassNumber, getNaturalAbundance, setExactMass, setMassNumber, setNaturalAbundance
-
Methods inherited from class org.openscience.cdk.Element
getAtomicNumber, getSymbol, setAtomicNumber, setSymbol
-
Methods inherited from class org.openscience.cdk.ChemObject
addListener, addProperties, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openscience.cdk.interfaces.IAtom
bonds, clone, getBond, getBondCount, getCharge, getContainer, getFractionalPoint3d, getImplicitHydrogenCount, getIndex, getMapIdx, getPoint2d, getPoint3d, getStereoParity, isAromatic, isInRing, setCharge, setFractionalPoint3d, setImplicitHydrogenCount, setIsAromatic, setIsInRing, setMapIdx, setPoint2d, setPoint3d, setStereoParity
-
Methods inherited from interface org.openscience.cdk.interfaces.IAtomType
getAtomTypeName, getBondOrderSum, getCovalentRadius, getFormalCharge, getFormalNeighbourCount, getHybridization, getMaxBondOrder, getValency, setAtomTypeName, setBondOrderSum, setCovalentRadius, setFormalCharge, setFormalNeighbourCount, setHybridization, setMaxBondOrder, setValency
-
Methods inherited from interface org.openscience.cdk.interfaces.ICDKObject
getBuilder
-
Methods inherited from interface org.openscience.cdk.interfaces.IChemObject
addListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty
-
Methods inherited from interface org.openscience.cdk.interfaces.IElement
getAtomicNumber, getSymbol, setAtomicNumber, setSymbol
-
Methods inherited from interface org.openscience.cdk.interfaces.IIsotope
getExactMass, getMassNumber, getNaturalAbundance, setExactMass, setMassNumber, setNaturalAbundance
-
-
-
-
Constructor Detail
-
PDBAtom
public PDBAtom(IElement element)
Constructs an IPDBAtom from a Element.- Parameters:
element
- IElement to copy information from
-
PDBAtom
public PDBAtom(String symbol)
Constructs anIPDBAtom
from a String containing an element symbol.- Parameters:
symbol
- The String describing the element for the PDBAtom
-
-
Method Detail
-
getRecord
public String getRecord()
get one entire line from the PDB entry file which describe the IPDBAtom. It consists of 80 columns.
-
setRecord
public void setRecord(String newRecord)
set one entire line from the PDB entry file which describe the IPDBAtom. It consists of 80 columns.
-
getTempFactor
public Double getTempFactor()
get the Temperature factor of this atom.- Specified by:
getTempFactor
in interfaceIPDBAtom
- Returns:
- the Temperature factor of this atom
-
setTempFactor
public void setTempFactor(Double newTempFactor)
set the Temperature factor of this atom.- Specified by:
setTempFactor
in interfaceIPDBAtom
- Parameters:
newTempFactor
- the Temperature factor of this atom
-
setResName
public void setResName(String newResName)
set the Residue name of this atom.- Specified by:
setResName
in interfaceIPDBAtom
- Parameters:
newResName
- the Residue name of this atom
-
getResName
public String getResName()
get the Residue name of this atom.- Specified by:
getResName
in interfaceIPDBAtom
- Returns:
- the Residue name of this atom
-
setICode
public void setICode(String newICode)
set the Code for insertion of residues of this atom.
-
getICode
public String getICode()
get Code for insertion of residues of this atom.
-
setName
public void setName(String newName)
set the Atom name of this atom.
-
getName
public String getName()
get the Atom name of this atom.
-
setChainID
public void setChainID(String newChainID)
set the Chain identifier of this atom.- Specified by:
setChainID
in interfaceIPDBAtom
- Parameters:
newChainID
- the Chain identifier of this atom
-
getChainID
public String getChainID()
get the Chain identifier of this atom.- Specified by:
getChainID
in interfaceIPDBAtom
- Returns:
- the Chain identifier of this atom
-
setAltLoc
public void setAltLoc(String newAltLoc)
set the Alternate location indicator of this atom.
-
getAltLoc
public String getAltLoc()
get the Alternate location indicator of this atom.
-
setSegID
public void setSegID(String newSegID)
set the Segment identifier, left-justified of this atom.
-
getSegID
public String getSegID()
get the Segment identifier, left-justified of this atom.
-
setSerial
public void setSerial(Integer newSerial)
set the Atom serial number of this atom.
-
getSerial
public Integer getSerial()
get the Atom serial number of this atom.
-
setResSeq
public void setResSeq(String newResSeq)
set the Residue sequence number of this atom.
-
getResSeq
public String getResSeq()
get the Residue sequence number of this atom.
-
setOxt
public void setOxt(Boolean newOxt)
Description copied from interface:IPDBAtom
Change the state of this atom in being the PDB OXT atom.
-
getOxt
public Boolean getOxt()
Description copied from interface:IPDBAtom
Returns true of this atom is a PDB OXT atom.
-
setHetAtom
public void setHetAtom(Boolean newHetAtom)
Description copied from interface:IPDBAtom
Mark the atom as a heteroatom.- Specified by:
setHetAtom
in interfaceIPDBAtom
- Parameters:
newHetAtom
- if true, the atom will be marked as a heteroatom
-
getHetAtom
public Boolean getHetAtom()
Description copied from interface:IPDBAtom
Determine whether this is a heteroatom or not.- Specified by:
getHetAtom
in interfaceIPDBAtom
- Returns:
- true if the atom is a heteroatom, otherwise false
-
setOccupancy
public void setOccupancy(Double newOccupancy)
set the Occupancy of this atom.- Specified by:
setOccupancy
in interfaceIPDBAtom
- Parameters:
newOccupancy
- the Occupancy of this atom
-
getOccupancy
public Double getOccupancy()
get the Occupancy of this atom.- Specified by:
getOccupancy
in interfaceIPDBAtom
- Returns:
- the Occupancy of this atom
-
toString
public String toString()
Returns a one line string representation of this Atom. Methods is conform RFC #9.- Specified by:
toString
in interfaceIChemObject
- Overrides:
toString
in classAtom
- Returns:
- The string representation of this Atom
-
-