Example #1
0
 public Expression(AbstractOperand root)
 {
     this.root  = root;
     this.value = 0.0f;
 }
Example #2
0
 /**
  * @param root the root to set
  */
 public void setRoot(AbstractOperand root)
 {
     this.root = root;
 }
Example #3
0
 public Expression()
 {
     this.root  = null;
     this.value = 0.0f;
 }
Example #4
0
 /**
  * @param right the right to set
  */
 public void setRight(AbstractOperand right)
 {
     this.right = right;
 }
Example #5
0
 /**
  * @param left the left to set
  */
 public void setLeft(AbstractOperand left)
 {
     this.left = left;
 }
Example #6
0
 public BinaryOperand()
 {
     this.left  = null;
     this.right = null;
 }
Example #7
0
 public BinaryOperand(char op, AbstractOperand l, AbstractOperand r)
 {
     this.op    = op;
     this.left  = l;
     this.right = r;
 }