Interface Semantics<S,T>
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
ExtendedSemantics<S,T>
public interface Semantics<S,T> extends java.io.Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutionInformation
executeExecutableTransition(T toExecute)
S
getCurrentState()
java.util.Collection<T>
getExecutableTransitions()
void
initialize(java.util.Collection<T> transitions, S initialState)
Initializes this semantics.void
setCurrentState(S currentState)
-
-
-
Method Detail
-
setCurrentState
void setCurrentState(S currentState)
-
getCurrentState
S getCurrentState()
-
getExecutableTransitions
java.util.Collection<T> getExecutableTransitions()
-
executeExecutableTransition
ExecutionInformation executeExecutableTransition(T toExecute) throws IllegalTransitionException
- Throws:
IllegalTransitionException
-
initialize
void initialize(java.util.Collection<T> transitions, S initialState)
Initializes this semantics. Note that the set of transitions is considered read only, i.e. no changes can be made to it by a Semanticsimplementation. However, the initial state is not read only.- Parameters:
transitions
-initialState
-
-
-