public interface IReaction extends IChemObject
The class mostly represents abstract reactions, such as 2D diagrams, and is not intended to represent reaction trajectories. Such can better be represented with a ChemSequence.
| Modifier and Type | Interface and Description |
|---|---|
static class |
IReaction.Direction
Permissible reaction directions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAgent(IAtomContainer agent)
Adds an agent to this reaction.
|
void |
addMapping(IMapping mapping)
Adds a mapping between the reactant and product side to this
Reaction.
|
void |
addProduct(IAtomContainer product)
Adds a product to this reaction.
|
void |
addProduct(IAtomContainer product,
Double coefficient)
Adds a product to this reaction.
|
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.
|
IAtomContainerSet |
getAgents()
Returns a IAtomContaineSet containing the agents in this reaction.
|
IReaction.Direction |
getDirection()
Returns the
IReaction.Direction of the reaction. |
IMapping |
getMapping(int pos)
Retrieves a mapping between the reactant and product side to this
Reaction.
|
int |
getMappingCount()
Get the number of mappings between the reactant and product side to this
Reaction.
|
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 IAtomContaineSet containing the products of this reaction.
|
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 IAtomContaineSet containing the reactants in this reaction.
|
Iterable<IMapping> |
mappings()
Returns the mappings between the reactant and the product side.
|
void |
removeMapping(int pos)
Removes a mapping between the reactant and product side to this
Reaction.
|
void |
setDirection(IReaction.Direction direction)
Sets the direction of the reaction.
|
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 IAtomContaineSet to the products of this reaction.
|
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 IAtomContaineSet to the reactants in this reaction.
|
addListener, addProperties, clone, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toStringgetBuilderint getReactantCount()
int getProductCount()
IAtomContainerSet getReactants()
setReactants(org.openscience.cdk.interfaces.IAtomContainerSet)void setReactants(IAtomContainerSet reactants)
reactants - The new set of reactantsgetReactants()IAtomContainerSet getProducts()
setProducts(org.openscience.cdk.interfaces.IAtomContainerSet)void setProducts(IAtomContainerSet products)
products - The new set of productsgetProducts()IAtomContainerSet getAgents()
addAgent(org.openscience.cdk.interfaces.IAtomContainer)Iterable<IMapping> mappings()
Iterable to the Mappings.addMapping(org.openscience.cdk.interfaces.IMapping)void addReactant(IAtomContainer reactant)
reactant - Molecule added as reactant to this reactiongetReactants()void addAgent(IAtomContainer agent)
agent - Molecule added as agent to this reactiongetAgents()void addReactant(IAtomContainer reactant, Double coefficient)
reactant - Molecule added as reactant to this reactioncoefficient - Stoichiometry coefficient for this moleculegetReactants()void addProduct(IAtomContainer product)
product - Molecule added as product to this reactiongetProducts()void addProduct(IAtomContainer product, Double coefficient)
product - Molecule added as product to this reactioncoefficient - Stoichiometry coefficient for this moleculegetProducts()Double getReactantCoefficient(IAtomContainer reactant)
reactant - Reactant for which the coefficient is returned.setReactantCoefficient(org.openscience.cdk.interfaces.IAtomContainer, java.lang.Double)Double getProductCoefficient(IAtomContainer product)
product - Product for which the coefficient is returned.setProductCoefficient(org.openscience.cdk.interfaces.IAtomContainer, java.lang.Double)boolean setReactantCoefficient(IAtomContainer reactant, Double coefficient)
reactant - Reactant for which the coefficient is setcoefficient - The new coefficient for the given reactantgetReactantCoefficient(org.openscience.cdk.interfaces.IAtomContainer)boolean setProductCoefficient(IAtomContainer product, Double coefficient)
product - Product for which the coefficient is setcoefficient - The new coefficient for the given productgetProductCoefficient(org.openscience.cdk.interfaces.IAtomContainer)Double[] getReactantCoefficients()
setReactantCoefficients(java.lang.Double[])Double[] getProductCoefficients()
setProductCoefficients(java.lang.Double[])boolean setReactantCoefficients(Double[] coefficients)
coefficients - An array of double's containing the coefficients of the reactantsgetReactantCoefficients()boolean setProductCoefficients(Double[] coefficients)
coefficients - An array of double's containing the coefficients of the productsgetProductCoefficients()void setDirection(IReaction.Direction direction)
direction - The new reaction directiongetDirection()IReaction.Direction getDirection()
IReaction.Direction of the reaction.setDirection(Direction)void addMapping(IMapping mapping)
mapping - Mapping to add.mappings()void removeMapping(int pos)
pos - Position of the Mapping to remove.mappings()IMapping getMapping(int pos)
pos - Position of Mapping to get.int getMappingCount()
Copyright © 2017. All rights reserved.