wugle.expression
Interface BinaryOperator

All Superinterfaces:
java.lang.Cloneable, Expression, Operator
All Known Subinterfaces:
Associative, Commutative, Distributive, Dominatable, Idempotent, Identity, ImpliesRule, Tautology, XorRule
All Known Implementing Classes:
AbstractBinaryOperator, Implies, LogicBinaryOperator, Or, Xor

public interface BinaryOperator
extends Operator

Operator with two children.

A BinaryOperator is an Operator that can have two child Expressions. In a tree structure, one child will be to the left and the other to the right.

Version:
0.1.3
Author:
Jacob Perkins

Method Summary
 Expression getLeftChild()
          Gets the left child Expression.
 Expression getRightChild()
          Gets the right child Expression.
 void setLeftChild(Expression child)
          Sets the left child Expression.
 void setRightChild(Expression child)
          Sets the right child Expression.
 
Methods inherited from interface wugle.expression.Operator
setChild
 
Methods inherited from interface wugle.expression.Expression
clone, getParent, getSymbol, isEqual, setParent
 

Method Detail

getLeftChild

public Expression getLeftChild()
Gets the left child Expression.

Returns:
The left child Expression, or null if there is none
See Also:
getRightChild(), setLeftChild(Expression)

setLeftChild

public void setLeftChild(Expression child)
Sets the left child Expression.

Parameters:
child - The new left child Expression, or null for no child
See Also:
getLeftChild(), setRightChild(Expression)

getRightChild

public Expression getRightChild()
Gets the right child Expression.

Returns:
The right child Expression, or null if there is none
See Also:
getLeftChild(), setRightChild(Expression)

setRightChild

public void setRightChild(Expression child)
Sets the right child Expression.

Parameters:
child - The new right child Expression, or null for no child
See Also:
getRightChild(), setLeftChild(Expression)