isFunction() public method

public isFunction ( ) : bool
return bool
Beispiel #1
0
        private static ASTNode setDelayType(ASTNode anASTNode)
        {
            long aNumChildren = anASTNode.getNumChildren();

            if ( aNumChildren == 2 )
            {
                if ( anASTNode.isFunction() == true && anASTNode.getName() == "delay" )
                    anASTNode.setType( libsbml.libsbml.AST_FUNCTION_DELAY );

                setDelayType(anASTNode.getLeftChild());
                setDelayType(anASTNode.getRightChild());
            }
            else if ( aNumChildren == 1 )
                setDelayType( anASTNode.getLeftChild() );

            return anASTNode;
        }