Package org.openscience.cdk.silent
Class Monomer
- java.lang.Object
-
- org.openscience.cdk.silent.ChemObject
-
- org.openscience.cdk.silent.AtomContainer
-
- org.openscience.cdk.silent.Monomer
-
- All Implemented Interfaces:
Serializable,Cloneable,IAtomContainer,ICDKObject,IChemObject,IChemObjectListener,IMonomer
- Direct Known Subclasses:
AminoAcid,PDBMonomer
public class Monomer extends AtomContainer implements Serializable, IMonomer, Cloneable
A Monomer is an AtomContainer which stores additional monomer specific informations for a group of Atoms.- Author:
- Edgar Luttmann <edgar@uni-paderborn.de>
- See Also:
- Serialized Form
- Source code:
- main
- Belongs to CDK module:
- silent
- Keywords:
- monomer
- Created on:
- 2001-08-06
-
-
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 Monomer()Constructs a new Monomer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMonomerclone()Clones thisIChemObject.StringgetMonomerName()Retrieves the monomer name.StringgetMonomerType()Retrieves the monomer type.voidsetMonomerName(String cMonomerName)Sets the name of the Monomer object.voidsetMonomerType(String cMonomerType)Sets the type of the Monomer object.StringtoString()Returns a one line description of this IChemObject.-
Methods inherited from class org.openscience.cdk.silent.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.silent.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
-
-
-
-
Method Detail
-
getMonomerName
public String getMonomerName()
Retrieves the monomer name.- Specified by:
getMonomerNamein interfaceIMonomer- Returns:
- The name of the Monomer object
- See Also:
setMonomerName(java.lang.String)
-
getMonomerType
public String getMonomerType()
Retrieves the monomer type.- Specified by:
getMonomerTypein interfaceIMonomer- Returns:
- The type of the Monomer object
- See Also:
setMonomerType(java.lang.String)
-
setMonomerName
public void setMonomerName(String cMonomerName)
Sets the name of the Monomer object.- Specified by:
setMonomerNamein interfaceIMonomer- Parameters:
cMonomerName- The new name for this monomer- See Also:
getMonomerName()
-
setMonomerType
public void setMonomerType(String cMonomerType)
Sets the type of the Monomer object.- Specified by:
setMonomerTypein interfaceIMonomer- Parameters:
cMonomerType- The new type for this monomer- See Also:
getMonomerType()
-
clone
public IMonomer 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- Overrides:
clonein classAtomContainer- Returns:
- The cloned object
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-
toString
public String toString()
Description copied from class:AtomContainerReturns a one line description of this IChemObject.- Specified by:
toStringin interfaceIChemObject- Overrides:
toStringin classAtomContainer- Returns:
- a String representation of this object
-
-