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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ICrystalA Crystal.protected IRingSetA RingSet.protected IAtomContainerSetA MoleculeSet.protected IReactionSetA ReactionSet.Fields 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 thisChemModeland its content.Gets the Crystal contained in this ChemModel.Returns the MoleculeSet of this ChemModel.Gets the ReactionSet contained in this ChemModel.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.voidSets the ReactionSet contained in this ChemModel.voidsetRingSet(IRingSet ringSet) Sets the RingSet of this ChemModel.voidCalled by objects to which this object has registered as a listener.toString()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, 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
-
setOfMolecules
A MoleculeSet. -
setOfReactions
A ReactionSet. -
ringSet
A RingSet. -
crystal
A Crystal.
-
-
Constructor Details
-
ChemModel
public ChemModel()Constructs an new ChemModel with a null setOfMolecules.
-
-
Method Details
-
getMoleculeSet
Returns the MoleculeSet of this ChemModel.- Specified by:
getMoleculeSetin interfaceIChemModel- Returns:
- The MoleculeSet of this ChemModel
- See Also:
-
setMoleculeSet
Sets the MoleculeSet of this ChemModel.- Specified by:
setMoleculeSetin interfaceIChemModel- Parameters:
setOfMolecules- the content of this model- See Also:
-
getRingSet
Returns the RingSet of this ChemModel.- Specified by:
getRingSetin interfaceIChemModel- Returns:
- the ringset of this model
- See Also:
-
setRingSet
Sets the RingSet of this ChemModel.- Specified by:
setRingSetin interfaceIChemModel- Parameters:
ringSet- the content of this model- See Also:
-
getCrystal
Gets the Crystal contained in this ChemModel.- Specified by:
getCrystalin interfaceIChemModel- Returns:
- The crystal in this model
- See Also:
-
setCrystal
Sets the Crystal contained in this ChemModel.- Specified by:
setCrystalin interfaceIChemModel- Parameters:
crystal- the Crystal to store in this model- See Also:
-
getReactionSet
Gets the ReactionSet contained in this ChemModel.- Specified by:
getReactionSetin interfaceIChemModel- Returns:
- The ReactionSet in this model
- See Also:
-
setReactionSet
Sets the ReactionSet contained in this ChemModel.- Specified by:
setReactionSetin interfaceIChemModel- Parameters:
sor- the ReactionSet to store in this model- See Also:
-
toString
Returns a String representation of the contents of this IChemObject.- Specified by:
toStringin interfaceIChemObject- Overrides:
toStringin classObject- Returns:
- String representation of content
-
clone
Clones thisChemModeland its content.- Specified by:
clonein interfaceIChemObject- Overrides:
clonein classChemObject- Returns:
- The cloned object
- Throws:
CloneNotSupportedException- if the IChemObject cannot be cloned
-
stateChanged
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
-