Package org.openscience.cdk
Class ElectronContainer
- java.lang.Object
-
- org.openscience.cdk.ChemObject
-
- org.openscience.cdk.ElectronContainer
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ICDKObject
,IChemObject
,IElectronContainer
- Direct Known Subclasses:
Bond
,DebugElectronContainer
,LonePair
,SingleElectron
public class ElectronContainer extends ChemObject implements Serializable, IElectronContainer, Cloneable
Base class for entities containing electrons, like bonds, orbitals, lone-pairs.- See Also:
- Serialized Form
- Source code:
- main
- Belongs to CDK module:
- data
- Keywords:
- orbital, lone-pair, bond
-
-
Field Summary
Fields Modifier and Type Field Description protected Integer
electronCount
Number of electrons in the ElectronContainer.-
Fields inherited from interface org.openscience.cdk.interfaces.IChemObject
ALIPHATIC, AROMATIC, CONJUGATED, HYDROGEN_BOND_ACCEPTOR, HYDROGEN_BOND_DONOR, IN_RING, MAPPED, NOT_IN_RING, PLACED, REACTIVE_CENTER, SINGLE_OR_DOUBLE, TYPEABLE, VISITED
-
-
Constructor Summary
Constructors Constructor Description ElectronContainer()
Constructs an empty ElectronContainer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Clones thisIChemObject
.Integer
getElectronCount()
Returns the number of electrons in this electron container.void
setElectronCount(Integer electronCount)
Sets the number of electrons in this electron container.String
toString()
Returns a one line description of this IChemObject.-
Methods inherited from class org.openscience.cdk.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, 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, clear, flags, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, is, notifyChanged, notifyChanged, removeListener, removeProperty, set, setFlag, setFlags, setID, setNotification, setProperties, setProperty
-
-
-
-
Field Detail
-
electronCount
protected Integer electronCount
Number of electrons in the ElectronContainer.
-
-
Method Detail
-
getElectronCount
public Integer 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(java.lang.Integer)
-
setElectronCount
public void setElectronCount(Integer electronCount)
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:
getElectronCount()
-
clone
public Object clone() throws CloneNotSupportedException
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
public String 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
-
-