Class GenericAAARLearnerDFA<L extends LearningAlgorithm.DFALearner<CI> & SupportsGrowingAlphabet<CI>,​AI,​CI>

    • Constructor Detail

      • GenericAAARLearnerDFA

        public GenericAAARLearnerDFA​(LearnerConstructor<L,​CI,​Boolean> learnerConstructor,
                                     MembershipOracle<CI,​Boolean> oracle,
                                     CI initialConcrete,
                                     Function<CI,​AI> abstractor)
        Constructor.
        Parameters:
        learnerConstructor - the provider for constructing the internal (concrete) learner
        oracle - the (concrete) membership oracle
        initialConcrete - the initial (concrete) input symbol used for starting the learning process
        abstractor - the function for creating new abstract input symbols given concrete one. This function only receives input symbols from the provided (concrete) counterexamples
    • Method Detail

      • getHypothesisModel

        public DFA<?,​AI> 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 may not be modified (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().

        Returns:
        the current hypothesis model.