Package org.openscience.cdk.silent
Class ElectronContainer
java.lang.Object
org.openscience.cdk.silent.ChemObject
org.openscience.cdk.silent.ElectronContainer
- All Implemented Interfaces:
Serializable
,Cloneable
,ICDKObject
,IChemObject
,IElectronContainer
- Direct Known Subclasses:
Bond
,LonePair
,SingleElectron
public class ElectronContainer
extends ChemObject
implements Serializable, IElectronContainer, Cloneable
Base class for entities containing electrons, like bonds, orbitals, lone-pairs.
- See Also:
- Source code:
- main
- Belongs to CDK module:
- silent
- Keywords:
- orbital, lone-pair, bond
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones thisIChemObject
.Returns the number of electrons in this electron container.void
setElectronCount
(Integer electronCount) Sets the number of electrons in this electron container.toString()
Returns a one line description of this IChemObject.Methods inherited from class org.openscience.cdk.silent.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, 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
-
Field Details
-
electronCount
Number of electrons in the ElectronContainer.
-
-
Constructor Details
-
ElectronContainer
public ElectronContainer()Constructs an empty ElectronContainer.
-
-
Method Details
-
getElectronCount
Returns the number of electrons in this electron container.- Specified by:
getElectronCount
in interfaceIElectronContainer
- Returns:
- The number of electrons in this electron container.
- See Also:
-
setElectronCount
Sets the number of electrons in this electron container.- Specified by:
setElectronCount
in interfaceIElectronContainer
- Parameters:
electronCount
- The number of electrons in this electron container.- See Also:
-
clone
Description copied from class:ChemObject
Clones thisIChemObject
. It clones the identifier, flags, properties and pointer vectors. The ChemObjectListeners are not cloned, and neither is the content of the pointer vectors.- Specified by:
clone
in interfaceIChemObject
- Overrides:
clone
in classChemObject
- Returns:
- The cloned object
- Throws:
CloneNotSupportedException
- if the IChemObject cannot be cloned
-
toString
Description copied from interface:IChemObject
Returns a one line description of this IChemObject.- Specified by:
toString
in interfaceIChemObject
- Overrides:
toString
in classObject
- Returns:
- a String representation of this object
-