Enum Class LogicBlock.Operator

java.lang.Object
java.lang.Enum<LogicBlock.Operator>
neqsim.process.controllerdevice.LogicBlock.Operator
All Implemented Interfaces:
Serializable, Comparable<LogicBlock.Operator>, Constable
Enclosing class:
LogicBlock

public static enum LogicBlock.Operator extends Enum<LogicBlock.Operator>
Logical operators supported by this block.
Version:
1.0
Author:
ESOL
  • Enum Constant Details

    • AND

      public static final LogicBlock.Operator AND
      Logical AND — output is true only when all inputs are true.
    • OR

      public static final LogicBlock.Operator OR
      Logical OR — output is true when any input is true.
    • NOT

      public static final LogicBlock.Operator NOT
      Logical NOT — inverts a single input. Only the first input is used.
    • NAND

      public static final LogicBlock.Operator NAND
      Logical NAND — inverted AND.
    • NOR

      public static final LogicBlock.Operator NOR
      Logical NOR — inverted OR.
    • XOR

      public static final LogicBlock.Operator XOR
      Logical XOR — exclusive OR, true when an odd number of inputs are true.
  • Constructor Details

    • Operator

      private Operator()
  • Method Details

    • values

      public static LogicBlock.Operator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LogicBlock.Operator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null