Package org.openscience.cdk.silent
Class LonePair
java.lang.Object
org.openscience.cdk.silent.ChemObject
org.openscience.cdk.silent.ElectronContainer
org.openscience.cdk.silent.LonePair
- All Implemented Interfaces:
Serializable,Cloneable,ICDKObject,IChemObject,IElectronContainer,ILonePair
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 org.openscience.cdk.interfaces.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 org.openscience.cdk.silent.ElectronContainer
setElectronCountMethods 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, shallowCopyMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openscience.cdk.interfaces.ICDKObject
getBuilderMethods 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, setPropertyMethods inherited from interface org.openscience.cdk.interfaces.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
Returns the associated Atom. -
setAtom
Sets the associated Atom. -
contains
Returns true if the given atom participates in this lone pair. -
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
-