Class CharacterOp

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

public abstract class CharacterOp extends Op
Class CharacterOp is the abstract base class for a binary operation on character 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 CharacterOp
    The character bitwise "and" binary operation.
    static final CharacterOp
    The character maximum binary operation.
    static final CharacterOp
    The character minimum binary operation.
    static final CharacterOp
    The character bitwise "or" binary operation.
    static final CharacterOp
    The character bitwise "exclusive or" binary operation.
  • Constructor Summary Link icon

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

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

    • MINIMUM Link icon

      public static final CharacterOp MINIMUM
      The character minimum binary operation.
    • MAXIMUM Link icon

      public static final CharacterOp MAXIMUM
      The character maximum binary operation.
    • AND Link icon

      public static final CharacterOp AND
      The character bitwise "and" binary operation.
    • OR Link icon

      public static final CharacterOp OR
      The character bitwise "or" binary operation.
    • XOR Link icon

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

    • CharacterOp Link icon

      protected CharacterOp()
      Construct a new character binary operation.
  • Method Details Link icon

    • op Link icon

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