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.


Constructor Index

 o ASTHeavisideNode(int)

Method Index

 o 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.

Constructors

 o ASTHeavisideNode
 public ASTHeavisideNode(int id)

Methods

 o 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