wugle.expression
Interface Commutative

All Superinterfaces:
BinaryOperator, java.lang.Cloneable, Expression, Operator
All Known Implementing Classes:
LogicBinaryOperator, Xor

public interface Commutative
extends BinaryOperator

BinaryOperator that can perform the Commutative Law.

Any BinaryOperator that can perform the Commutative Law should implement this interface. The actual implementation can be delegated to an ExpressionOperation.

Version:
0.1.3
Author:
Jacob Perkins
See Also:
ExpressionOperation

Method Summary
 void commute()
          Performs the Commutative Law.
 
Methods inherited from interface wugle.expression.BinaryOperator
getLeftChild, getRightChild, setLeftChild, setRightChild
 
Methods inherited from interface wugle.expression.Operator
setChild
 
Methods inherited from interface wugle.expression.Expression
clone, getParent, getSymbol, isEqual, setParent
 

Method Detail

commute

public void commute()
Performs the Commutative Law. This will transform p v q to q v p.

See Also:
ExpressionOperation.commute(Commutative)