Class Transition<E>

    • Constructor Detail

      • Transition

        protected Transition​(OutputState<E> srcState,
                             InputState<E> tgtState)
        Creates the transition.
        Parameters:
        srcState - The source state of the transition.
        tgtState - The output state of the transition.
        Throws:
        IllegalArgumentException - If one of the states is null.
    • Method Detail

      • action

        protected void action​(E event)
      • accept

        protected abstract boolean accept​(E event)
      • isGuardOK

        protected abstract boolean isGuardOK​(E event)
      • getAcceptedEvents

        public abstract Set<Object> getAcceptedEvents()
        Returns:
        The set of events accepted by the transition.
      • uninstall

        public void uninstall()
        Clean the transition when not used anymore.