public class ChemModel extends ChemObject implements Serializable, IChemModel, IChemObjectListener, Cloneable
Modifier and Type | Field and Description |
---|---|
protected ICrystal |
crystal
A Crystal.
|
protected IRingSet |
ringSet
A RingSet.
|
protected IAtomContainerSet |
setOfMolecules
A MoleculeSet.
|
protected IReactionSet |
setOfReactions
A ReactionSet.
|
Constructor and Description |
---|
ChemModel()
Constructs an new ChemModel with a null setOfMolecules.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this
ChemModel 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.
|
addListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty
getBuilder
protected IAtomContainerSet setOfMolecules
protected IReactionSet setOfReactions
protected IRingSet ringSet
protected ICrystal crystal
public ChemModel()
public IAtomContainerSet getMoleculeSet()
getMoleculeSet
in interface IChemModel
setMoleculeSet(org.openscience.cdk.interfaces.IAtomContainerSet)
public void setMoleculeSet(IAtomContainerSet setOfMolecules)
setMoleculeSet
in interface IChemModel
setOfMolecules
- the content of this modelgetMoleculeSet()
public IRingSet getRingSet()
getRingSet
in interface IChemModel
setRingSet(org.openscience.cdk.interfaces.IRingSet)
public void setRingSet(IRingSet ringSet)
setRingSet
in interface IChemModel
ringSet
- the content of this modelgetRingSet()
public ICrystal getCrystal()
getCrystal
in interface IChemModel
setCrystal(org.openscience.cdk.interfaces.ICrystal)
public void setCrystal(ICrystal crystal)
setCrystal
in interface IChemModel
crystal
- the Crystal to store in this modelgetCrystal()
public IReactionSet getReactionSet()
getReactionSet
in interface IChemModel
setReactionSet(org.openscience.cdk.interfaces.IReactionSet)
public void setReactionSet(IReactionSet sor)
setReactionSet
in interface IChemModel
sor
- the ReactionSet to store in this modelgetReactionSet()
public String toString()
toString
in interface IChemObject
toString
in class Object
public Object clone() throws CloneNotSupportedException
ChemModel
and its content.clone
in interface IChemObject
clone
in class ChemObject
CloneNotSupportedException
- if the IChemObject cannot be clonedpublic void stateChanged(IChemObjectChangeEvent event)
stateChanged
in interface IChemObjectListener
event
- A change event pointing to the source of the changepublic boolean isEmpty()
isEmpty
in interface IChemModel
Copyright © 2021. All rights reserved.