Package math.wfc.rules
Enum Class Rule.STATE
- All Implemented Interfaces:
Serializable
,Comparable<Rule.STATE>
,Constable
- Enclosing class:
- Rule
Enum used to output the State of the Rule.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Grid can't be filled anymoreWhen this is returned the Tile will instantly be placed at that positionThe Tile can't be at this position anymore.When this is returned the Tile can be at this position. -
Method Summary
Modifier and TypeMethodDescriptionstatic Rule.STATE
Returns the enum constant of this class with the specified name.static Rule.STATE[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORCED
When this is returned the Tile will instantly be placed at that position -
POSSIBLE
When this is returned the Tile can be at this position. (Should be the default) -
IMPOSSIBLE
The Tile can't be at this position anymore. The rule won't be executed at that position again -
FORBIDDEN
The Grid can't be filled anymore
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-