public class DebugReaction extends Reaction implements IReaction
IReaction.Directionagents, growArraySize, map, mappingCount, products, reactants| Constructor and Description |
|---|
DebugReaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAgent(IAtomContainer agent)
Adds an agent to this reaction.
|
void |
addListener(IChemObjectListener col)
Use this to add yourself to this IChemObject as a listener.
|
void |
addProduct(IAtomContainer product)
Adds a product to this reaction.
|
void |
addProduct(IAtomContainer product,
Double coefficient)
Adds a product to this reaction.
|
void |
addProperties(Map<Object,Object> properties)
Sets the properties of this object.
|
void |
addReactant(IAtomContainer reactant)
Adds a reactant to this reaction.
|
void |
addReactant(IAtomContainer reactant,
Double coefficient)
Adds a reactant to this reaction with a stoichiometry coefficient.
|
Object |
clone()
Clones this
Reaction and its content. |
IAtomContainerSet |
getAgents()
Returns a MoleculeSet containing the agents in this reaction.
|
IChemObjectBuilder |
getBuilder()
Returns a
IChemObjectBuilder for the data classes that extend
this class. |
IReaction.Direction |
getDirection()
Returns the direction of the reaction.
|
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.
|
Double |
getProductCoefficient(IAtomContainer product)
Returns the stoichiometry coefficient of the given product.
|
Double[] |
getProductCoefficients()
Returns an array of double with the stoichiometric coefficients
of the products.
|
int |
getProductCount()
Returns the number of products in this reaction.
|
IAtomContainerSet |
getProducts()
Returns a MoleculeSet containing the products of this reaction.
|
Map<Object,Object> |
getProperties()
Returns a Map with the IChemObject's properties.
|
<T> T |
getProperty(Object description)
Returns a property for the IChemObject.
|
Double |
getReactantCoefficient(IAtomContainer reactant)
Returns the stoichiometry coefficient of the given reactant.
|
Double[] |
getReactantCoefficients()
Returns an array of double with the stoichiometric coefficients
of the reactants.
|
int |
getReactantCount()
Returns the number of reactants in this reaction.
|
IAtomContainerSet |
getReactants()
Returns a MoleculeSet containing the reactants in this reaction.
|
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 |
setDirection(IReaction.Direction direction)
Sets the direction of the reaction.
|
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.
|
boolean |
setProductCoefficient(IAtomContainer product,
Double coefficient)
Sets the coefficient of a a product to a given value.
|
boolean |
setProductCoefficients(Double[] coefficients)
Sets the coefficient of the products.
|
void |
setProducts(IAtomContainerSet products)
Assigns a MoleculeSet to the products of this reaction.
|
void |
setProperty(Object description,
Object property)
Sets a property for a IChemObject.
|
boolean |
setReactantCoefficient(IAtomContainer reactant,
Double coefficient)
Sets the coefficient of a a reactant to a given value.
|
boolean |
setReactantCoefficients(Double[] coefficients)
Sets the coefficients of the reactants.
|
void |
setReactants(IAtomContainerSet reactants)
Assigns a MoleculeSet to the reactants in this reaction.
|
addMapping, getMapping, getMappingCount, mappings, removeMapping, toStringcompare, getFlagValue, getNotification, getProperty, setNotification, setProperties, shallowCopyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMapping, getMapping, getMappingCount, mappings, removeMappinggetFlagValue, 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
Reaction and its content.clone in interface IChemObjectclone in class ReactionCloneNotSupportedException - 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 int getReactantCount()
getReactantCount in interface IReactiongetReactantCount in class Reactionpublic int getProductCount()
getProductCount in interface IReactiongetProductCount in class Reactionpublic IAtomContainerSet getReactants()
getReactants in interface IReactiongetReactants in class ReactionIReaction.setReactants(org.openscience.cdk.interfaces.IAtomContainerSet)public void setReactants(IAtomContainerSet reactants)
setReactants in interface IReactionsetReactants in class Reactionreactants - The new set of reactantsReaction.getReactants()public IAtomContainerSet getProducts()
getProducts in interface IReactiongetProducts in class ReactionIReaction.setProducts(org.openscience.cdk.interfaces.IAtomContainerSet)public void setProducts(IAtomContainerSet products)
setProducts in interface IReactionsetProducts in class Reactionproducts - The new set of productsReaction.getProducts()public IAtomContainerSet getAgents()
getAgents in interface IReactiongetAgents in class ReactionReaction.addAgent(org.openscience.cdk.interfaces.IAtomContainer)public void addReactant(IAtomContainer reactant)
addReactant in interface IReactionaddReactant in class Reactionreactant - Molecule added as reactant to this reactionReaction.getReactants()public void addAgent(IAtomContainer agent)
addAgent in interface IReactionaddAgent in class Reactionagent - Molecule added as agent to this reactionReaction.getAgents()public void addReactant(IAtomContainer reactant, Double coefficient)
addReactant in interface IReactionaddReactant in class Reactionreactant - Molecule added as reactant to this reactioncoefficient - Stoichiometry coefficient for this moleculeReaction.getReactants()public void addProduct(IAtomContainer product)
addProduct in interface IReactionaddProduct in class Reactionproduct - Molecule added as product to this reactionReaction.getProducts()public void addProduct(IAtomContainer product, Double coefficient)
addProduct in interface IReactionaddProduct in class Reactionproduct - Molecule added as product to this reactioncoefficient - Stoichiometry coefficient for this moleculeReaction.getProducts()public Double getReactantCoefficient(IAtomContainer reactant)
getReactantCoefficient in interface IReactiongetReactantCoefficient in class Reactionreactant - Reactant for which the coefficient is returned.Reaction.setReactantCoefficient(org.openscience.cdk.interfaces.IAtomContainer, java.lang.Double)public Double getProductCoefficient(IAtomContainer product)
getProductCoefficient in interface IReactiongetProductCoefficient in class Reactionproduct - Product for which the coefficient is returned.Reaction.setProductCoefficient(org.openscience.cdk.interfaces.IAtomContainer, java.lang.Double)public boolean setReactantCoefficient(IAtomContainer reactant, Double coefficient)
setReactantCoefficient in interface IReactionsetReactantCoefficient in class Reactionreactant - Reactant for which the coefficient is setcoefficient - The new coefficient for the given reactantReaction.getReactantCoefficient(org.openscience.cdk.interfaces.IAtomContainer)public boolean setProductCoefficient(IAtomContainer product, Double coefficient)
setProductCoefficient in interface IReactionsetProductCoefficient in class Reactionproduct - Product for which the coefficient is setcoefficient - The new coefficient for the given productReaction.getProductCoefficient(org.openscience.cdk.interfaces.IAtomContainer)public Double[] getReactantCoefficients()
getReactantCoefficients in interface IReactiongetReactantCoefficients in class ReactionReaction.setReactantCoefficients(java.lang.Double[])public Double[] getProductCoefficients()
getProductCoefficients in interface IReactiongetProductCoefficients in class ReactionReaction.setProductCoefficients(java.lang.Double[])public boolean setReactantCoefficients(Double[] coefficients)
setReactantCoefficients in interface IReactionsetReactantCoefficients in class Reactioncoefficients - An array of double's containing the coefficients of the reactantsReaction.getReactantCoefficients()public boolean setProductCoefficients(Double[] coefficients)
setProductCoefficients in interface IReactionsetProductCoefficients in class Reactioncoefficients - An array of double's containing the coefficients of the productsReaction.getProductCoefficients()public void setDirection(IReaction.Direction direction)
setDirection in interface IReactionsetDirection in class Reactiondirection - The new reaction directionReaction.getDirection()public IReaction.Direction getDirection()
getDirection in interface IReactiongetDirection in class ReactionIReaction.Direction,
Reaction.setDirection(org.openscience.cdk.interfaces.IReaction.Direction)Copyright © 2021. All rights reserved.