Class AbstractTTTLambda<M extends net.automatalib.automaton.concept.SuffixOutput<I,​D>,​I,​D>

  • All Implemented Interfaces:
    LearningAlgorithm<M,​I,​D>, net.automatalib.alphabet.SupportsGrowingAlphabet<I>, net.automatalib.automaton.concept.FiniteRepresentation
    Direct Known Subclasses:
    TTTLambdaDFA, TTTLambdaMealy

    public abstract class AbstractTTTLambda<M extends net.automatalib.automaton.concept.SuffixOutput<I,​D>,​I,​D>
    extends Object
    implements LearningAlgorithm<M,​I,​D>, net.automatalib.alphabet.SupportsGrowingAlphabet<I>, net.automatalib.automaton.concept.FiniteRepresentation
    • Constructor Detail

      • AbstractTTTLambda

        protected AbstractTTTLambda​(net.automatalib.alphabet.Alphabet<I> alphabet,
                                    MembershipOracle<I,​D> ceqs)
    • Method Detail

      • maxSearchIndex

        protected abstract int maxSearchIndex​(int ceLength)
      • getState

        protected abstract DTLeaf<I,​D> getState​(net.automatalib.word.Word<I> prefix)
      • startLearning

        public void startLearning()
        Description copied from interface: LearningAlgorithm
        Starts the model inference process, creating an initial hypothesis in the provided model object. Please note that it should be illegal to invoke this method twice.
        Specified by:
        startLearning in interface LearningAlgorithm<M extends net.automatalib.automaton.concept.SuffixOutput<I,​D>,​I,​D>
      • refineHypothesis

        public boolean refineHypothesis​(DefaultQuery<I,​D> counterexample)
        Description copied from interface: LearningAlgorithm
        Triggers a refinement of the model by providing a counterexample. A counterexample is a query which exposes different behavior of the real SUL compared to the hypothesis. Please note that invoking this method before an initial invocation of LearningAlgorithm.startLearning() should be illegal.
        Specified by:
        refineHypothesis in interface LearningAlgorithm<M extends net.automatalib.automaton.concept.SuffixOutput<I,​D>,​I,​D>
        Parameters:
        counterexample - the query which exposes diverging behavior, as posed to the real SUL (i.e. with the SULs output).
        Returns:
        true if the counterexample triggered a refinement of the hypothesis, false otherwise (i.e., it was no counterexample).
      • addAlphabetSymbol

        public void addAlphabetSymbol​(I symbol)
        Specified by:
        addAlphabetSymbol in interface net.automatalib.alphabet.SupportsGrowingAlphabet<M extends net.automatalib.automaton.concept.SuffixOutput<I,​D>>