Class BooleanOp

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

public abstract class BooleanOp extends Op
Class BooleanOp is the abstract base class for a binary operation on Boolean values, used to do reduction in a parallel program.
Version:
05-Jun-2007
Author:
Alan Kaminsky
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BooleanOp
    The Boolean logical "and" binary operation.
    static final BooleanOp
    The Boolean logical "or" binary operation.
    static final BooleanOp
    The Boolean logical "exclusive or" binary operation.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    abstract boolean
    op(boolean x, boolean 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

    • AND

      public static final BooleanOp AND
      The Boolean logical "and" binary operation.
    • OR

      public static final BooleanOp OR
      The Boolean logical "or" binary operation.
    • XOR

      public static final BooleanOp XOR
      The Boolean logical "exclusive or" binary operation.
  • Constructor Details

    • BooleanOp

      protected BooleanOp()
      Construct a new Boolean binary operation.
  • Method Details

    • op

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