Class AbstractDFAPassiveLearnerIT
- java.lang.Object
-
- de.learnlib.testsupport.it.learner.AbstractDFAPassiveLearnerIT
-
public abstract class AbstractDFAPassiveLearnerIT extends Object
Abstract integration test for passive DFA learning algorithms.If run, this integration test tests the functionality of all
variants
of a DFA learning algorithm against all the examples contained inLearningExamples.createDFAExamples()
.Subclasses can perform further sample filtering by overriding the
generateSamplesInternal(Alphabet, DFA)
method, e.g. if the learning algorithm is only capable of learning from positive examples.
-
-
Constructor Summary
Constructors Constructor Description AbstractDFAPassiveLearnerIT()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract <I> void
addLearnerVariants(Alphabet<I> alphabet, PassiveLearnerVariantList<DFA<?,I>,I,Boolean> variants)
Adds, for a given setup, all the variants of the DFA learner to be tested to the specifiedvariant list
.Object[]
createExampleITCases()
protected <I> Collection<DefaultQuery<I,Boolean>>
generateSamplesInternal(Alphabet<I> alphabet, DFA<?,I> reference)
Utility method, that may be overriden by subclasses.
-
-
-
Method Detail
-
createExampleITCases
@Factory public Object[] createExampleITCases()
-
generateSamplesInternal
protected <I> Collection<DefaultQuery<I,Boolean>> generateSamplesInternal(Alphabet<I> alphabet, DFA<?,I> reference)
Utility method, that may be overriden by subclasses.- Type Parameters:
I
- input symbol type- Parameters:
alphabet
- the alphabet of the target systemreference
- the reference system from which samples will be drawn- Returns:
- the collection of generated queries used for learning
-
addLearnerVariants
protected abstract <I> void addLearnerVariants(Alphabet<I> alphabet, PassiveLearnerVariantList<DFA<?,I>,I,Boolean> variants)
Adds, for a given setup, all the variants of the DFA learner to be tested to the specifiedvariant list
.- Parameters:
alphabet
- the input alphabetvariants
- list to add the learner variants to
-
-