Module logicng

Enum FType

    • Enum Constant Detail

      • PBC

        public static final FType PBC
      • EQUIV

        public static final FType EQUIV
      • IMPL

        public static final FType IMPL
      • OR

        public static final FType OR
      • AND

        public static final FType AND
      • NOT

        public static final FType NOT
      • LITERAL

        public static final FType LITERAL
      • TRUE

        public static final FType TRUE
      • FALSE

        public static final FType FALSE
    • Method Detail

      • values

        public static FType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FType c : FType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • precedence

        public byte precedence()
        Returns the precedence of this formula type.
        Returns:
        the precedence of this formula type
      • dual

        public static FType dual​(FType type)
        Returns the dual operator of the given operator, i.e. AND for OR and vice versa.
        Parameters:
        type - the type (AND or OR)
        Returns:
        the dual operator