Package edu.rit.pj.reduction
Class CharacterOp
java.lang.Object
edu.rit.pj.reduction.Op
edu.rit.pj.reduction.CharacterOp
Class CharacterOp is the abstract base class for a binary operation on
character values, used to do reduction in a parallel program.
- Version:
- 24-Nov-2009
- Author:
- Alan Kaminsky
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CharacterOp
The character bitwise "and" binary operation.static final CharacterOp
The character maximum binary operation.static final CharacterOp
The character minimum binary operation.static final CharacterOp
The character bitwise "or" binary operation.static final CharacterOp
The character bitwise "exclusive or" binary operation. -
Constructor Summary
ModifierConstructorDescriptionprotected
Construct a new character binary operation. -
Method Summary
Modifier and TypeMethodDescriptionabstract char
op
(char x, char y) Perform this binary operation.
-
Field Details
-
MINIMUM
The character minimum binary operation. -
MAXIMUM
The character maximum binary operation. -
AND
The character bitwise "and" binary operation. -
OR
The character bitwise "or" binary operation. -
XOR
The character bitwise "exclusive or" binary operation.
-
-
Constructor Details
-
CharacterOp
protected CharacterOp()Construct a new character binary operation.
-
-
Method Details
-
op
public abstract char op(char x, char y) Perform this binary operation.- Parameters:
x
- First argument.y
- Second argument.- Returns:
- (
x
opy
), where op stands for this binary operation.
-