public class DebugChemModel extends ChemModel implements IChemModel
crystal, ringSet, setOfMolecules, setOfReactions| 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.
|
void |
addProperties(Map<Object,Object> properties)
Sets the properties of this object.
|
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 flagType)
Returns the value of a given 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.
|
IAtomContainerSet |
getMoleculeSet()
Returns the MoleculeSet of this ChemModel.
|
Map<Object,Object> |
getProperties()
Returns a Map with the IChemObject's properties.
|
<T> T |
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 flagType,
boolean flagValue)
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(IAtomContainerSet setOfMolecules)
Sets the MoleculeSet of this ChemModel.
|
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, toStringcompare, getFlagValue, getNotification, getProperty, setNotification, setProperties, shallowCopyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFlagValue, getNotification, getProperty, setNotification, setProperties, toStringpublic void addListener(IChemObjectListener col)
addListener in interface IChemObjectaddListener in class ChemObjectcol - the ChemObjectListenerChemObject.removeListener(org.openscience.cdk.interfaces.IChemObjectListener)public int getListenerCount()
getListenerCount in interface IChemObjectgetListenerCount in class ChemObjectpublic void removeListener(IChemObjectListener col)
removeListener in interface IChemObjectremoveListener in class ChemObjectcol - The ChemObjectListener to be removedChemObject.addListener(org.openscience.cdk.interfaces.IChemObjectListener)public void notifyChanged()
notifyChanged in interface IChemObjectnotifyChanged in class ChemObjectpublic void notifyChanged(IChemObjectChangeEvent evt)
notifyChanged in interface IChemObjectnotifyChanged in class ChemObjectevt - A ChemObjectChangeEvent pointing to the source of where
the change happenedpublic void setProperty(Object description, Object property)
setProperty in interface IChemObjectsetProperty in class ChemObjectdescription - 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)
removeProperty in interface IChemObjectremoveProperty in class ChemObjectdescription - 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 <T> T getProperty(Object description)
getProperty in interface IChemObjectgetProperty in class ChemObjectT - generic return typedescription - 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()
getProperties in interface IChemObjectgetProperties in class ChemObjectChemObject.addProperties(java.util.Map<java.lang.Object, java.lang.Object>)public String getID()
getID in interface IChemObjectgetID in class ChemObjectChemObject.setID(java.lang.String)public void setID(String identifier)
setID in interface IChemObjectsetID in class ChemObjectidentifier - a String representing the ID valueChemObject.getID()public void setFlag(int flagType,
boolean flagValue)
CDKConstants.ISAROMATIC
or CDKConstants.VISITED). The flags are
intrinsic internal properties and should not be used to store custom
values, please use IChemObject.setProperty(Object, Object).
// set this chem object to be aromatic
chemObject.setFlag(CDKConstants.ISAROMATIC, Boolean.TRUE);
// ...
// indicate we have visited this chem object
chemObject.setFlag(CDKConstants.VISITED, Boolean.TRUE);
setFlag in interface IChemObjectsetFlag in class ChemObjectflagType - flag to set the value forflagValue - value to assign to flagIChemObject.getFlag(int),
CDKConstantspublic boolean getFlag(int flagType)
CDKConstants.ISAROMATIC).
if(chemObject.getFlag(CDKConstants.ISAROMATIC)){
// handle aromatic flag on this chem object
}
getFlag in interface IChemObjectgetFlag in class ChemObjectflagType - flag to retrieve the value offlag_type is setIChemObject.setFlag(int, boolean),
CDKConstantspublic void addProperties(Map<Object,Object> properties)
addProperties in interface IChemObjectaddProperties in class ChemObjectproperties - a Hashtable specifying the property valuesChemObject.getProperties()public void setFlags(boolean[] flagsNew)
setFlags in interface IChemObjectsetFlags in class ChemObjectflagsNew - the new flags.ChemObject.getFlags()public boolean[] getFlags()
getFlags in interface IChemObjectgetFlags in class ChemObjectChemObject.setFlags(boolean[])public Object clone() throws CloneNotSupportedException
ChemModel and its content.clone in interface IChemObjectclone in class ChemModelCloneNotSupportedException - if the IChemObject cannot be clonedpublic IChemObjectBuilder getBuilder()
IChemObjectBuilder for the data classes that extend
this class.getBuilder in interface ICDKObjectgetBuilder in class ChemObjectIChemObjectBuilder matching this ICDKObjectpublic IAtomContainerSet getMoleculeSet()
getMoleculeSet in interface IChemModelgetMoleculeSet in class ChemModelChemModel.setMoleculeSet(org.openscience.cdk.interfaces.IAtomContainerSet)public void setMoleculeSet(IAtomContainerSet setOfMolecules)
setMoleculeSet in interface IChemModelsetMoleculeSet in class ChemModelsetOfMolecules - the content of this modelChemModel.getMoleculeSet()public IRingSet getRingSet()
getRingSet in interface IChemModelgetRingSet in class ChemModelChemModel.setRingSet(org.openscience.cdk.interfaces.IRingSet)public void setRingSet(IRingSet ringSet)
setRingSet in interface IChemModelsetRingSet in class ChemModelringSet - the content of this modelChemModel.getRingSet()public ICrystal getCrystal()
getCrystal in interface IChemModelgetCrystal in class ChemModelChemModel.setCrystal(org.openscience.cdk.interfaces.ICrystal)public void setCrystal(ICrystal crystal)
setCrystal in interface IChemModelsetCrystal in class ChemModelcrystal - the Crystal to store in this modelChemModel.getCrystal()public IReactionSet getReactionSet()
getReactionSet in interface IChemModelgetReactionSet in class ChemModelChemModel.setReactionSet(org.openscience.cdk.interfaces.IReactionSet)public void setReactionSet(IReactionSet sor)
setReactionSet in interface IChemModelsetReactionSet in class ChemModelsor - the ReactionSet to store in this modelChemModel.getReactionSet()public boolean isEmpty()
isEmpty in interface IChemModelisEmpty in class ChemModelCopyright © 2021. All rights reserved.