libsbmlcs.ASTNode.getCharacter C# (CSharp) Method

getCharacter() public method

public getCharacter ( ) : char
return char
        public char getCharacter()
        {
            char ret = libsbmlPINVOKE.ASTNode_getCharacter(swigCPtr);
            return ret;
        }

Usage Example

Esempio n. 1
0
 public void test_ValidASTNode_setType()
 {
     ASTNode n = new ASTNode();
       int i = n.setType(libsbml.AST_REAL);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( n.getType() == libsbml.AST_REAL );
       i = n.setType(libsbml.AST_PLUS);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( n.getType() == libsbml.AST_PLUS );
       assertTrue( n.getCharacter() ==  '+'  );
       i = n.setType(libsbml.AST_FUNCTION_ARCCOSH);
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( n.getType() == libsbml.AST_FUNCTION_ARCCOSH );
       i = n.setType(libsbml.AST_UNKNOWN);
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertTrue( n.getType() == libsbml.AST_UNKNOWN );
       n = null;
 }
All Usage Examples Of libsbmlcs.ASTNode::getCharacter