Class AbstractSelfTransition

    • Constructor Detail

      • AbstractSelfTransition

        public AbstractSelfTransition()
        Creates a new instance
    • Method Detail

      • doExecute

        protected abstract boolean doExecute​(StateContext stateContext,
                                             State state)
        Executes this SelfTransition.
        Parameters:
        stateContext - the context in which the execution should occur
        state - the current state
        Returns:
        true if the SelfTransition has been executed successfully
      • execute

        public boolean execute​(StateContext stateContext,
                               State state)
        Executes this SelfTransition.
        Specified by:
        execute in interface SelfTransition
        Parameters:
        stateContext - The context in which we are executing the transition
        state - The current state
        Returns:
        true if the execution succeeded, false otherwise.