Class WpMethodEQOracle<I>
- java.lang.Object
-
- de.learnlib.oracle.equivalence.AbstractTestWordEQOracle<net.automatalib.automaton.procedural.SPA<?,I>,I,Boolean>
-
- de.learnlib.oracle.equivalence.spa.WpMethodEQOracle<I>
-
- Type Parameters:
I
- input symbol type
- All Implemented Interfaces:
EquivalenceOracle<net.automatalib.automaton.procedural.SPA<?,I>,I,Boolean>
public class WpMethodEQOracle<I> extends AbstractTestWordEQOracle<net.automatalib.automaton.procedural.SPA<?,I>,I,Boolean>
AnSPA
version ofWpMethodEQOracle
which generates test sequences based on the partial W-method for each procedure.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.learnlib.oracle.EquivalenceOracle
EquivalenceOracle.DFAEquivalenceOracle<I>, EquivalenceOracle.MealyEquivalenceOracle<I,O>, EquivalenceOracle.MooreEquivalenceOracle<I,O>
-
-
Constructor Summary
Constructors Constructor Description WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle)
Constructor.WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle, int lookahead)
Constructor.WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle, int lookahead, int expectedSize)
Constructor.WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle, int lookahead, int expectedSize, int batchSize)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stream<net.automatalib.word.Word<I>>
generateTestWords(net.automatalib.automaton.procedural.SPA<?,I> hypothesis, Collection<? extends I> inputs)
Generate the stream of test words that should be used for the current equivalence check cycle.-
Methods inherited from class de.learnlib.oracle.equivalence.AbstractTestWordEQOracle
findCounterExample
-
-
-
-
Constructor Detail
-
WpMethodEQOracle
public WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle)
Constructor. Convenience method forWpMethodEQOracle(MembershipOracle, int)
that setslookahead
to 1.- Parameters:
sulOracle
- interface to the system under learning
-
WpMethodEQOracle
public WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle, int lookahead)
Constructor. Convenience method forWpMethodEQOracle(MembershipOracle, int, int)
that setsexpectedSize
to 0.- Parameters:
sulOracle
- interface to the system under learninglookahead
- the maximum length of the "middle" part of the test cases
-
WpMethodEQOracle
public WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle, int lookahead, int expectedSize)
Constructor. Convenience method forWpMethodEQOracle(MembershipOracle, int, int, int)
that setsbatchSize
to 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
-
WpMethodEQOracle
public WpMethodEQOracle(MembershipOracle<I,Boolean> sulOracle, int lookahead, int expectedSize, int batchSize)
Constructor. UsesMath.max
(lookahead, expectedSize -
hypothesis.size()
)
(for each proceduralhypothesis
) 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:
WMethodTestsIterator
-
-
Method Detail
-
generateTestWords
protected Stream<net.automatalib.word.Word<I>> generateTestWords(net.automatalib.automaton.procedural.SPA<?,I> hypothesis, Collection<? extends I> inputs)
Description copied from class:AbstractTestWordEQOracle
Generate the stream of test words that should be used for the current equivalence check cycle.- Specified by:
generateTestWords
in classAbstractTestWordEQOracle<net.automatalib.automaton.procedural.SPA<?,I>,I,Boolean>
- Parameters:
hypothesis
- the current hypothesis of the learning algorithminputs
- the collection of inputs to consider- Returns:
- the stream of test words used for equivalence testing
- See Also:
EquivalenceOracle.findCounterExample(Object, Collection)
-
-