Interface SimpleDTS<S,​I>

    • Method Detail

      • getSuccessors

        default Set<S> getSuccessors​(S state,
                                     Iterable<? extends I> input)
        Description copied from interface: SimpleTS
        Retrieves the set of successors for the given sequence of input symbols.
        Specified by:
        getSuccessors in interface SimpleTS<S,​I>
        Parameters:
        state - the source state.
        input - the sequence of input symbols.
        Returns:
        the set of successors reachable by this input.
      • 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 SimpleTS<S,​I>
        Parameters:
        state - the source state.
        input - the input symbol.
        Returns:
        the set of successors reachable by this input.
      • getStates

        default Set<S> getStates​(Iterable<? extends I> input)
        Description copied from interface: SimpleTS
        Retrieves the set of all states reachable by the given sequence of input symbols from an initial state. Calling this method is equivalent to getSuccessors(getInitialStates(), input).
        Specified by:
        getStates in interface SimpleTS<S,​I>
        Parameters:
        input - the sequence of input symbols.
        Returns:
        the set of states reachable by this input from an initial state, or null if no successor state is reachable.
      • getInitialStates

        default Set<S> getInitialStates()
        Description copied from interface: SimpleTS
        Retrieves the set of initial states of the transition system.
        Specified by:
        getInitialStates in interface SimpleTS<S,​I>
        Returns:
        the initial states.
      • getState

        default @Nullable S getState​(Iterable<? extends I> input)
        Retrieves the state reachable by the given sequence of input symbols from the initial state.
        Parameters:
        input - the input word.
        Returns:
        the state reachable by the given input word, or null if no state is reachable by this word.
        See Also:
        SimpleTS.getStates(Iterable)
      • stateToSet

        static <S> Set<S> stateToSet​(@Nullable S state)
      • getSuccessor

        default @Nullable S getSuccessor​(S state,
                                         Iterable<? extends I> input)
        Retrieves the successor state reachable by the given sequence of input symbols.
        Parameters:
        state - the source state.
        input - the input symbol.
        Returns:
        the successor state reachable by the given sequence of input symbols, or null if no state is reachable by this symbol.
        See Also:
        SimpleTS.getSuccessors(Object, Iterable)
      • getSuccessor

        @Nullable S getSuccessor​(S state,
                                 I input)
        Retrieves the successor state reachable by the given input symbol.
        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)