Module de.learnlib.testsupport
Package de.learnlib.testsupport
Class AbstractResumableLearnerTest<L extends Resumable<T> & LearningAlgorithm<M,I,D>,M extends net.automatalib.automaton.UniversalDeterministicAutomaton<?,I,?,?,?> & net.automatalib.automaton.concept.Output<I,D>,OR,I,D,T>
- java.lang.Object
-
- de.learnlib.testsupport.AbstractResumableLearnerTest<L,M,OR,I,D,T>
-
- Type Parameters:
L- learner typeM- hypothesis typeOR- membership oracle typeI- input symbol typeD- output domain typeT- state type
- Direct Known Subclasses:
AbstractResumableLearnerDFATest,AbstractResumableLearnerMealyTest,AbstractResumableLearnerMooreTest
public abstract class AbstractResumableLearnerTest<L extends Resumable<T> & LearningAlgorithm<M,I,D>,M extends net.automatalib.automaton.UniversalDeterministicAutomaton<?,I,?,?,?> & net.automatalib.automaton.concept.Output<I,D>,OR,I,D,T> extends Object
Test class that checks the workflow of a learning algorithm that implementsResumable.
-
-
Field Summary
Fields Modifier and Type Field Description protected static intRANDOM_SEED
-
Constructor Summary
Constructors Constructor Description AbstractResumableLearnerTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract net.automatalib.alphabet.Alphabet<I>getInitialAlphabet()protected abstract LgetLearner(OR oracle, net.automatalib.alphabet.Alphabet<I> alphabet)protected abstract ORgetOracle(M target)protected abstract intgetRounds()protected abstract MgetTarget(net.automatalib.alphabet.Alphabet<I> alphabet)voidsetup()voidtestSuspendAndResumeLearner()
-
-
-
Field Detail
-
RANDOM_SEED
protected static final int RANDOM_SEED
- See Also:
- Constant Field Values
-
-
Method Detail
-
setup
@BeforeClass public void setup()
-
getInitialAlphabet
protected abstract net.automatalib.alphabet.Alphabet<I> getInitialAlphabet()
-
getLearner
protected abstract L getLearner(OR oracle, net.automatalib.alphabet.Alphabet<I> alphabet)
-
getRounds
protected abstract int getRounds()
-
testSuspendAndResumeLearner
public void testSuspendAndResumeLearner()
-
-