Class ShortOp

java.lang.Object
edu.rit.pj.reduction.Op
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.
Version:
24-Nov-2009
Author:
Alan Kaminsky
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ShortOp
    The short bitwise "and" binary operation.
    static final ShortOp
    The short maximum binary operation.
    static final ShortOp
    The short minimum binary operation.
    static final ShortOp
    The short bitwise "or" binary operation.
    static final ShortOp
    The short product binary operation.
    static final ShortOp
    The short sum binary operation.
    static final ShortOp
    The short bitwise "exclusive or" binary operation.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Construct a new short binary operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Details

    • 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 Details

    • ShortOp

      protected ShortOp()
      Construct a new short binary operation.
  • Method Details

    • 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.