Class WMethodEQOracle<I,O>
java.lang.Object
de.learnlib.oracle.equivalence.AbstractTestWordEQOracle<SPMM<?,I,?,O>,I,Word<O>>
de.learnlib.oracle.equivalence.spmm.WMethodEQOracle<I,O>
- Type Parameters:
I- input symbol type
- All Implemented Interfaces:
EquivalenceOracle<SPMM<?,,I, ?, O>, I, Word<O>> TestWordGenerator<SPMM<?,I, ?, O>, I>
Implements an equivalence test by applying the W-method test on the procedures of the given hypothesis
SBA,
as described in "Testing software design modeled by finite state machines" by T.S. Chow.-
Nested Class Summary
Nested classes/interfaces inherited from interface de.learnlib.oracle.EquivalenceOracle
EquivalenceOracle.DFAEquivalenceOracle<I>, EquivalenceOracle.MealyEquivalenceOracle<I,O>, EquivalenceOracle.MMLTEquivalenceOracle<I, O>, EquivalenceOracle.MooreEquivalenceOracle<I, O> -
Constructor Summary
ConstructorsConstructorDescriptionWMethodEQOracle(MembershipOracle<I, Word<O>> sulOracle) Constructor.WMethodEQOracle(MembershipOracle<I, Word<O>> sulOracle, int lookahead) Constructor.WMethodEQOracle(MembershipOracle<I, Word<O>> sulOracle, int lookahead, int expectedSize) Constructor.WMethodEQOracle(MembershipOracle<I, Word<O>> sulOracle, int lookahead, int expectedSize, int batchSize) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongenerateTestWords(SPMM<?, I, ?, O> hypothesis, Collection<? extends I> inputs) Generate the stream of words that should be evaluated for the given hypothesis.Methods inherited from class de.learnlib.oracle.equivalence.AbstractTestWordEQOracle
findCounterExample
-
Constructor Details
-
WMethodEQOracle
Constructor. Convenience method forWMethodEQOracle(MembershipOracle, int)that setslookaheadto 1.- Parameters:
sulOracle- interface to the system under learning
-
WMethodEQOracle
Constructor. Convenience method forWMethodEQOracle(MembershipOracle, int, int)that setsexpectedSizeto 0.- Parameters:
sulOracle- interface to the system under learninglookahead- the maximum length of the "middle" part of the test cases
-
WMethodEQOracle
Constructor. Convenience method forWMethodEQOracle(MembershipOracle, int, int, int)that setsbatchSizeto 1.- Parameters:
sulOracle- interface to the system under learninglookahead- the (minimal) maximum length of the "middle" part of the test casesexpectedSize- the expected size of the system under learning
-
WMethodEQOracle
public WMethodEQOracle(MembershipOracle<I, Word<O>> sulOracle, int lookahead, int expectedSize, int batchSize) Constructor. UsesMath.max(lookahead, expectedSize -hypothesis.size())to determine the maximum length of sequences, that should be appended to the transition-cover part of the test sequence to account for the fact that the system under learning may have more states than the current hypothesis.- Parameters:
sulOracle- interface to the system under learninglookahead- the (minimal) maximum length of the "middle" part of the test casesexpectedSize- the expected size of the system under learningbatchSize- size of the batches sent to the membership oracle- See Also:
-
-
Method Details
-
generateTestWords
Description copied from interface:TestWordGeneratorGenerate the stream of words that should be evaluated for the given hypothesis.- Parameters:
hypothesis- the current hypothesisinputs- the collection of inputs to consider- Returns:
- the stream of test words used for (equivalence) testing
- See Also:
-