Package de.learnlib.oracle.equivalence
Class EQOracleChain<A,I,D>
- java.lang.Object
-
- de.learnlib.oracle.equivalence.EQOracleChain<A,I,D>
-
- All Implemented Interfaces:
EquivalenceOracle<A,I,D>
- Direct Known Subclasses:
DFAEQOracleChain
,MealyEQOracleChain
,MooreEQOracleChain
public class EQOracleChain<A,I,D> extends Object implements EquivalenceOracle<A,I,D>
-
-
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 EQOracleChain(EquivalenceOracle<? super A,I,D>... oracles)
EQOracleChain(List<? extends EquivalenceOracle<? super A,I,D>> oracles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOracle(EquivalenceOracle<? super A,I,D> oracle)
@Nullable DefaultQuery<I,D>
findCounterExample(A hypothesis, Collection<? extends I> inputs)
Searches for a counterexample disproving the subjected hypothesis.
-
-
-
Constructor Detail
-
EQOracleChain
@SafeVarargs public EQOracleChain(EquivalenceOracle<? super A,I,D>... oracles)
-
EQOracleChain
public EQOracleChain(List<? extends EquivalenceOracle<? super A,I,D>> oracles)
-
-
Method Detail
-
addOracle
public void addOracle(EquivalenceOracle<? super A,I,D> oracle)
-
findCounterExample
public @Nullable DefaultQuery<I,D> findCounterExample(A hypothesis, Collection<? extends I> inputs)
Description copied from interface:EquivalenceOracle
Searches for a counterexample disproving the subjected hypothesis. A counterexample is query which, when performed on the SUL, yields a different output than what was predicted by the hypothesis. If no counterexample could be found (this does not necessarily mean that none exists),null
is returned.- Specified by:
findCounterExample
in interfaceEquivalenceOracle<A,I,D>
- Parameters:
hypothesis
- the conjectureinputs
- the set of inputs to consider, this should be a subset of the input alphabet of the provided hypothesis- Returns:
- a query exposing different behavior, or
null
if no counterexample could be found. In case a non-null
value is returned, the output field in theDefaultQuery
contains the SUL output for the respective query.
-
-