Interface IMonomer
- All Superinterfaces:
Cloneable, IAtomContainer, ICDKObject, IChemObject, IChemObjectListener
- All Known Subinterfaces:
IAminoAcid, IPDBMonomer
- All Known Implementing Classes:
AminoAcid, AminoAcid, DebugAminoAcid, DebugMonomer, DebugPDBMonomer, Monomer, Monomer, PDBMonomer, PDBMonomer
A Monomer is an AtomContainer which stores additional monomer specific
informations for a group of Atoms.
- Author:
- Edgar Luttmann <edgar@uni-paderborn.de>
- Keywords:
- monomer
- Created on:
- 2001-08-06
-
Field Summary
Fields inherited from interface IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HIDDEN, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, MARKUSH, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITEDModifier and TypeFieldDescriptionstatic final intFlag that is set if a ChemObject is part of an aliphatic chain.static final intFlag is set if ChemObject is part of an aromatic system.static final intFlag is set if ChemObject is part of a conjugated system.static final intThis flag can be used when depicted structures to hide certain parts, for example the things are abbreviated (display shortcuts).static final intSets to true if the atom is a hydrogen bond acceptor.static final intSets to true if the atom is a hydrogen bond donor.static final intFlag that is set when the ChemObject is part of a ring.static final intFlag is set if a ChemObject is mapped to another ChemObject.static final intFlag to indicate a flattened molecule holds a Markush structure, you can work on it as is or it might make more sense to repack into something sensible like a RGroupQuery.static final intFlag that is set when the ChemObject is part of a ring.static final intFlag that is set if the ChemObject is placed when calculating 2D/3D layouts.static final intFlag is set if a ChemObject has reactive center.static final intFlag used for marking uncertainty of the bond order.static final intFlag is set if an atom could be typed.static final intFlag is set if ChemObject has been visited. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a deep clone of this IChemObject.Retrieve the monomer name.Retrieve the monomer type.voidsetMonomerName(String cMonomerName) Set the name of the Monomer object.voidsetMonomerType(String cMonomerType) Set the type of the Monomer object.Methods inherited from interface IAtomContainer
add, addAtom, 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, stereoElementsModifier and TypeMethodDescriptionvoidadd(IAtomContainer atomContainer) Adds all atoms and electronContainers of a given atomcontainer to this container.voidAdds an atom to this container.default voidaddBond(int atom1, int atom2, IBond.Order order) Adds a bond to this container.voidaddBond(int atom1, int atom2, IBond.Order order, IBond.Display display) Adds a bond to this container.voidaddBond(int atom1, int atom2, IBond.Order order, IBond.Stereo stereo) Adds a bond to this container.voidAdds a Bond to this AtomContainer.voidaddElectronContainer(IElectronContainer electronContainer) Adds a ElectronContainer to this AtomContainer.voidaddLonePair(int atomID) Adds a LonePair to this Atom.voidaddLonePair(ILonePair lonePair) Adds a lone pair to this AtomContainer.voidaddSingleElectron(int atomID) Adds a SingleElectron to this Atom.voidaddSingleElectron(ISingleElectron singleElectron) Adds a single electron to this AtomContainer.voidaddStereoElement(IStereoElement element) Adds a stereo element to this container.atoms()Returns an Iterable for looping over all atoms in this container.bonds()Returns an Iterable for looping over all bonds in this container.booleanTrue, if the AtomContainer contains the given atom object.booleanTrue, if the AtomContainer contains the given bond object.booleancontains(IElectronContainer electronContainer) True, if the AtomContainer contains the given ElectronContainer object.booleanTrue, if the AtomContainer contains the given LonePair object.booleancontains(ISingleElectron singleElectron) True, if the AtomContainer contains the given SingleElectron object.Returns an Iterable for looping over all electron containers in this container.getAtom(int idx) Get the atom at the specified idx, the index should be in the range 0 ≤ idx <IAtomContainer.getAtomCount().intReturns the number of Atoms in this Container.intgetAtomNumber(IAtom atom) Deprecated.getBond(int idx) Get the bond at the specified idx, the index should be in the range 0 ≤ idx <IAtomContainer.getBondCount().Returns the bond that connects the two given atoms.intReturns the number of Bonds in this Container.intgetBondNumber(IAtom atom1, IAtom atom2) Deprecated.intgetBondNumber(IBond bond) Deprecated.doublegetBondOrderSum(IAtom atom) Returns the sum of the bond orders for a given Atom.intgetConnectedAtomsCount(IAtom atom) Deprecated.getConnectedAtomsList(IAtom atom) Returns the atoms connected connected to the specified atom by a bond.intgetConnectedBondsCount(int idx) Returns the number of connected bonds (explicit degree) to atom at the specified index.intgetConnectedBondsCount(IAtom atom) Returns the number of connected bonds (explicit degree) to the specified atom.getConnectedBondsList(IAtom atom) Returns the bonds connected connected to the specified atom.Returns the electron containers (bonds, radicals, and lone pairs ) connected connected to the specified atom.intReturns the number of lone pairs connected to the specified atom.Returns the lone pairs connected connected to the specified atom.intReturns the number of single electrons connected to the specified atom.Returns the single electrons connected connected to the specified atom.getElectronContainer(int number) Returns the ElectronContainer at positionnumberin the container.intReturns the number of ElectronContainers in this Container.Deprecated.Deprecated.getLonePair(int idx) Get the lone pair at the specified idx, the index should be in the range 0 ≤ idx <IAtomContainer.getLonePairCount().intReturns the number of LonePairs in this Container.intgetLonePairNumber(ILonePair lonePair) Deprecated.getMaximumBondOrder(IAtom atom) Returns the maximum bond order that this atom currently has in the context of this AtomContainer.getMinimumBondOrder(IAtom atom) Returns the minimum bond order that this atom currently has in the context of this AtomContainer.getSingleElectron(int idx) Get the single electron at the specified idx, the index should be in the range 0 ≤ idx <IAtomContainer.getSingleElectronCount().intReturns the number of the single electrons in this container.intgetSingleElectronNumber(ISingleElectron singleElectron) Deprecated.getTitle()Access the title of the record.intAccess the storage index of an atom.intAccess the storage index of a bond.intAccess the storage index of a long pair.intindexOf(ISingleElectron electron) Access the storage index of a single electron (radical).booleanisEmpty()Indicates whether this container is empty.Returns an Iterable for looping over all lone pairs in this container.default IAtomnewAtom()Create a new carbon atom in this container, it will have the implicit hydrogen count initialized to 0.default IAtomnewAtom(int element) Create a new atom in this container of the specified element, it will have the implicit hydrogen count initialized to 0.default IAtomnewAtom(int element, int numImplH) Create a new atom in this container of the specified element and implicit hydrogen count.default IAtomCreate a new atom in the container based on properties of the provided atom.default IBondCreate a new single bond between two atoms.default IBondnewBond(IAtom beg, IAtom end, IBond.Order order) Create a new bond between two atoms.voidremove(IAtomContainer atomContainer) Removes all atoms and electronContainers of a given atomcontainer from this container.voidRemoves all Bonds from this container.voidRemoves electronContainers from this container.voidRemoves all atoms, bonds and stereo elements from this container.voidremoveAtom(int pos) Safely remove an atom from the container.voidremoveAtom(IAtom atom) Safely remove an atom from the container.voidDeprecated.Method has be renamedIAtomContainer.removeAtom(IAtom).voidremoveAtomOnly(int position) Unsafely remove atom at index.voidremoveAtomOnly(IAtom atom) Unsafely remove atom.removeBond(int position) Removes the bond at the given position from the AtomContainer.removeBond(IAtom atom1, IAtom atom2) Removes the bond that connects the two given atoms.voidremoveBond(IBond bond) Removes the bond from this container.removeElectronContainer(int position) Removes the bond at the given position from this container.voidremoveElectronContainer(IElectronContainer electronContainer) Removes this ElectronContainer from this container.removeLonePair(int position) Removes the lone pair at the given position from the AtomContainer.voidremoveLonePair(ILonePair lonePair) Removes the lone pair from the AtomContainer.removeSingleElectron(int position) Removes the single electron at the given position from the AtomContainer.voidremoveSingleElectron(ISingleElectron singleElectron) Removes the single electron from the AtomContainer.voidSet the atom atidx, the index must have an existing atom and therefore be in the range 0 ≤ idx < mol.getAtomCount().voidSets the array of atoms of this AtomContainer.voidSets the array of bonds of this AtomContainer.voidsetStereoElements(List<IStereoElement> elements) Set the stereo elements - this will replace the existing instance with a new instance.voidModify the title of the record.Returns an Iterable for looping over all single electrons in this container.Returns the stereo elements defined for this atom container.Methods inherited from interface ICDKObject
getBuilderModifier and TypeMethodDescriptionReturns aIChemObjectBuilderfor the data classes that extend this class.Methods inherited from interface 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, toStringModifier and TypeMethodDescriptionvoidUse this to add yourself to this IChemObject as a listener.voidaddProperties(Map<Object, Object> properties) Add properties to this object, duplicate keys will replace any existing value.voidclear(int flags) Clear the provided flags.intflags()Access the current value of the flags for this ChemObject.booleangetFlag(int mask) Returns the value of a given flag.boolean[]getFlags()Returns the whole set of flags.Deprecated.usedIChemObject.flags()getID()Returns the identifier (ID) of this object.intReturns the number of ChemObjectListeners registered with this object.booleanReturns the flag that indicates whether notification messages are sent around.Returns a Map with the IChemObject's properties.<T> TgetProperty(Object description) Returns a property for the IChemObject - the object is automatically cast to the required type.<T> TgetProperty(Object description, Class<T> c) Access a property of the given description and cast the specified class.booleanis(int flags) Test if a flag(s) are set on this ChemObject.voidThis should be triggered by an method that changes the content of an object to that the registered listeners can react to it.voidThis should be triggered by an method that changes the content of an object to that the registered listeners can react to it.voidUse this to remove a ChemObjectListener from the ListenerList of this IChemObject.voidremoveProperty(Object description) Removes a property for a IChemObject.voidset(int flags) Set the provided flags.voidsetFlag(int mask, boolean value) Sets the value of some flag.voidsetFlags(boolean[] newFlags) Sets the whole set of flags.voidSets the identifier (ID) of this object.voidsetNotification(boolean bool) Set a flag to use or not use notification.voidsetProperties(Map<Object, Object> properties) Set the properties of this object to the provided map (shallow copy).voidsetProperty(Object description, Object property) Sets a property for a IChemObject.toString()Returns a one line description of this IChemObject.Methods inherited from interface IChemObjectListener
stateChangedModifier and TypeMethodDescriptionvoidCalled by objects to notify objects that implemented this interface and registered with them as ChemObjectListeners.
-
Method Details
-
getMonomerName
String getMonomerName()Retrieve the monomer name.- Returns:
- The name of the Monomer object
- See Also:
-
getMonomerType
String getMonomerType()Retrieve the monomer type.- Returns:
- The type of the Monomer object
- See Also:
-
setMonomerName
Set the name of the Monomer object.- Parameters:
cMonomerName- The new name for this monomer- See Also:
-
setMonomerType
Set the type of the Monomer object.- Parameters:
cMonomerType- The new type for this monomer- See Also:
-
clone
Returns a deep clone of this IChemObject.- Specified by:
clonein interfaceIAtomContainer- Specified by:
clonein interfaceIChemObject- Returns:
- Object the clone of this IChemObject.
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-
IAtomContainer.indexOf(IAtom)