Package org.openscience.cdk.silent
Class SingleElectron
java.lang.Object
org.openscience.cdk.silent.ChemObject
org.openscience.cdk.silent.ElectronContainer
org.openscience.cdk.silent.SingleElectron
- All Implemented Interfaces:
Serializable,Cloneable,ICDKObject,IChemObject,IElectronContainer,ISingleElectron
public class SingleElectron
extends ElectronContainer
implements Serializable, ISingleElectron, Cloneable
A Single Electron is an orbital which is occupied by only one electron.
A radical in CDK is represented by an AtomContainer that contains an Atom
and a SingleElectron type ElectronContainer:
AtomContainer radical = new AtomContainer();
Atom carbon = new Atom("C");
carbon.setImplicitHydrogens(3);
radical.addElectronContainer(new SingleElectron(carbon));
- See Also:
- Keywords:
- radical, electron, unpaired
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IAtomThe atom with which this single electron is associated.protected final intNumber of electron for this class is defined as one.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
ConstructorsConstructorDescriptionConstructs an single electron orbital with an associated Atom.SingleElectron(IAtom atom) Constructs an single electron orbital on an Atom. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this SingleElectron object, including a clone of the atom for which the SingleElectron is defined.booleanReturns true if the given atom participates in this SingleElectron.getAtom()Returns the associated Atom.Returns the number of electrons in this SingleElectron.voidSets the associated Atom.toString()Returns a one line string representation of this SingleElectron.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 electron for this class is defined as one.- See Also:
-
atom
The atom with which this single electron is associated.
-
-
Constructor Details
-
SingleElectron
Constructs an single electron orbital on an Atom.- Parameters:
atom- The atom to which the single electron belongs.
-
SingleElectron
public SingleElectron()Constructs an single electron orbital with an associated Atom.
-
-
Method Details
-
getElectronCount
Returns the number of electrons in this SingleElectron.- Specified by:
getElectronCountin interfaceIElectronContainer- Overrides:
getElectronCountin classElectronContainer- Returns:
- The number of electrons in this SingleElectron.
- See Also:
-
getAtom
Returns the associated Atom.- Specified by:
getAtomin interfaceISingleElectron- Returns:
- the associated Atom.
- See Also:
-
setAtom
Sets the associated Atom.- Specified by:
setAtomin interfaceISingleElectron- Parameters:
atom- the Atom this SingleElectron will be associated with- See Also:
-
contains
Returns true if the given atom participates in this SingleElectron.- Specified by:
containsin interfaceISingleElectron- Parameters:
atom- The atom to be tested if it participates in this bond- Returns:
- true if this SingleElectron is associated with the atom
-
toString
Returns a one line string representation of this SingleElectron. This method is conform RFC #9.- Specified by:
toStringin interfaceIChemObject- Overrides:
toStringin classElectronContainer- Returns:
- The string representation of this SingleElectron
-
clone
Clones this SingleElectron object, including a clone of the atom for which the SingleElectron is defined.- Specified by:
clonein interfaceIChemObject- Overrides:
clonein classElectronContainer- Returns:
- The cloned object
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-