edu.rit.pj.reduction
Class ShortOp

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

public abstract class ShortOp
extends Op

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


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


PRODUCT

public static final ShortOp PRODUCT
The short product binary operation.


MINIMUM

public static final ShortOp MINIMUM
The short minimum binary operation.


MAXIMUM

public static final ShortOp MAXIMUM
The short maximum binary operation.


AND

public static final ShortOp AND
The short bitwise "and" binary operation.


OR

public static final ShortOp OR
The short bitwise "or" binary operation.


XOR

public static final ShortOp XOR
The short bitwise "exclusive or" binary operation.

Constructor Detail

ShortOp

protected ShortOp()
Construct a new short binary operation.

Method Detail

op

public abstract short op(short x,
                         short 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.