libsbmlcs.Model.addRule C# (CSharp) Method

addRule() public method

public addRule ( Rule r ) : int
r Rule
return int
        public int addRule(Rule r)
        {
            int ret = libsbmlPINVOKE.Model_addRule(swigCPtr, Rule.getCPtr(r));
            return ret;
        }

Usage Example

コード例 #1
0
 public void test_Rule_parent_add()
 {
     Rule ia = new RateRule(2,4);
       ia.setVariable("a");
       ia.setMath(libsbml.parseFormula("9"));
       Model m = new Model(2,4);
       m.addRule(ia);
       ia = null;
       ListOf lo = m.getListOfRules();
       assertTrue( lo == m.getRule(0).getParentSBMLObject() );
       assertTrue( m == lo.getParentSBMLObject() );
 }
All Usage Examples Of libsbmlcs.Model::addRule
Model