Class ByteOp

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

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

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

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

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

    • ByteOp

      protected ByteOp()
      Construct a new byte binary operation.
  • Method Details

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