public class LonePair extends ElectronContainer implements Serializable, ILonePair, Cloneable
| Constructor and Description |
|---|
LonePair()
Constructs an unconnected lone pair.
|
LonePair(IAtom atom)
Constructs an lone pair on an Atom.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clones this LonePair object, including a clone of the atom for which the
lone pair is defined.
|
boolean |
contains(IAtom atom)
Returns true if the given atom participates in this lone pair.
|
IAtom |
getAtom()
Returns the associated Atom.
|
Integer |
getElectronCount()
Returns the number of electrons in a LonePair.
|
void |
setAtom(IAtom atom)
Sets the associated Atom.
|
String |
toString()
Returns a one line string representation of this LonePair.
|
setElectronCountaddListener, compare, getBuilder, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopyequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsetElectronCountaddListener, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertygetBuilderpublic LonePair()
public LonePair(IAtom atom)
atom - Atom to which this lone pair is connectedpublic Integer getElectronCount()
getElectronCount in interface IElectronContainergetElectronCount in class ElectronContainerElectronContainer.setElectronCount(java.lang.Integer)public IAtom getAtom()
getAtom in interface ILonePairsetAtom(org.openscience.cdk.interfaces.IAtom)public void setAtom(IAtom atom)
public boolean contains(IAtom atom)
public Object clone() throws CloneNotSupportedException
clone in interface IChemObjectclone in class ElectronContainerCloneNotSupportedException - if the IChemObject cannot be clonedpublic String toString()
toString in interface IChemObjecttoString in class ElectronContainer