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:
- Keywords:
- orbital, lone-pair, bond
-
Field Summary
FieldsFields 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 thisIChemObject.Returns the number of electrons in this electron container.voidsetElectronCount(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, 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, 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:
getElectronCountin interfaceIElectronContainer- Returns:
- The number of electrons in this electron container.
- See Also:
-
setElectronCount
Sets the number of electrons in this electron container.- Specified by:
setElectronCountin interfaceIElectronContainer- Parameters:
electronCount- The number of electrons in this electron container.- See Also:
-
clone
Description copied from class:ChemObjectClones 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:
clonein interfaceIChemObject- Overrides:
clonein classChemObject- Returns:
- The cloned object
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-
toString
Description copied from interface:IChemObjectReturns a one line description of this IChemObject.- Specified by:
toStringin interfaceIChemObject- Overrides:
toStringin classObject- Returns:
- a String representation of this object
-