- java.lang.Object
-
- java.lang.Enum<BackboneType>
-
- org.logicng.backbones.BackboneType
-
- All Implemented Interfaces:
Serializable,Comparable<BackboneType>
public enum BackboneType extends Enum<BackboneType>
An enumeration which type of backbone should be computed:-
ONLY_POSITIVE: only variables which occur positive in every model -
ONLY_NEGATIVE: only variables which occur negative in every model -
POSITIVE_AND_NEGATIVE: variables which occur positive in every model, variables which occur negative in every model and optional variables (neither in the positive nor negative backbone)
- Since:
- 1.5.0
- Version:
- 1.5.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ONLY_NEGATIVEOnly variables in the negative backboneONLY_POSITIVEOnly variables in the positive backbonePOSITIVE_AND_NEGATIVEVariables in the positive backbone, in the negative backbone and optional
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BackboneTypevalueOf(String name)Returns the enum constant of this type with the specified name.static BackboneType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONLY_POSITIVE
public static final BackboneType ONLY_POSITIVE
Only variables in the positive backbone
-
ONLY_NEGATIVE
public static final BackboneType ONLY_NEGATIVE
Only variables in the negative backbone
-
POSITIVE_AND_NEGATIVE
public static final BackboneType POSITIVE_AND_NEGATIVE
Variables in the positive backbone, in the negative backbone and optional
-
-
Method Detail
-
values
public static BackboneType[] 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 (BackboneType c : BackboneType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BackboneType 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
-
-