Class LonePair
java.lang.Object
org.openscience.cdk.ChemObject
org.openscience.cdk.ElectronContainer
org.openscience.cdk.LonePair
- All Implemented Interfaces:
Serializable, Cloneable, ICDKObject, IChemObject, IElectronContainer, ILonePair
- Direct Known Subclasses:
DebugLonePair
A LonePair is an orbital primarily located with one Atom, containing
two electrons.
- See Also:
- Keywords:
- orbital, lone-pair
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IAtomThe atom with which this lone pair is associated.protected final intNumber of electrons in the lone pair.Fields inherited from interface IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, MARKUSH, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this LonePair object, including a clone of the atom for which the lone pair is defined.booleanReturns true if the given atom participates in this lone pair.getAtom()Returns the associated Atom.Returns the number of electrons in a LonePair.voidSets the associated Atom.toString()Returns a one line string representation of this LonePair.Methods inherited from class ElectronContainer
setElectronCountMethods inherited from class 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, shallowCopyMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ICDKObject
getBuilderMethods 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, setPropertyMethods inherited from interface IElectronContainer
setElectronCount
-
Field Details
-
electronCount
protected final int electronCountNumber of electrons in the lone pair.- See Also:
-
atom
The atom with which this lone pair is associated.
-
-
Constructor Details
-
LonePair
public LonePair()Constructs an unconnected lone pair. -
LonePair
Constructs an lone pair on an Atom.- Parameters:
atom- Atom to which this lone pair is connected
-
-
Method Details
-
getElectronCount
Returns the number of electrons in a LonePair.- Specified by:
getElectronCountin interfaceIElectronContainer- Overrides:
getElectronCountin classElectronContainer- Returns:
- The number of electrons in a LonePair.
- See Also:
-
getAtom
-
setAtom
-
contains
-
clone
Clones this LonePair object, including a clone of the atom for which the lone pair is defined.- Specified by:
clonein interfaceIChemObject- Overrides:
clonein classElectronContainer- Returns:
- The cloned object
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-
toString
Returns a one line string representation of this LonePair. This method is conform RFC #9.- Specified by:
toStringin interfaceIChemObject- Overrides:
toStringin classElectronContainer- Returns:
- The string representation of this LonePair
-