libsbmlcs.ASTNode.canonicalize C# (CSharp) Method

canonicalize() public method

public canonicalize ( ) : bool
return bool
        public bool canonicalize()
        {
            bool ret = libsbmlPINVOKE.ASTNode_canonicalize(swigCPtr);
            return ret;
        }

Usage Example

Esempio n. 1
0
 public void test_ASTNode_canonicalizeRelational()
 {
     ASTNode n = new  ASTNode(libsbml.AST_FUNCTION);
       n.setName( "eq");
       assertTrue( n.getType() == libsbml.AST_FUNCTION );
       n.canonicalize();
       assertTrue( n.getType() == libsbml.AST_RELATIONAL_EQ );
       n.setType(libsbml.AST_FUNCTION);
       n.setName( "geq");
       assertTrue( n.getType() == libsbml.AST_FUNCTION );
       n.canonicalize();
       assertTrue( n.getType() == libsbml.AST_RELATIONAL_GEQ );
       n.setType(libsbml.AST_FUNCTION);
       n.setName( "gt");
       assertTrue( n.getType() == libsbml.AST_FUNCTION );
       n.canonicalize();
       assertTrue( n.getType() == libsbml.AST_RELATIONAL_GT );
       n.setType(libsbml.AST_FUNCTION);
       n.setName( "leq");
       assertTrue( n.getType() == libsbml.AST_FUNCTION );
       n.canonicalize();
       assertTrue( n.getType() == libsbml.AST_RELATIONAL_LEQ );
       n.setType(libsbml.AST_FUNCTION);
       n.setName( "lt");
       assertTrue( n.getType() == libsbml.AST_FUNCTION );
       n.canonicalize();
       assertTrue( n.getType() == libsbml.AST_RELATIONAL_LT );
       n.setType(libsbml.AST_FUNCTION);
       n.setName( "neq");
       assertTrue( n.getType() == libsbml.AST_FUNCTION );
       n.canonicalize();
       assertTrue( n.getType() == libsbml.AST_RELATIONAL_NEQ );
       n.setType(libsbml.AST_FUNCTION);
       n = null;
 }
All Usage Examples Of libsbmlcs.ASTNode::canonicalize