Package net.maswag.falcaun.oracle
Class MealyFixedSetEQOracle
java.lang.Object
de.learnlib.oracle.equivalence.AbstractTestWordEQOracle<net.automatalib.automaton.transducer.MealyMachine<?,String,?,String>,String,net.automatalib.word.Word<String>>
net.maswag.falcaun.oracle.MealyFixedSetEQOracle
- All Implemented Interfaces:
EquivalenceOracle<net.automatalib.automaton.transducer.MealyMachine<?,,String, ?, String>, String, net.automatalib.word.Word<String>> EquivalenceOracle.MealyEquivalenceOracle<String,,String> TestWordGenerator<net.automatalib.automaton.transducer.MealyMachine<?,,String, ?, String>, String> EvaluationCountable,EvaluationCountable.MealyEquivalenceOracle<String,String>
public class MealyFixedSetEQOracle
extends AbstractTestWordEQOracle<net.automatalib.automaton.transducer.MealyMachine<?,String,?,String>,String,net.automatalib.word.Word<String>>
implements EquivalenceOracle.MealyEquivalenceOracle<String,String>, EvaluationCountable.MealyEquivalenceOracle<String,String>
Equivalence oracle that tests a fixed list of input words in the order of their addition.
Each word is answered by the membership oracle when a hypothesis is tested, i.e., the outputs are not fixed when the
words are added. The membership queries, the comparison with the hypothesis, and the termination at the first
counterexample are by AbstractTestWordEQOracle.
This oracle does not check whether the properties are already disproved. BlackBoxVerifier.addEqOracle(de.learnlib.oracle.EquivalenceOracle.MealyEquivalenceOracle<java.lang.String, java.lang.String>)
wraps it with StopDisprovedEQOracle for that.
-
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> Nested classes/interfaces inherited from interface net.maswag.falcaun.oracle.EvaluationCountable
EvaluationCountable.MealyEquivalenceOracle<I,O>, EvaluationCountable.Sum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe number of the words evaluated by this oracle, including the ones answered by a cache of the membership oracle. -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAll(Collection<net.automatalib.word.Word<String>> samples) generateTestWords(net.automatalib.automaton.transducer.MealyMachine<?, String, ?, String> hypothesis, Collection<? extends String> inputs) Methods inherited from class de.learnlib.oracle.equivalence.AbstractTestWordEQOracle
findCounterExampleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.learnlib.oracle.EquivalenceOracle
findCounterExampleMethods inherited from interface net.maswag.falcaun.oracle.EvaluationCountable
getEvaluateCount
-
Field Details
-
fixedSamples
-
evaluateCount
private int evaluateCountThe number of the words evaluated by this oracle, including the ones answered by a cache of the membership oracle. A word is counted each time it is evaluated.
-
-
Constructor Details
-
MealyFixedSetEQOracle
- Parameters:
memOracle- the membership oracle used to test the equivalence.
-
-
Method Details
-
add
-
addAll
-
generateTestWords
public Stream<net.automatalib.word.Word<String>> generateTestWords(net.automatalib.automaton.transducer.MealyMachine<?, String, ?, String> hypothesis, Collection<? extends String> inputs) Without batching,
AbstractTestWordEQOracleconsumes the stream one word at a time and stops at the first counterexample. Thus, counting the words when they are consumed counts exactly the evaluated words.- Specified by:
generateTestWordsin interfaceTestWordGenerator<net.automatalib.automaton.transducer.MealyMachine<?,String, ?, String>, String>
-