|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
BinaryOperator that can perform the Associative Laws.
Any BinaryOperator that can perform the Associative Laws should implement this interface.
The actual implementation can be delegated to an ExpressionOperation.
ExpressionOperation| Method Summary | |
Associative |
associateLeft()
Tries to perform the Associative Law to the right. |
Associative |
associateRight()
Tries to perform the Associative Law to the right. |
boolean |
canAssociateLeft()
Tests if can perform the Associative Law to the left. |
boolean |
canAssociateRight()
Tests if can perform the Associative Law to the right. |
| 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 |
public boolean canAssociateLeft()
true if the left child is the same class as thisassociateLeft(),
ExpressionOperation.canAssociateLeft(Associative)
public Associative associateLeft()
throws java.lang.Exception
(p v q) v r to
p v (q v r), which is the inverse of the
associate right operation.
java.lang.Exception - if the operation cannot be performedassociateRight(),
canAssociateLeft(),
ExpressionOperation.associateLeft(Associative)public boolean canAssociateRight()
true if the right child is the same class as thisassociateRight(),
ExpressionOperation.canAssociateRight(Associative)
public Associative associateRight()
throws java.lang.Exception
p v (q v r) to
(p v q) v r, which is the inverse of the
associate left operation.
java.lang.Exception - if the operation cannot be performedassociateLeft(),
canAssociateRight(),
ExpressionOperation.associateRight(Associative)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||