Package org.glassfish.pfl.basic.fsm
Enum State.Kind
- All Implemented Interfaces:
Serializable
,Comparable<State.Kind>
,java.lang.constant.Constable
- Enclosing class:
State
Kind of state. A StateEngine must have at least one INITIAL state.
An FSM may only be created in an INITIAL state.
It may have 0 or more FINAL states. A FINAL state may only be the
target of a state transition. If a state engine is used as a
submachine, it must have at least one final state.
A REFERENCE state is handled specially. It is used to call into another state engine much as a normal subroutine call. A REFERENCE state (like a FINAL state) may not have any transitions that leave it. The returnAction method on a REFERENCE state is responsible for setting the state directly.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic State.Kind
Returns the enum constant of this type with the specified name.static State.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INITIAL
-
NORMAL
-
REFERENCE
-
FINAL
-
-
Constructor Details
-
Kind
private Kind()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-