- java.lang.Object
-
- java.lang.Enum<FType>
-
- org.logicng.formulas.FType
-
- All Implemented Interfaces:
Serializable,Comparable<FType>
public enum FType extends Enum<FType>
Formula types for LogicNG.- Since:
- 1.0
- Version:
- 1.3
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FTypedual(FType type)Returns the dual operator of the given operator, i.e.byteprecedence()Returns the precedence of this formula type.static FTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
precedence
public byte precedence()
Returns the precedence of this formula type.- Returns:
- the precedence of this formula type
-
-