Class StateMachine

    • Constructor Detail

      • StateMachine

        public StateMachine​(String name)
    • Method Detail

      • startsAs

        public States startsAs​(String initialState)
        Description copied from interface: States
        Put the state machine into state initialState.
        Specified by:
        startsAs in interface States
        Parameters:
        initialState - The initial state of the state machine.
        Returns:
        Itself.
      • become

        public void become​(String nextState)
        Description copied from interface: States
        Put the state machine into state nextState.
        Specified by:
        become in interface States
        Parameters:
        nextState - The next state of the state machine.
      • describeTo

        public void describeTo​(org.hamcrest.Description description)
        Specified by:
        describeTo in interface org.hamcrest.SelfDescribing