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 ICrystal
crystal
A Crystal.protected IRingSet
ringSet
A RingSet.protected IAtomContainerSet
setOfMolecules
A MoleculeSet.protected IReactionSet
setOfReactions
A ReactionSet.
-
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 Object
clone()
Clones thisChemModel
and its content.ICrystal
getCrystal()
Gets the Crystal contained in this ChemModel.IAtomContainerSet
getMoleculeSet()
Returns the MoleculeSet of this ChemModel.IReactionSet
getReactionSet()
Gets the ReactionSet contained in this ChemModel.IRingSet
getRingSet()
Returns the RingSet of this ChemModel.boolean
isEmpty()
Returns true if this ChemModel is empty.void
setCrystal(ICrystal crystal)
Sets the Crystal contained in this ChemModel.void
setMoleculeSet(IAtomContainerSet setOfMolecules)
Sets the MoleculeSet of this ChemModel.void
setReactionSet(IReactionSet sor)
Sets the ReactionSet contained in this ChemModel.void
setRingSet(IRingSet ringSet)
Sets the RingSet of this ChemModel.void
stateChanged(IChemObjectChangeEvent event)
Called by objects to which this object has registered as a listener.String
toString()
Returns a String representation of the contents 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 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:
getMoleculeSet
in 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:
setMoleculeSet
in interfaceIChemModel
- Parameters:
setOfMolecules
- the content of this model- See Also:
getMoleculeSet()
-
getRingSet
public IRingSet getRingSet()
Returns the RingSet of this ChemModel.- Specified by:
getRingSet
in 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:
setRingSet
in interfaceIChemModel
- Parameters:
ringSet
- the content of this model- See Also:
getRingSet()
-
getCrystal
public ICrystal getCrystal()
Gets the Crystal contained in this ChemModel.- Specified by:
getCrystal
in 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:
setCrystal
in 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:
getReactionSet
in 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:
setReactionSet
in 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:
toString
in interfaceIChemObject
- Overrides:
toString
in classObject
- Returns:
- String representation of content
-
clone
public Object clone() throws CloneNotSupportedException
Clones thisChemModel
and its content.- Specified by:
clone
in interfaceIChemObject
- Overrides:
clone
in 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:
stateChanged
in 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:
isEmpty
in interfaceIChemModel
- Returns:
- a boolean indicating if this model has no content
-
-