Package de.learnlib.filter.cache.sul
Class StateLocalInputSULCache<I,O>
- java.lang.Object
-
- de.learnlib.filter.cache.sul.StateLocalInputSULCache<I,O>
-
- Type Parameters:
I- input symbol typeO- output symbol type
- All Implemented Interfaces:
LearningCache<net.automatalib.automaton.transducer.MealyMachine<?,I,?,O>,I,net.automatalib.word.Word<O>>,LearningCache.MealyLearningCache<I,O>,Resumable<StateLocalInputSULCache.StateLocalInputSULCacheState<I,O>>,StateLocalInputSUL<I,O>,SUL<I,O>,net.automatalib.alphabet.SupportsGrowingAlphabet<I>
- Direct Known Subclasses:
ThreadSafeStateLocalInputSULCache
public class StateLocalInputSULCache<I,O> extends Object implements StateLocalInputSUL<I,O>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStateLocalInputSULCache.StateLocalInputSULCacheState<I,O>-
Nested classes/interfaces inherited from interface de.learnlib.filter.cache.LearningCache
LearningCache.DFALearningCache<I>, LearningCache.MealyLearningCache<I,O>, LearningCache.MooreLearningCache<I,O>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAlphabetSymbol(I symbol)booleancanFork()EquivalenceOracle.MealyEquivalenceOracle<I,O>createCacheConsistencyTest()Creates a cache consistency test.Collection<I>currentlyEnabledInputs()StateLocalInputSUL<I,O>fork()voidpost()voidpre()voidresume(C state)intsize()Ostep(I in)Csuspend()
-
-
-
Method Detail
-
fork
public StateLocalInputSUL<I,O> fork()
-
currentlyEnabledInputs
public Collection<I> currentlyEnabledInputs()
- Specified by:
currentlyEnabledInputsin interfaceStateLocalInputSUL<I,O>
-
createCacheConsistencyTest
public EquivalenceOracle.MealyEquivalenceOracle<I,O> createCacheConsistencyTest()
Description copied from interface:LearningCacheCreates a cache consistency test. A cache consistency test is an equivalence oracle which checks a given hypothesis against the current contents of the cache. Hence, no queries are posed to the underlying system.The created cache consistency test is backed by the cache contents. This method does not need to be invoked repeatedly when the cache contents change.
- Specified by:
createCacheConsistencyTestin interfaceLearningCache<I,O,C extends de.learnlib.filter.cache.sul.AbstractSULCache.SULCacheState<I,O>>- Returns:
- a cache consistency test for the contents of this cache
-
addAlphabetSymbol
public void addAlphabetSymbol(I symbol)
- Specified by:
addAlphabetSymbolin interfacenet.automatalib.alphabet.SupportsGrowingAlphabet<I>
-
size
public int size()
-
-