Package org.chenile.stm
Interface EnablementStrategy
- All Known Implementing Classes:
ConfigBasedEnablementStrategy
,DummyEnablementStrategy
public interface EnablementStrategy
Implementations of this interface enable/disable states and events based out of various criteria.
This allows the state transition diagram to be customized using configurations.
ConfigBasedEnablementStrategy
is the easiest way to achieve this.
But there can be alternative implementations possible for selectively enabling or disabling states
and events/transitions based on various criteria.-
Method Summary
Modifier and TypeMethodDescriptionaddDynamicStates
(FlowDescriptor flowInfo) void
void
addMetadataToTransition
(Transition t, StateDescriptor stateDescriptor) getStateInfo
(State state, FlowDescriptor flowDescriptor) boolean
isEventEnabled
(StateDescriptor sd, EventInformation eventInformation) boolean
-
Method Details
-
isStateEnabled
-
isEventEnabled
-
addDynamicTransitions
-
getStateInfo
-
addDynamicStates
-
addMetadataToTransition
-
addMetadataToState
-