wugle.expression.logic
Class Xor

java.lang.Object
  |
  +--wugle.expression.AbstractExpression
        |
        +--wugle.expression.AbstractBinaryOperator
              |
              +--wugle.expression.logic.Xor
All Implemented Interfaces:
BinaryOperator, java.lang.Cloneable, Commutative, DoubleNegatable, Expression, Operator, XorRule

public class Xor
extends AbstractBinaryOperator
implements Commutative, DoubleNegatable, XorRule

Version:
0.1.3
Author:
Jacob Perkins

Field Summary
static java.lang.String SYMBOL
           
 
Fields inherited from class wugle.expression.AbstractExpression
log, operation
 
Constructor Summary
Xor(Expression leftChild, Expression rightChild)
           
 
Method Summary
 void commute()
          Performs the Commutative Law.
 DoubleNegatable doubleNegate()
           
 BinaryOperator xorRule()
           
 
Methods inherited from class wugle.expression.AbstractBinaryOperator
clone, getLeftChild, getRightChild, isEqual, setChild, setLeftChild, setRightChild, toString
 
Methods inherited from class wugle.expression.AbstractExpression
getParent, getSymbol, setParent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

SYMBOL

public static java.lang.String SYMBOL
Constructor Detail

Xor

public Xor(Expression leftChild,
           Expression rightChild)
Method Detail

commute

public void commute()
Description copied from interface: Commutative
Performs the Commutative Law. This will transform p v q to q v p.

Specified by:
commute in interface Commutative
See Also:
ExpressionOperation.commute(Commutative)

doubleNegate

public DoubleNegatable doubleNegate()
Specified by:
doubleNegate in interface DoubleNegatable

xorRule

public BinaryOperator xorRule()
Specified by:
xorRule in interface XorRule