libsbmlcs.Rule.getMath C# (CSharp) Method

getMath() public method

public getMath ( ) : ASTNode
return ASTNode
        public ASTNode getMath()
        {
            IntPtr cPtr = libsbmlPINVOKE.Rule_getMath(swigCPtr);
            ASTNode ret = (cPtr == IntPtr.Zero) ? null : new ASTNode(cPtr, false);
            return ret;
        }

Usage Example

Ejemplo n.º 1
0
    private static void printRuleMath(int n, Rule r)
    {
        string formula;

        if (r.isSetMath())
        {
            formula = libsbml.formulaToString(r.getMath());

            if (r.getVariable().Length > 0)
            {
                Console.Write("Rule " + n + ", formula: "
                                 + r.getVariable() + " = " + formula + Environment.NewLine);
            }
            else
            {
                Console.Write("Rule " + n + ", formula: "
                                 + formula + " = 0" + Environment.NewLine);
            }

        }
    }