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.IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITED
-
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 anIPDBAtomfrom a String containing an element symbol.PDBAtom(String symbol, javax.vecmath.Point3d coordinate)Constructs anIPDBAtomfrom 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 StringgetAltLoc()get the Alternate location indicator of this atom.StringgetChainID()get the Chain identifier of this atom.BooleangetHetAtom()Determine whether this is a heteroatom or not.StringgetICode()get Code for insertion of residues of this atom.StringgetName()get the Atom name of this atom.DoublegetOccupancy()get the Occupancy of this atom.BooleangetOxt()Returns true of this atom is a PDB OXT atom.StringgetRecord()get one entire line from the PDB entry file which describe the IPDBAtom.StringgetResName()get the Residue name of this atom.StringgetResSeq()get the Residue sequence number of this atom.StringgetSegID()get the Segment identifier, left-justified of this atom.IntegergetSerial()get the Atom serial number of this atom.DoublegetTempFactor()get the Temperature factor of this atom.voidsetAltLoc(String newAltLoc)set the Alternate location indicator of this atom.voidsetChainID(String newChainID)set the Chain identifier of this atom.voidsetHetAtom(Boolean newHetAtom)Mark the atom as a heteroatom.voidsetICode(String newICode)set the Code for insertion of residues of this atom.voidsetName(String newName)set the Atom name of this atom.voidsetOccupancy(Double newOccupancy)set the Occupancy of this atom.voidsetOxt(Boolean newOxt)Change the state of this atom in being the PDB OXT atom.voidsetRecord(String newRecord)set one entire line from the PDB entry file which describe the IPDBAtom.voidsetResName(String newResName)set the Residue name of this atom.voidsetResSeq(String newResSeq)set the Residue sequence number of this atom.voidsetSegID(String newSegID)set the Segment identifier, left-justified of this atom.voidsetSerial(Integer newSerial)set the Atom serial number of this atom.voidsetTempFactor(Double newTempFactor)set the Temperature factor of this atom.StringtoString()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, setCharge, setFractionalPoint3d, setImplicitHydrogenCount, 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, clear, flags, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, notifyChanged, notifyChanged, removeListener, removeProperty, set, 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, getTotalHydrogenCount, isAromatic, isInRing, neighbors, 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, clear, flags, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, notifyChanged, notifyChanged, removeListener, removeProperty, set, 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 anIPDBAtomfrom 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:
getTempFactorin interfaceIPDBAtom- Returns:
- the Temperature factor of this atom
-
setTempFactor
public void setTempFactor(Double newTempFactor)
set the Temperature factor of this atom.- Specified by:
setTempFactorin interfaceIPDBAtom- Parameters:
newTempFactor- the Temperature factor of this atom
-
setResName
public void setResName(String newResName)
set the Residue name of this atom.- Specified by:
setResNamein interfaceIPDBAtom- Parameters:
newResName- the Residue name of this atom
-
getResName
public String getResName()
get the Residue name of this atom.- Specified by:
getResNamein 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:
setChainIDin interfaceIPDBAtom- Parameters:
newChainID- the Chain identifier of this atom
-
getChainID
public String getChainID()
get the Chain identifier of this atom.- Specified by:
getChainIDin 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:IPDBAtomChange the state of this atom in being the PDB OXT atom.
-
getOxt
public Boolean getOxt()
Description copied from interface:IPDBAtomReturns true of this atom is a PDB OXT atom.
-
setHetAtom
public void setHetAtom(Boolean newHetAtom)
Description copied from interface:IPDBAtomMark the atom as a heteroatom.- Specified by:
setHetAtomin interfaceIPDBAtom- Parameters:
newHetAtom- if true, the atom will be marked as a heteroatom
-
getHetAtom
public Boolean getHetAtom()
Description copied from interface:IPDBAtomDetermine whether this is a heteroatom or not.- Specified by:
getHetAtomin 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:
setOccupancyin interfaceIPDBAtom- Parameters:
newOccupancy- the Occupancy of this atom
-
getOccupancy
public Double getOccupancy()
get the Occupancy of this atom.- Specified by:
getOccupancyin 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:
toStringin interfaceIChemObject- Overrides:
toStringin classAtom- Returns:
- The string representation of this Atom
-
-