public class DebugChemModel extends ChemModel implements IChemModel
Constructor and Description |
---|
DebugChemModel() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IChemObjectListener col)
Use this to add yourself to this IChemObject as a listener.
|
Object |
clone()
Clones this
ChemModel and its content. |
IChemObjectBuilder |
getBuilder()
Returns a
IChemObjectBuilder for the data classes that extend
this class. |
ICrystal |
getCrystal()
Gets the Crystal contained in this ChemModel.
|
boolean |
getFlag(int flag_type)
Returns the value of some flag.
|
boolean[] |
getFlags()
Returns the whole set of flags.
|
String |
getID()
Returns the identifier (ID) of this object.
|
int |
getListenerCount()
Returns the number of ChemObjectListeners registered with this object.
|
IMoleculeSet |
getMoleculeSet()
Returns the MoleculeSet of this ChemModel.
|
Map<Object,Object> |
getProperties()
Returns a Map with the IChemObject's properties.
|
Object |
getProperty(Object description)
Returns a property for the IChemObject.
|
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 |
notifyChanged()
This should be triggered by an method that changes the content of an object
to that the registered listeners can react to it.
|
void |
notifyChanged(IChemObjectChangeEvent evt)
This should be triggered by an method that changes the content of an object
to that the registered listeners can react to it.
|
void |
removeListener(IChemObjectListener col)
Use this to remove a ChemObjectListener from the ListenerList of this
IChemObject.
|
void |
removeProperty(Object description)
Removes a property for a IChemObject.
|
void |
setCrystal(ICrystal crystal)
Sets the Crystal contained in this ChemModel.
|
void |
setFlag(int flag_type,
boolean flag_value)
Sets the value of some flag.
|
void |
setFlags(boolean[] flagsNew)
Sets the whole set of flags.
|
void |
setID(String identifier)
Sets the identifier (ID) of this object.
|
void |
setMoleculeSet(IMoleculeSet setOfMolecules)
Sets the MoleculeSet of this ChemModel.
|
void |
setProperties(Map<Object,Object> properties)
Sets the properties of this object.
|
void |
setProperty(Object description,
Object property)
Sets a property for a IChemObject.
|
void |
setReactionSet(IReactionSet sor)
Sets the ReactionSet contained in this ChemModel.
|
void |
setRingSet(IRingSet ringSet)
Sets the RingSet of this ChemModel.
|
stateChanged, toString
compare, getNotification, setNotification, shallowCopy
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNotification, setNotification, toString
public void addListener(IChemObjectListener col)
ChemObject
addListener
in interface IChemObject
addListener
in class ChemObject
col
- the ChemObjectListenerChemObject.removeListener(org.openscience.cdk.interfaces.IChemObjectListener)
public int getListenerCount()
ChemObject
getListenerCount
in interface IChemObject
getListenerCount
in class ChemObject
public void removeListener(IChemObjectListener col)
ChemObject
removeListener
in interface IChemObject
removeListener
in class ChemObject
col
- The ChemObjectListener to be removedChemObject.addListener(org.openscience.cdk.interfaces.IChemObjectListener)
public void notifyChanged()
ChemObject
notifyChanged
in interface IChemObject
notifyChanged
in class ChemObject
public void notifyChanged(IChemObjectChangeEvent evt)
ChemObject
notifyChanged
in interface IChemObject
notifyChanged
in class ChemObject
evt
- A ChemObjectChangeEvent pointing to the source of where
the change happendpublic void setProperty(Object description, Object property)
ChemObject
setProperty
in interface IChemObject
setProperty
in class ChemObject
description
- An object description of the property (most likely a
unique string)property
- An object with the property itselfChemObject.getProperty(java.lang.Object)
,
ChemObject.removeProperty(java.lang.Object)
public void removeProperty(Object description)
ChemObject
removeProperty
in interface IChemObject
removeProperty
in class ChemObject
description
- The object description of the property (most likely a
unique string)ChemObject.setProperty(java.lang.Object, java.lang.Object)
,
ChemObject.getProperty(java.lang.Object)
public Object getProperty(Object description)
ChemObject
getProperty
in interface IChemObject
getProperty
in class ChemObject
description
- An object description of the property (most likely a
unique string)ChemObject.setProperty(java.lang.Object, java.lang.Object)
,
ChemObject.removeProperty(java.lang.Object)
public Map<Object,Object> getProperties()
ChemObject
getProperties
in interface IChemObject
getProperties
in class ChemObject
ChemObject.setProperties(java.util.Map<java.lang.Object, java.lang.Object>)
public String getID()
ChemObject
getID
in interface IChemObject
getID
in class ChemObject
ChemObject.setID(java.lang.String)
public void setID(String identifier)
ChemObject
setID
in interface IChemObject
setID
in class ChemObject
identifier
- a String representing the ID valueChemObject.getID()
public void setFlag(int flag_type, boolean flag_value)
ChemObject
setFlag
in interface IChemObject
setFlag
in class ChemObject
flag_type
- Flag to setflag_value
- Value to assign to flagChemObject.getFlag(int)
public boolean getFlag(int flag_type)
ChemObject
getFlag
in interface IChemObject
getFlag
in class ChemObject
flag_type
- Flag to retrieve the value offlag_type
is setChemObject.setFlag(int, boolean)
public void setProperties(Map<Object,Object> properties)
ChemObject
setProperties
in interface IChemObject
setProperties
in class ChemObject
properties
- a Hashtable specifying the property valuesChemObject.getProperties()
public void setFlags(boolean[] flagsNew)
ChemObject
setFlags
in interface IChemObject
setFlags
in class ChemObject
flagsNew
- the new flags.ChemObject.getFlags()
public boolean[] getFlags()
ChemObject
getFlags
in interface IChemObject
getFlags
in class ChemObject
ChemObject.setFlags(boolean[])
public Object clone() throws CloneNotSupportedException
ChemModel
ChemModel
and its content.clone
in interface IChemObject
clone
in class ChemModel
CloneNotSupportedException
- if the IChemObject cannot be clonedpublic IChemObjectBuilder getBuilder()
ICDKObject
IChemObjectBuilder
for the data classes that extend
this class.getBuilder
in interface ICDKObject
getBuilder
in class ChemObject
IChemObjectBuilder
matching this ICDKObject
public IMoleculeSet getMoleculeSet()
ChemModel
getMoleculeSet
in interface IChemModel
getMoleculeSet
in class ChemModel
ChemModel.setMoleculeSet(org.openscience.cdk.interfaces.IMoleculeSet)
public void setMoleculeSet(IMoleculeSet setOfMolecules)
ChemModel
setMoleculeSet
in interface IChemModel
setMoleculeSet
in class ChemModel
setOfMolecules
- the content of this modelChemModel.getMoleculeSet()
public IRingSet getRingSet()
ChemModel
getRingSet
in interface IChemModel
getRingSet
in class ChemModel
ChemModel.setRingSet(org.openscience.cdk.interfaces.IRingSet)
public void setRingSet(IRingSet ringSet)
ChemModel
setRingSet
in interface IChemModel
setRingSet
in class ChemModel
ringSet
- the content of this modelChemModel.getRingSet()
public ICrystal getCrystal()
ChemModel
getCrystal
in interface IChemModel
getCrystal
in class ChemModel
ChemModel.setCrystal(org.openscience.cdk.interfaces.ICrystal)
public void setCrystal(ICrystal crystal)
ChemModel
setCrystal
in interface IChemModel
setCrystal
in class ChemModel
crystal
- the Crystal to store in this modelChemModel.getCrystal()
public IReactionSet getReactionSet()
ChemModel
getReactionSet
in interface IChemModel
getReactionSet
in class ChemModel
ChemModel.setReactionSet(org.openscience.cdk.interfaces.IReactionSet)
public void setReactionSet(IReactionSet sor)
ChemModel
setReactionSet
in interface IChemModel
setReactionSet
in class ChemModel
sor
- the ReactionSet to store in this modelChemModel.getReactionSet()
@TestMethod(value="testIsEmpty_MoleculeSet,testIsEmpty_RingSet,testIsEmpty_Crystal,testIsEmpty_ReactionSet") public boolean isEmpty()
IChemModel
isEmpty
in interface IChemModel
isEmpty
in class ChemModel