Interface PersistentActivity

All Superinterfaces:
Activity, Runnable

public interface PersistentActivity extends Activity
Persistent activities are run within a thread upon entering a state.
Author:
Mike Frizzell
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This function is called upon an event that causes a state transition.

    Methods inherited from interface io.github.frizman21.automaton.Activity

    getName, setStateMachine

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • kill

      void kill()
      This function is called upon an event that causes a state transition. It is assumed that the thread running the run() function will be terminated upon completion of this function call. The StateMachine will forcable destroy the thread after this call.