Class OPLearnerMealy<I,​O>

    • Constructor Detail

      • OPLearnerMealy

        public OPLearnerMealy​(net.automatalib.alphabet.Alphabet<I> alphabet,
                              MembershipOracle<I,​net.automatalib.word.Word<O>> oracle,
                              LocalSuffixFinder<? super I,​? super net.automatalib.word.Word<O>> suffixFinder,
                              boolean repeatedCounterexampleEvaluation)
        Constructor.
        Parameters:
        alphabet - the input alphabet
        oracle - the membership oracle
        suffixFinder - method to use for analyzing counterexamples
        repeatedCounterexampleEvaluation - a flag whether counterexamples should be analyzed exhaustively
    • Method Detail

      • getHypothesisModel

        public net.automatalib.automaton.transducer.MealyMachine<?,​I,​?,​O> getHypothesisModel()
        Description copied from interface: LearningAlgorithm
        Returns the current hypothesis model.

        N.B.: By the contract of this interface, the model returned by this method should not be modified by external code (i.e., M generally should refer to an immutable interface), and its validity is retained only until the next invocation of LearningAlgorithm.refineHypothesis(DefaultQuery). If older hypotheses have to be maintained, a copy of the returned model must be made.

        Please note that it should be illegal to invoke this method before an initial invocation of LearningAlgorithm.startLearning().

        Specified by:
        getHypothesisModel in interface LearningAlgorithm<net.automatalib.automaton.transducer.MealyMachine<?,​I,​?,​O>,​I,​net.automatalib.word.Word<O>>
        Returns:
        the current hypothesis model.
      • spQuery

        protected @Nullable Query<I,​net.automatalib.word.Word<O>> spQuery​(HState<I,​net.automatalib.word.Word<O>,​Void,​O> state)
        Specified by:
        spQuery in class AbstractOPLearner<net.automatalib.automaton.transducer.MealyMachine<?,​I,​?,​O>,​I,​net.automatalib.word.Word<O>,​Void,​O>
      • tpQuery

        protected Query<I,​net.automatalib.word.Word<O>> tpQuery​(HTransition<I,​net.automatalib.word.Word<O>,​Void,​O> transition)
        Specified by:
        tpQuery in class AbstractOPLearner<net.automatalib.automaton.transducer.MealyMachine<?,​I,​?,​O>,​I,​net.automatalib.word.Word<O>,​Void,​O>