I
- the input typeP
- the property typepublic class SizeDFAModelCheckerCache<I,P,R> extends Object implements ModelCheckerCache.DFAModelCheckerCache<I,P,R>
ModelChecker.findCounterExample(Object, Collection, Object)
is called with a DFA with a size different, and
an input alphabet different than the previous call.
In active learning the automaton increases in size with every proper counter example. Hence these caches are useful in between calls to disproving properties and finding counter examples to hypotheses.
ModelCheckerCache.DFAModelCheckerCache<I,P,R>, ModelCheckerCache.MealyModelCheckerCache<I,O,P,R>
ModelChecker.DFAModelChecker<I,P,R>, ModelChecker.MealyModelChecker<I,O,P,R>
Constructor and Description |
---|
SizeDFAModelCheckerCache(ModelChecker.DFAModelChecker<I,P,R> modelChecker) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the cache.
|
R |
findCounterExample(A automaton,
Collection<? extends I> inputs,
P property)
The cached implementation for finding counter examples.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear
findCounterExample
public SizeDFAModelCheckerCache(ModelChecker.DFAModelChecker<I,P,R> modelChecker)
@Nullable public R findCounterExample(A automaton, Collection<? extends I> inputs, P property)
findCounterExample
in interface ModelChecker<I,A extends SimpleAutomaton<?,I>,P,R>
automaton
- the automaton to check the property on.inputs
- the alphabet.property
- the property.null
if no counter examples exist.ModelChecker.findCounterExample(Object, Collection, Object)
public void clear()
ModelCheckerCache
clear
in interface ModelCheckerCache<I,A extends SimpleAutomaton<?,I>,P,R>
Copyright © 2019. All rights reserved.