Package edu.rit.pj.reduction
Class BooleanOp
java.lang.Object
edu.rit.pj.reduction.Op
edu.rit.pj.reduction.BooleanOp
Class BooleanOp is the abstract base class for a binary operation on Boolean
values, used to do reduction in a parallel program.
- Version:
- 05-Jun-2007
- Author:
- Alan Kaminsky
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
op
(boolean x, boolean y) Perform this binary operation.
-
Field Details
-
AND
The Boolean logical "and" binary operation. -
OR
The Boolean logical "or" binary operation. -
XOR
The Boolean logical "exclusive or" binary operation.
-
-
Constructor Details
-
BooleanOp
protected BooleanOp()Construct a new Boolean binary operation.
-
-
Method Details
-
op
public abstract boolean op(boolean x, boolean y) Perform this binary operation.- Parameters:
x
- First argument.y
- Second argument.- Returns:
- (
x
opy
), where op stands for this binary operation.
-