Class IncrementalMealyTreeBuilder<I,O>
- java.lang.Object
- 
- net.automatalib.incremental.mealy.tree.IncrementalMealyTreeBuilder<I,O>
 
- 
- Type Parameters:
- I- input symbol class
- O- output symbol class
 - All Implemented Interfaces:
- SupportsGrowingAlphabet<I>,- InputAlphabetHolder<I>,- IncrementalConstruction<MealyMachine<?,I,?,O>,I>,- IncrementalMealyBuilder<I,O>,- MealyBuilder<I,O>
 
 public class IncrementalMealyTreeBuilder<I,O> extends Object implements IncrementalMealyBuilder<I,O> Incrementally builds a tree with transition outputs from a set of input and corresponding output words.
- 
- 
Constructor SummaryConstructors Constructor Description IncrementalMealyTreeBuilder(Alphabet<I> inputAlphabet)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAlphabetSymbol(I symbol)Graph<net.automatalib.incremental.mealy.tree.Node<O>,?>asGraph()Retrieves a graph view of the current state of the construction.MealyTransitionSystem<?,I,?,O>asTransitionSystem()Retrieves a transition system view of the current state of the construction.@Nullable Word<I>findSeparatingWord(MealyMachine<?,I,?,O> target, Collection<? extends I> inputs, boolean omitUndefined)Checks the current state of the construction against a given target model, and returns a word exposing a difference if there is one.Alphabet<I>getInputAlphabet()voidinsert(Word<? extends I> input, Word<? extends O> outputWord)Incorporates a pair of input/output words into the stored information.booleanlookup(Word<? extends I> word, List<? super O> output)Retrieves the output word for the given input word.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface net.automatalib.incremental.IncrementalConstructionasGraph, findSeparatingWord
 - 
Methods inherited from interface net.automatalib.incremental.mealy.MealyBuilderasTransitionSystem, hasDefinitiveInformation, lookup, lookup
 - 
Methods inherited from interface net.automatalib.alphabet.SupportsGrowingAlphabetaddAlphabetSymbol
 
- 
 
- 
- 
- 
Method Detail- 
insertpublic void insert(Word<? extends I> input, Word<? extends O> outputWord) Description copied from interface:IncrementalMealyBuilderIncorporates a pair of input/output words into the stored information.- Specified by:
- insertin interface- IncrementalMealyBuilder<I,O>
- Parameters:
- input- the input word
- outputWord- the corresponding output word
 
 - 
addAlphabetSymbolpublic void addAlphabetSymbol(I symbol) - Specified by:
- addAlphabetSymbolin interface- SupportsGrowingAlphabet<I>
 
 - 
getInputAlphabetpublic Alphabet<I> getInputAlphabet() - Specified by:
- getInputAlphabetin interface- InputAlphabetHolder<I>
 
 - 
asGraphpublic Graph<net.automatalib.incremental.mealy.tree.Node<O>,?> asGraph() Description copied from interface:IncrementalConstructionRetrieves a graph view of the current state of the construction. The graph model should be backed by the construction, i.e., subsequent changes will be reflected in the graph model.- Specified by:
- asGraphin interface- IncrementalConstruction<I,O>
- Returns:
- a graph view on the current state of the construction
 
 - 
lookuppublic boolean lookup(Word<? extends I> word, List<? super O> output) Description copied from interface:MealyBuilderRetrieves 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.- Specified by:
- lookupin interface- MealyBuilder<N,I>
- Parameters:
- word- the input word
- output- a consumer for constructing the output word
- Returns:
- trueif the information contained was complete (in this case,- word.length() == output.size()will hold),- falseotherwise.
 
 - 
findSeparatingWordpublic @Nullable Word<I> findSeparatingWord(MealyMachine<?,I,?,O> target, Collection<? extends I> inputs, boolean omitUndefined) Description copied from interface:IncrementalConstructionChecks the current state of the construction against a given target model, and returns a word exposing a difference if there is one.- Specified by:
- findSeparatingWordin interface- IncrementalConstruction<N,I>
- Parameters:
- target- the target automaton model
- inputs- the set of input symbols to consider
- omitUndefined- if this is set to- true, then undefined transitions in the- targetmodel will be interpreted as "unspecified/don't know" and omitted in the equivalence test. Otherwise, they will be interpreted in the usual manner (e.g., non-accepting sink in case of DFAs).
- Returns:
- a separating word, or nullif no difference could be found.
 
 - 
asTransitionSystempublic 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 interface- IncrementalConstruction<N,I>
- Specified by:
- asTransitionSystemin interface- MealyBuilder<N,I>
- Returns:
- a transition system view on the current state of the construction
 
 
- 
 
-