Package org.zkoss.fsm

Class MacroStateCtx<E,​C,​IN,​E2,​C2>

    • Constructor Detail

      • MacroStateCtx

        public MacroStateCtx​(StateMachine<E2,​C2,​IN> submachine)
        Construct a macro state, which consists of a state machine by itself.
    • Method Detail

      • onLand

        protected void onLand​(IN input,
                              C inputClass,
                              E origin)
        Description copied from class: StateCtx
        This method is called when the machine enters this state
        Overrides:
        onLand in class StateCtx<E,​C,​IN>
      • onReturn

        protected void onReturn​(IN input,
                                C inputClass)
        Description copied from class: StateCtx
        This method is called when the machine returns to the same state
        Overrides:
        onReturn in class StateCtx<E,​C,​IN>
      • onLeave

        protected void onLeave​(IN input,
                               C inputClass,
                               E destination)
        Description copied from class: StateCtx
        This method is called when the machine leaves this state
        Overrides:
        onLeave in class StateCtx<E,​C,​IN>
      • onStop

        protected void onStop​(boolean endOfInput)
        Description copied from class: StateCtx
        This method is called when the machine stops on this state
        Overrides:
        onStop in class StateCtx<E,​C,​IN>