A
- the automaton typeI
- the input typeD
- the output typepublic class CExFirstOracle<A extends Output<I,D>,I,D> extends Object implements BlackBoxOracle<A,I,D>
This implementation may be used when refining a hypothesis is inexpensive compared to disproving propertyOracles.
DisproveFirstOracle
BlackBoxOracle.DFABlackBoxOracle<I>, BlackBoxOracle.MealyBlackBoxOracle<I,O>
InclusionOracle.DFAInclusionOracle<I>, InclusionOracle.MealyInclusionOracle<I,O>
EquivalenceOracle.DFAEquivalenceOracle<I>, EquivalenceOracle.MealyEquivalenceOracle<I,O>
Constructor and Description |
---|
CExFirstOracle() |
CExFirstOracle(Collection<? extends PropertyOracle<I,? super A,?,D>> propertyOracles) |
CExFirstOracle(PropertyOracle<I,A,?,D> propertyOracle) |
Modifier and Type | Method and Description |
---|---|
@Nullable DefaultQuery<I,D> |
findCounterExample(A hypothesis,
Collection<? extends I> inputs)
Searches for a counterexample disproving the subjected hypothesis.
|
List<PropertyOracle<I,? super A,?,D>> |
getPropertyOracles()
Returns the property oracles that this black-box oracle uses to evaluate properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCounterExample
public CExFirstOracle()
public CExFirstOracle(PropertyOracle<I,A,?,D> propertyOracle)
public CExFirstOracle(Collection<? extends PropertyOracle<I,? super A,?,D>> propertyOracles)
public List<PropertyOracle<I,? super A,?,D>> getPropertyOracles()
BlackBoxOracle
getPropertyOracles
in interface BlackBoxOracle<A extends Output<I,D>,I,D>
public @Nullable DefaultQuery<I,D> findCounterExample(A hypothesis, Collection<? extends I> inputs)
EquivalenceOracle
null
is returned.findCounterExample
in interface EquivalenceOracle<A extends Output<I,D>,I,D>
hypothesis
- the conjectureinputs
- the set of inputs to consider, this should be a subset of the input alphabet of the provided hypothesisnull
if no counterexample could be found. In case a
non-null
value is returned, the output field in the DefaultQuery
contains the SUL output for the
respective query.Copyright © 2020. All rights reserved.