Interface DeterministicTransitionSystem<S,​I,​T>

    • Method Detail

      • getSuccessor

        default @Nullable S getSuccessor​(S state,
                                         I input)
        Description copied from interface: SimpleDTS
        Retrieves the successor state reachable by the given input symbol.
        Specified by:
        getSuccessor in interface SimpleDTS<S,​I>
        Parameters:
        state - the source state.
        input - the input symbol.
        Returns:
        the successor state reachable by the given input symbol, or null if no state is reachable by this symbol.
        See Also:
        TransitionSystem.getSuccessors(Object, Object)
      • getTransition

        @Nullable T getTransition​(S state,
                                  I input)
        Retrieves the transition triggered by the given input symbol.
        Parameters:
        state - the source state.
        input - the input symbol.
        Returns:
        the transition triggered by the given input symbol, or null if no transition is triggered.
        See Also:
        TransitionSystem.getTransitions(Object, Object)
      • getSuccessors

        default Set<S> getSuccessors​(S state,
                                     I input)
        Description copied from interface: SimpleTS
        Retrieves the set of successors for the given input symbol.
        Specified by:
        getSuccessors in interface SimpleDTS<S,​I>
        Specified by:
        getSuccessors in interface SimpleTS<S,​I>
        Specified by:
        getSuccessors in interface TransitionSystem<S,​I,​T>
        Parameters:
        state - the source state.
        input - the input symbol.
        Returns:
        the set of successors reachable by this input.
      • getTransitions

        default Collection<T> getTransitions​(S state,
                                             I input)
        Description copied from interface: TransitionSystem
        Retrieves the transitions that can be triggered by the given input symbol.

        The return value must not be null; if there are no transitions triggered by the specified input, Collections.emptySet() should be returned.

        Specified by:
        getTransitions in interface TransitionSystem<S,​I,​T>
        Parameters:
        state - the source state.
        input - the input symbol.
        Returns:
        the transitions triggered by the given input
      • transToSet

        static <T> Set<T> transToSet​(@Nullable T trans)