Class SULCaches


  • public final class SULCaches
    extends Object
    A factory for creating caches for SULs.
    • Method Detail

      • createCache

        public static <I,​O> SULCache<I,​O> createCache​(net.automatalib.alphabet.Alphabet<I> alphabet,
                                                                  SUL<I,​O> sul)
        Creates a SULCache for a given SUL.

        Note that this method does not specify the implementation to use for the cache. Currently, a DAG (createDAGCache(net.automatalib.alphabet.Alphabet<I>, de.learnlib.sul.SUL<I, O>)) is used; however, this may change in the future.

        Type Parameters:
        I - input symbol type
        O - output symbol type
        Parameters:
        alphabet - the input alphabet
        sul - the sul
        Returns:
        a SULCache with a default implementation
      • createDAGCache

        public static <I,​O> SULCache<I,​O> createDAGCache​(net.automatalib.alphabet.Alphabet<I> alphabet,
                                                                     SUL<I,​O> sul)
        Creates a SULCache for a given SUL, using a DAG for internal cache organization.
        Type Parameters:
        I - input symbol type
        O - output symbol type
        Parameters:
        alphabet - the input alphabet
        sul - the sul
        Returns:
        a SULCache with a DAG-based implementation
        See Also:
        IncrementalMealyDAGBuilder
      • createTreeCache

        public static <I,​O> SULCache<I,​O> createTreeCache​(net.automatalib.alphabet.Alphabet<I> alphabet,
                                                                      SUL<I,​O> sul)
        Creates a SULCache for a given SUL, using a tree for internal cache organization.
        Type Parameters:
        I - input symbol type
        O - output symbol type
        Parameters:
        alphabet - the input alphabet
        sul - the sul
        Returns:
        a SULCache with a tree-based implementation
        See Also:
        IncrementalMealyTreeBuilder
      • createStateLocalInputTreeCache

        public static <I,​O> StateLocalInputSULCache<I,​O> createStateLocalInputTreeCache​(net.automatalib.alphabet.Alphabet<I> alphabet,
                                                                                                    StateLocalInputSUL<I,​O> sul)
        Creates a StateLocalInputSULCache for a given StateLocalInputSUL, using a tree for internal cache organization.
        Type Parameters:
        I - input symbol type
        O - output symbol type
        Parameters:
        alphabet - the input alphabet
        sul - the sul
        Returns:
        a StateLocalInputSULCache with a tree-based implementation
        See Also:
        IncrementalMealyTreeBuilder