|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.pj.reduction.Op
edu.rit.pj.reduction.IntegerOp
public abstract class IntegerOp
Class IntegerOp is the abstract base class for a binary operation on integer values, used to do reduction in a parallel program.
| Field Summary | |
|---|---|
static IntegerOp |
AND
The integer bitwise "and" binary operation. |
static IntegerOp |
MAXIMUM
The integer maximum binary operation. |
static IntegerOp |
MINIMUM
The integer minimum binary operation. |
static IntegerOp |
OR
The integer bitwise "or" binary operation. |
static IntegerOp |
PRODUCT
The integer product binary operation. |
static IntegerOp |
SUM
The integer sum binary operation. |
static IntegerOp |
XOR
The integer bitwise "exclusive or" binary operation. |
| Constructor Summary | |
|---|---|
protected |
IntegerOp()
Construct a new integer binary operation. |
| Method Summary | |
|---|---|
abstract int |
op(int x,
int y)
Perform this binary operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final IntegerOp SUM
public static final IntegerOp PRODUCT
public static final IntegerOp MINIMUM
public static final IntegerOp MAXIMUM
public static final IntegerOp AND
public static final IntegerOp OR
public static final IntegerOp XOR
| Constructor Detail |
|---|
protected IntegerOp()
| Method Detail |
|---|
public abstract int op(int x,
int y)
x - First argument.y - Second argument.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||