Class IntegerOp

java.lang.Object
edu.rit.pj.reduction.Op
edu.rit.pj.reduction.IntegerOp

public abstract class IntegerOp extends Op
Class IntegerOp is the abstract base class for a binary operation on integer values, used to do reduction in a parallel program.
Version:
24-Nov-2009
Author:
Alan Kaminsky
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static final IntegerOp
    The integer bitwise "and" binary operation.
    static final IntegerOp
    The integer maximum binary operation.
    static final IntegerOp
    The integer minimum binary operation.
    static final IntegerOp
    The integer bitwise "or" binary operation.
    static final IntegerOp
    The integer product binary operation.
    static final IntegerOp
    The integer sum binary operation.
    static final IntegerOp
    The integer bitwise "exclusive or" binary operation.
  • Constructor Summary Link icon

    Constructors
    Modifier
    Constructor
    Description
    protected
    Construct a new integer binary operation.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    abstract int
    op(int x, int y)
    Perform this binary operation.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • SUM Link icon

      public static final IntegerOp SUM
      The integer sum binary operation.
    • PRODUCT Link icon

      public static final IntegerOp PRODUCT
      The integer product binary operation.
    • MINIMUM Link icon

      public static final IntegerOp MINIMUM
      The integer minimum binary operation.
    • MAXIMUM Link icon

      public static final IntegerOp MAXIMUM
      The integer maximum binary operation.
    • AND Link icon

      public static final IntegerOp AND
      The integer bitwise "and" binary operation.
    • OR Link icon

      public static final IntegerOp OR
      The integer bitwise "or" binary operation.
    • XOR Link icon

      public static final IntegerOp XOR
      The integer bitwise "exclusive or" binary operation.
  • Constructor Details Link icon

    • IntegerOp Link icon

      protected IntegerOp()
      Construct a new integer binary operation.
  • Method Details Link icon

    • op Link icon

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