edu.rit.pj.reduction
Class ByteOp

java.lang.Object
  extended by edu.rit.pj.reduction.Op
      extended by edu.rit.pj.reduction.ByteOp

public abstract class ByteOp
extends Op

Class ByteOp is the abstract base class for a binary operation on byte values, used to do reduction in a parallel program.


Field Summary
static ByteOp AND
          The byte bitwise "and" binary operation.
static ByteOp MAXIMUM
          The byte maximum binary operation.
static ByteOp MINIMUM
          The byte minimum binary operation.
static ByteOp OR
          The byte bitwise "or" binary operation.
static ByteOp PRODUCT
          The byte product binary operation.
static ByteOp SUM
          The byte sum binary operation.
static ByteOp XOR
          The byte bitwise "exclusive or" binary operation.
 
Constructor Summary
protected ByteOp()
          Construct a new byte binary operation.
 
Method Summary
abstract  byte op(byte x, byte 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

SUM

public static final ByteOp SUM
The byte sum binary operation.


PRODUCT

public static final ByteOp PRODUCT
The byte product binary operation.


MINIMUM

public static final ByteOp MINIMUM
The byte minimum binary operation.


MAXIMUM

public static final ByteOp MAXIMUM
The byte maximum binary operation.


AND

public static final ByteOp AND
The byte bitwise "and" binary operation.


OR

public static final ByteOp OR
The byte bitwise "or" binary operation.


XOR

public static final ByteOp XOR
The byte bitwise "exclusive or" binary operation.

Constructor Detail

ByteOp

protected ByteOp()
Construct a new byte binary operation.

Method Detail

op

public abstract byte op(byte x,
                        byte y)
Perform this binary operation.

Parameters:
x - First argument.
y - Second argument.
Returns:
(x op y), where op stands for this binary operation.


Copyright © 2005-2012 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.