Package org.openscience.cdk.silent
Class ChemModel
- java.lang.Object
-
- org.openscience.cdk.silent.ChemObject
-
- org.openscience.cdk.silent.ChemModel
-
- All Implemented Interfaces:
Serializable,Cloneable,ICDKObject,IChemModel,IChemObject,IChemObjectListener
public class ChemModel extends ChemObject implements Serializable, IChemModel, IChemObjectListener, Cloneable
An object containing multiple MoleculeSet and the other lower level concepts like rings, sequences, fragments, etc.- See Also:
- Serialized Form
- Source code:
- main
- Belongs to CDK module:
- silent
-
-
Field Summary
Fields Modifier and Type Field Description protected ICrystalcrystalA Crystal.protected IRingSetringSetA RingSet.protected IAtomContainerSetsetOfMoleculesA MoleculeSet.protected IReactionSetsetOfReactionsA ReactionSet.-
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 ChemModel()Constructs an new ChemModel with a null setOfMolecules.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Clones thisChemModeland its content.ICrystalgetCrystal()Gets the Crystal contained in this ChemModel.IAtomContainerSetgetMoleculeSet()Returns the MoleculeSet of this ChemModel.IReactionSetgetReactionSet()Gets the ReactionSet contained in this ChemModel.IRingSetgetRingSet()Returns the RingSet of this ChemModel.booleanisEmpty()Returns true if this ChemModel is empty.voidsetCrystal(ICrystal crystal)Sets the Crystal contained in this ChemModel.voidsetMoleculeSet(IAtomContainerSet setOfMolecules)Sets the MoleculeSet of this ChemModel.voidsetReactionSet(IReactionSet sor)Sets the ReactionSet contained in this ChemModel.voidsetRingSet(IRingSet ringSet)Sets the RingSet of this ChemModel.voidstateChanged(IChemObjectChangeEvent event)Called by objects to which this object has registered as a listener.StringtoString()Returns a String representation of the contents 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, 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
-
setOfMolecules
protected IAtomContainerSet setOfMolecules
A MoleculeSet.
-
setOfReactions
protected IReactionSet setOfReactions
A ReactionSet.
-
ringSet
protected IRingSet ringSet
A RingSet.
-
crystal
protected ICrystal crystal
A Crystal.
-
-
Method Detail
-
getMoleculeSet
public IAtomContainerSet getMoleculeSet()
Returns the MoleculeSet of this ChemModel.- Specified by:
getMoleculeSetin interfaceIChemModel- Returns:
- The MoleculeSet of this ChemModel
- See Also:
setMoleculeSet(org.openscience.cdk.interfaces.IAtomContainerSet)
-
setMoleculeSet
public void setMoleculeSet(IAtomContainerSet setOfMolecules)
Sets the MoleculeSet of this ChemModel.- Specified by:
setMoleculeSetin interfaceIChemModel- Parameters:
setOfMolecules- the content of this model- See Also:
getMoleculeSet()
-
getRingSet
public IRingSet getRingSet()
Returns the RingSet of this ChemModel.- Specified by:
getRingSetin interfaceIChemModel- Returns:
- the ringset of this model
- See Also:
setRingSet(org.openscience.cdk.interfaces.IRingSet)
-
setRingSet
public void setRingSet(IRingSet ringSet)
Sets the RingSet of this ChemModel.- Specified by:
setRingSetin interfaceIChemModel- Parameters:
ringSet- the content of this model- See Also:
getRingSet()
-
getCrystal
public ICrystal getCrystal()
Gets the Crystal contained in this ChemModel.- Specified by:
getCrystalin interfaceIChemModel- Returns:
- The crystal in this model
- See Also:
setCrystal(org.openscience.cdk.interfaces.ICrystal)
-
setCrystal
public void setCrystal(ICrystal crystal)
Sets the Crystal contained in this ChemModel.- Specified by:
setCrystalin interfaceIChemModel- Parameters:
crystal- the Crystal to store in this model- See Also:
getCrystal()
-
getReactionSet
public IReactionSet getReactionSet()
Gets the ReactionSet contained in this ChemModel.- Specified by:
getReactionSetin interfaceIChemModel- Returns:
- The ReactionSet in this model
- See Also:
setReactionSet(org.openscience.cdk.interfaces.IReactionSet)
-
setReactionSet
public void setReactionSet(IReactionSet sor)
Sets the ReactionSet contained in this ChemModel.- Specified by:
setReactionSetin interfaceIChemModel- Parameters:
sor- the ReactionSet to store in this model- See Also:
getReactionSet()
-
toString
public String toString()
Returns a String representation of the contents of this IChemObject.- Specified by:
toStringin interfaceIChemObject- Overrides:
toStringin classObject- Returns:
- String representation of content
-
clone
public Object clone() throws CloneNotSupportedException
Clones thisChemModeland its content.- Specified by:
clonein interfaceIChemObject- Overrides:
clonein classChemObject- Returns:
- The cloned object
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-
stateChanged
public void stateChanged(IChemObjectChangeEvent event)
Called by objects to which this object has registered as a listener.- Specified by:
stateChangedin interfaceIChemObjectListener- Parameters:
event- A change event pointing to the source of the change
-
isEmpty
public boolean isEmpty()
Returns true if this ChemModel is empty.- Specified by:
isEmptyin interfaceIChemModel- Returns:
- a boolean indicating if this model has no content
-
-