/// <summary> Sets the coefficient of a a product to a given value. /// /// </summary> /// <param name="product"> Product for which the coefficient is set /// </param> /// <param name="coefficient">The new coefficient for the given product /// </param> /// <returns> true if Molecule has been found and stoichiometry has been set. /// </returns> /// <seealso cref="getProductCoefficient"> /// </seealso> public virtual bool setProductCoefficient(IMolecule product, double coefficient) { notifyChanged(); return(products.setMultiplier(product, coefficient)); }
/// <summary> Sets the coefficient of a a reactant to a given value. /// /// </summary> /// <param name="reactant"> Reactant for which the coefficient is set /// </param> /// <param name="coefficient">The new coefficient for the given reactant /// </param> /// <returns> true if Molecule has been found and stoichiometry has been set. /// </returns> /// <seealso cref="getReactantCoefficient"> /// </seealso> public virtual bool setReactantCoefficient(IMolecule reactant, double coefficient) { notifyChanged(); return(reactants.setMultiplier(reactant, coefficient)); }