libsbml.StoichiometryMath.setMath C# (CSharp) Method

setMath() public method

public setMath ( ASTNode math ) : int
math ASTNode
return int
        public int setMath(ASTNode math)
        {
            int ret = libsbmlPINVOKE.StoichiometryMath_setMath(swigCPtr, ASTNode.getCPtr(math));
            return ret;
        }

Usage Example

 public void test_SpeciesReference_setStoichiometryMath()
 {
     ASTNode math = libsbml.parseFormula("k3 / k2");
       StoichiometryMath stoich = new  StoichiometryMath(2,4);
       stoich.setMath(math);
       StoichiometryMath math1;
       string formula;
       SR.setStoichiometryMath(stoich);
       math1 = SR.getStoichiometryMath();
       assertTrue( math1 != null );
       formula = libsbml.formulaToString(math1.getMath());
       assertTrue( formula != null );
       assertTrue((  "k3 / k2" == formula ));
       assertEquals( true, SR.isSetStoichiometryMath() );
 }
All Usage Examples Of libsbml.StoichiometryMath::setMath