Interface Semantics<S,T>
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ExtendedSemantics<S,
T>
-
Method Summary
Modifier and TypeMethodDescriptionexecuteExecutableTransition
(T toExecute) void
initialize
(Collection<T> transitions, S initialState) Initializes this semantics.void
setCurrentState
(S currentState)
-
Method Details
-
setCurrentState
-
getCurrentState
S getCurrentState() -
getExecutableTransitions
Collection<T> getExecutableTransitions() -
executeExecutableTransition
- Throws:
IllegalTransitionException
-
initialize
Initializes this semantics. Note that the set of transitions is considered read only, i.e. no changes can be made to it by a Semantics<S,T> implementation. However, the initial state is not read only.- Parameters:
transitions
-initialState
-
-