Class ASTHeavisideNode
java.lang.Object
|
+----SimpleNode
|
+----ASTHeavisideNode
- public class ASTHeavisideNode
- extends SimpleNode
A node on the parse tree that calculates the Heaviside function, 1 for
argument greater than 0 and 0 otherwise.
-
ASTHeavisideNode(int)
-
-
interpret()
- Interpret (evaluate) the child of this node and replace the top
of the stack with 1 if it is greater than 0 and 0 otherwise.
ASTHeavisideNode
public ASTHeavisideNode(int id)
interpret
public void interpret()
- Interpret (evaluate) the child of this node and replace the top
of the stack with 1 if it is greater than 0 and 0 otherwise.
- Overrides:
- interpret in class SimpleNode