Package org.openscience.cdk
Class Mapping
java.lang.Object
org.openscience.cdk.ChemObject
org.openscience.cdk.Mapping
- All Implemented Interfaces:
Serializable
,Cloneable
,ICDKObject
,IChemObject
,IMapping
- Direct Known Subclasses:
DebugMapping
A Mapping is an relation between two ChemObjects in a non-chemical
entity. It is not a Bond, nor a Association, merely a relation.
An example of such a mapping, is the mapping between corresponding atoms
in a Reaction.
- Author:
- Egon Willighagen
- See Also:
- Source code:
- main
- Belongs to CDK module:
- data
- Keywords:
- reaction, atom mapping
- Created on:
- 2003-08-16
-
Constructor Summary
ConstructorsConstructorDescriptionMapping
(IChemObject objectOne, IChemObject objectTwo) Constructs an unconnected lone pair. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones thisMapping
and the mappedIChemObject
s.getChemObject
(int pos) Retrieves the first or second of the related IChemObjects.Returns an Iterable to the two IChemObjects.Methods inherited from class org.openscience.cdk.ChemObject
addListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openscience.cdk.interfaces.ICDKObject
getBuilder
Methods inherited from interface org.openscience.cdk.interfaces.IChemObject
addListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toString
-
Constructor Details
-
Mapping
Constructs an unconnected lone pair.- Parameters:
objectOne
- The first IChemObject of the mappingobjectTwo
- The second IChemObject of the mapping
-
-
Method Details
-
getChemObject
Retrieves the first or second of the related IChemObjects.- Specified by:
getChemObject
in interfaceIMapping
- Parameters:
pos
- The position of the IChemObject.- Returns:
- The IChemObject to retrieve.
-
clone
Clones thisMapping
and the mappedIChemObject
s.- Specified by:
clone
in interfaceIChemObject
- Overrides:
clone
in classChemObject
- Returns:
- The cloned object
- Throws:
CloneNotSupportedException
- if the IChemObject cannot be cloned