libsbml.EventAssignment.getVariable C# (CSharp) Method

getVariable() public method

public getVariable ( ) : string
return string
        public string getVariable()
        {
            string ret = libsbmlPINVOKE.EventAssignment_getVariable(swigCPtr);
            return ret;
        }

Usage Example

示例#1
0
 public void test_EventAssignment_copyConstructor()
 {
     EventAssignment o1 = new EventAssignment(2,4);
       o1.setVariable("c2");
       assertTrue( o1.getVariable() ==  "c2" );
       ASTNode node = new ASTNode(libsbml.AST_CONSTANT_PI);
       o1.setMath(node);
       node = null;
       assertTrue( o1.getMath() != null );
       EventAssignment o2 = new EventAssignment(o1);
       assertTrue( o2.getVariable() ==  "c2" );
       assertTrue( o2.getMath() != null );
       assertTrue( o2.getParentSBMLObject() == o1.getParentSBMLObject() );
       o2 = null;
       o1 = null;
 }