Package org.openscience.cdk.protein.data
Class PDBMonomer
- java.lang.Object
-
- org.openscience.cdk.ChemObject
-
- org.openscience.cdk.AtomContainer
-
- org.openscience.cdk.Monomer
-
- org.openscience.cdk.protein.data.PDBMonomer
-
- All Implemented Interfaces:
Serializable,Cloneable,IAtomContainer,ICDKObject,IChemObject,IChemObjectListener,IMonomer,IPDBMonomer
- Direct Known Subclasses:
DebugPDBMonomer
public class PDBMonomer extends Monomer implements Cloneable, IPDBMonomer
Represents the idea of an monomer as used in PDB files. It contains extra fields normally associated with atoms in such files.- See Also:
PDBAtom, Serialized Form- Source code:
- main
- Belongs to CDK module:
- data
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description PDBMonomer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPDBMonomerclone()Clones thisIChemObject.StringgetChainID()Gets the Chain ID of this monomer.StringgetICode()Gets the ICode of this monomer.StringgetResSeq()Gets the sequence identifier of this monomer.voidsetChainID(String newChainID)Sets the Chain ID of this monomer.voidsetICode(String newICode)Sets the ICode of this monomer.voidsetResSeq(String resSeq)Sets the sequence identifier of this monomer.StringtoString()Returns a one line string representation of this Atom.-
Methods inherited from class org.openscience.cdk.Monomer
getMonomerName, getMonomerType, setMonomerName, setMonomerType
-
Methods 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, stereoElements
-
Methods 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, setProperty
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openscience.cdk.interfaces.IAtomContainer
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, 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, stereoElements
-
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.IChemObjectListener
stateChanged
-
Methods inherited from interface org.openscience.cdk.interfaces.IMonomer
getMonomerName, getMonomerType, setMonomerName, setMonomerType
-
-
-
-
Method Detail
-
setICode
public void setICode(String newICode)
Description copied from interface:IPDBMonomerSets the ICode of this monomer.- Specified by:
setICodein interfaceIPDBMonomer- Parameters:
newICode- the I code of this monomer
-
getICode
public String getICode()
Description copied from interface:IPDBMonomerGets the ICode of this monomer.- Specified by:
getICodein interfaceIPDBMonomer- Returns:
- the ICode of this monomer
-
setChainID
public void setChainID(String newChainID)
Description copied from interface:IPDBMonomerSets the Chain ID of this monomer.- Specified by:
setChainIDin interfaceIPDBMonomer- Parameters:
newChainID- the Chain ID of this monomer
-
getChainID
public String getChainID()
Description copied from interface:IPDBMonomerGets the Chain ID of this monomer.- Specified by:
getChainIDin interfaceIPDBMonomer- Returns:
- the Chain ID of this monomer
-
toString
public String toString()
Returns a one line string representation of this Atom. Methods is conform RFC #9.- Specified by:
toStringin interfaceIChemObject- Overrides:
toStringin classMonomer- Returns:
- The string representation of this Atom
-
getResSeq
public String getResSeq()
Description copied from interface:IPDBMonomerGets the sequence identifier of this monomer.- Specified by:
getResSeqin interfaceIPDBMonomer- Returns:
- the sequence identifier of this monomer
-
clone
public IPDBMonomer clone() throws CloneNotSupportedException
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 interfaceIChemObject- Specified by:
clonein interfaceIMonomer- Specified by:
clonein interfaceIPDBMonomer- Overrides:
clonein classMonomer- Returns:
- The cloned object
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-
setResSeq
public void setResSeq(String resSeq)
Description copied from interface:IPDBMonomerSets the sequence identifier of this monomer.- Specified by:
setResSeqin interfaceIPDBMonomer- Parameters:
resSeq- the new sequence identifier of this monomer
-
-