Enum AssignmentState
- java.lang.Object
-
- java.lang.Enum<AssignmentState>
-
- net.ssehub.easy.varModel.confModel.AssignmentState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AssignmentState>,IAssignmentState
public enum AssignmentState extends java.lang.Enum<AssignmentState> implements IAssignmentState
Defines the default and global assignment states.- Author:
- Holger Eichelberger, El-Sharkawy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGNEDThe value is set by the user, but not yet frozen.DEFAULTThe default value is (still) assigned.DERIVEDA (reasoning) mechanism defined the value.FROZENThe value is frozen and cannot be changed.UNDEFINEDAn undefined value.USER_ASSIGNEDThe value is set by the user, should not be changed by the reasoner.
-
Constructor Summary
Constructors Modifier Constructor Description privateAssignmentState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AssignmentStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AssignmentState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final AssignmentState UNDEFINED
An undefined value. The decision must be taken in future.
-
ASSIGNED
public static final AssignmentState ASSIGNED
The value is set by the user, but not yet frozen.
-
USER_ASSIGNED
public static final AssignmentState USER_ASSIGNED
The value is set by the user, should not be changed by the reasoner.
-
DEFAULT
public static final AssignmentState DEFAULT
The default value is (still) assigned.
-
DERIVED
public static final AssignmentState DERIVED
A (reasoning) mechanism defined the value.
-
FROZEN
public static final AssignmentState FROZEN
The value is frozen and cannot be changed.
-
-
Method Detail
-
values
public static AssignmentState[] 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 (AssignmentState c : AssignmentState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssignmentState valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-