Package org.openscience.cdk.protein.data
Class PDBPolymer
java.lang.Object
org.openscience.cdk.ChemObject
org.openscience.cdk.AtomContainer
org.openscience.cdk.Polymer
org.openscience.cdk.BioPolymer
org.openscience.cdk.protein.data.PDBPolymer
- All Implemented Interfaces:
Serializable,Cloneable,IAtomContainer,IBioPolymer,ICDKObject,IChemObject,IChemObjectListener,IPDBPolymer,IPolymer
- Direct Known Subclasses:
DebugPDBPolymer
An entry in the PDB database. It is not just a regular protein, but the
regular PDB mix of protein or protein complexes, ligands, water molecules
and other species.
- Author:
- Egon Willighagen
- See Also:
- Keywords:
- polymer
- Created on:
- 2006-04-19
-
Field Summary
Fields inherited from interface org.openscience.cdk.interfaces.IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, MARKUSH, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the atom oAtom without specifying aIMonomeror a Strand.voidAdds the atom oAtom to a specified Monomer.voidAdds the IPDBAtom oAtom to a specified Monomer of a specified Strand.voidaddStructure(IPDBStructure structure) Adds the PDBStructure structure a this PDBPolymer.clone()Clones thisIChemObject.Returns the monomer names in the order in which they were added.Returns a Collection containing the PDBStructure in the PDBPolymer.toString()Returns a one line description of this IChemObject.Methods inherited from class org.openscience.cdk.BioPolymer
addAtom, addAtom, getMonomer, getMonomerCount, getMonomerNames, getStrand, getStrandCount, getStrandNames, getStrands, removeStrandMethods inherited from class org.openscience.cdk.Polymer
addAtom, getMonomer, removeMonomerMethods inherited from class org.openscience.cdk.AtomContainer
add, addAtom, addBond, addBond, addBond, addElectronContainer, addLonePair, addLonePair, addSingleElectron, addSingleElectron, addStereoElement, atoms, bonds, contains, contains, contains, contains, contains, electronContainers, getAtom, getAtomCount, getAtomNumber, getBond, getBond, getBondCount, getBondNumber, getBondNumber, getBondOrderSum, getConnectedAtomsCount, getConnectedAtomsList, getConnectedBondsCount, getConnectedBondsCount, getConnectedBondsList, getConnectedElectronContainersList, getConnectedLonePairsCount, getConnectedLonePairsList, getConnectedSingleElectronsCount, getConnectedSingleElectronsList, getElectronContainer, getElectronContainerCount, getFirstAtom, getLastAtom, getLonePair, getLonePairCount, getLonePairNumber, getMaximumBondOrder, getMinimumBondOrder, getSingleElectron, getSingleElectronCount, getSingleElectronNumber, getTitle, indexOf, indexOf, indexOf, indexOf, isEmpty, lonePairs, newAtom, newAtom, newBond, remove, removeAllBonds, removeAllElectronContainers, removeAllElements, removeAtom, removeAtom, removeAtomAndConnectedElectronContainers, removeAtomOnly, removeAtomOnly, removeBond, removeBond, removeBond, removeElectronContainer, removeElectronContainer, removeLonePair, removeLonePair, removeSingleElectron, removeSingleElectron, setAtom, setAtoms, setBonds, setStereoElements, setTitle, shallowCopy, singleElectrons, stateChanged, stereoElementsMethods inherited from class org.openscience.cdk.ChemObject
addListener, addProperties, clear, compare, flags, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, notifyChanged, notifyChanged, removeListener, removeProperty, set, setFlag, setFlags, setID, setNotification, setProperties, setPropertyMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openscience.cdk.interfaces.IAtomContainer
add, addBond, addBond, addBond, addBond, addElectronContainer, addLonePair, addLonePair, addSingleElectron, addSingleElectron, addStereoElement, atoms, bonds, contains, contains, contains, contains, contains, electronContainers, getAtom, getAtomCount, getAtomNumber, getBond, getBond, getBondCount, getBondNumber, getBondNumber, getBondOrderSum, getConnectedAtomsCount, getConnectedAtomsList, getConnectedBondsCount, getConnectedBondsCount, getConnectedBondsList, getConnectedElectronContainersList, getConnectedLonePairsCount, getConnectedLonePairsList, getConnectedSingleElectronsCount, getConnectedSingleElectronsList, getElectronContainer, getElectronContainerCount, getFirstAtom, getLastAtom, getLonePair, getLonePairCount, getLonePairNumber, getMaximumBondOrder, getMinimumBondOrder, getSingleElectron, getSingleElectronCount, getSingleElectronNumber, getTitle, indexOf, indexOf, indexOf, indexOf, isEmpty, lonePairs, newAtom, newAtom, newAtom, newAtom, newBond, newBond, remove, removeAllBonds, removeAllElectronContainers, removeAllElements, removeAtom, removeAtom, removeAtomAndConnectedElectronContainers, removeAtomOnly, removeAtomOnly, removeBond, removeBond, removeBond, removeElectronContainer, removeElectronContainer, removeLonePair, removeLonePair, removeSingleElectron, removeSingleElectron, setAtom, setAtoms, setBonds, setStereoElements, setTitle, singleElectrons, stereoElementsMethods inherited from interface org.openscience.cdk.interfaces.IBioPolymer
addAtom, addAtom, addAtom, getMonomer, getMonomerCount, getMonomerNames, getStrand, getStrandCount, getStrandNames, getStrands, removeStrandMethods inherited from interface org.openscience.cdk.interfaces.ICDKObject
getBuilderMethods 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, setPropertyMethods inherited from interface org.openscience.cdk.interfaces.IChemObjectListener
stateChangedMethods inherited from interface org.openscience.cdk.interfaces.IPolymer
addAtom, getMonomer, removeMonomer
-
Constructor Details
-
PDBPolymer
public PDBPolymer()Constructs a new Polymer to store theIMonomers.
-
-
Method Details
-
addStructure
Description copied from interface:IPDBPolymerAdds the PDBStructure structure a this PDBPolymer.- Specified by:
addStructurein interfaceIPDBPolymer- Parameters:
structure- The PDBStructure to add
-
getStructures
Description copied from interface:IPDBPolymerReturns a Collection containing the PDBStructure in the PDBPolymer.- Specified by:
getStructuresin interfaceIPDBPolymer- Returns:
- Collection containing the PDBStructure in the PDBPolymer
-
addAtom
Adds the atom oAtom without specifying aIMonomeror a Strand. Therefore the atom to this AtomContainer, but not to a certain Strand orIMonomer(intended e.g. for HETATMs).- Specified by:
addAtomin interfaceIPDBPolymer- Parameters:
oAtom- TheIPDBAtomto add
-
addAtom
Adds the atom oAtom to a specified Monomer. Additionally, it keeps record of the iCode.- Parameters:
oAtom- The IPDBAtom to addoMonomer- The monomer the atom belongs to
-
addAtom
Adds the IPDBAtom oAtom to a specified Monomer of a specified Strand. Additionally, it keeps record of the iCode.- Specified by:
addAtomin interfaceIPDBPolymer- Parameters:
oAtom- The IPDBAtom to addoMonomer- The monomer the atom belongs tooStrand- The strand the atom belongs to
-
getMonomerNamesInSequentialOrder
Returns the monomer names in the order in which they were added.- See Also:
-
clone
Clones thisIChemObject. It clones the identifier, flags, properties and pointer vectors. The ChemObjectListeners are not cloned, and neither is the content of the pointer vectors.- Specified by:
clonein interfaceIAtomContainer- Specified by:
clonein interfaceIBioPolymer- Specified by:
clonein interfaceIChemObject- Specified by:
clonein interfaceIPDBPolymer- Specified by:
clonein interfaceIPolymer- Overrides:
clonein classBioPolymer- Returns:
- The cloned object
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-
toString
Description copied from class:AtomContainerReturns a one line description of this IChemObject.- Specified by:
toStringin interfaceIChemObject- Overrides:
toStringin classBioPolymer- Returns:
- a String representation of this object
-