Interface MealyBuilder<I,O>
-
- Type Parameters:
I- input symbol typeO- output symbol type
- All Superinterfaces:
IncrementalConstruction<MealyMachine<?,I,?,O>,I>,SupportsGrowingAlphabet<I>
- All Known Subinterfaces:
AdaptiveMealyBuilder<I,O>,IncrementalMealyBuilder<I,O>
- All Known Implementing Classes:
AdaptiveMealyTreeBuilder,DynamicIncrementalMealyTreeBuilder,IncrementalMealyDAGBuilder,IncrementalMealyTreeBuilder
public interface MealyBuilder<I,O> extends IncrementalConstruction<MealyMachine<?,I,?,O>,I>, SupportsGrowingAlphabet<I>
A utility interface to share functionality betweenIncrementalMealyBuilders andAdaptiveMealyBuilders.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MealyTransitionSystem<?,I,?,O>asTransitionSystem()Retrieves a transition system view of the current state of the construction.default booleanhasDefinitiveInformation(Word<? extends I> word)Checks whether this class has definitive information about a given word.default Word<O>lookup(Word<? extends I> inputWord)booleanlookup(Word<? extends I> inputWord, List<? super O> output)Retrieves the output word for the given input word.-
Methods inherited from interface net.automatalib.incremental.IncrementalConstruction
asGraph, findSeparatingWord
-
Methods inherited from interface net.automatalib.alphabet.SupportsGrowingAlphabet
addAlphabetSymbol
-
-
-
-
Method Detail
-
lookup
boolean lookup(Word<? extends I> inputWord, List<? super O> output)
Retrieves the output word for the given input word. If no definitive information for the input word exists, the output for the longest known prefix will be returned.- Parameters:
inputWord- the input wordoutput- a consumer for constructing the output word- Returns:
trueif the information contained was complete (in this case,word.length() == output.size()will hold),falseotherwise.
-
hasDefinitiveInformation
default boolean hasDefinitiveInformation(Word<? extends I> word)
Description copied from interface:IncrementalConstructionChecks whether this class has definitive information about a given word.- Specified by:
hasDefinitiveInformationin interfaceIncrementalConstruction<I,O>- Parameters:
word- the word- Returns:
trueif this class has definitive information about the word,falseotherwise.
-
asTransitionSystem
MealyTransitionSystem<?,I,?,O> asTransitionSystem()
Description copied from interface:IncrementalConstructionRetrieves a transition system view of the current state of the construction. The transition system model should be backed by the construction, i.e., subsequent changes will be reflected in the transition system.- Specified by:
asTransitionSystemin interfaceIncrementalConstruction<I,O>- Returns:
- a transition system view on the current state of the construction
-
-