コード例 #1
0
ファイル: Reaction.cs プロジェクト: carlhuth/GenXSource
 /// <summary> Sets the coefficient of the products.
 ///
 /// </summary>
 /// <param name="coefficients">An array of double's containing the coefficients of the products
 /// </param>
 /// <returns>  true if coefficients have been set.
 /// </returns>
 /// <seealso cref="getProductCoefficients">
 /// </seealso>
 public virtual bool setProductCoefficients(double[] coefficients)
 {
     notifyChanged();
     return(products.setMultipliers(coefficients));
 }
コード例 #2
0
ファイル: Reaction.cs プロジェクト: carlhuth/GenXSource
 /// <summary> Sets the coefficients of the reactants.
 ///
 /// </summary>
 /// <param name="coefficients">An array of double's containing the coefficients of the reactants
 /// </param>
 /// <returns>  true if coefficients have been set.
 /// </returns>
 /// <seealso cref="getReactantCoefficients">
 /// </seealso>
 public virtual bool setReactantCoefficients(double[] coefficients)
 {
     notifyChanged();
     return(reactants.setMultipliers(coefficients));
 }