Module de.learnlib.filter.reuse
Package de.learnlib.filter.reuse.tree
Class ReuseTreeBuilder<S,I,O>
- java.lang.Object
-
- de.learnlib.filter.reuse.tree.ReuseTreeBuilder<S,I,O>
-
-
Constructor Summary
Constructors Constructor Description ReuseTreeBuilder(net.automatalib.alphabet.Alphabet<I> alphabet)
Creates a new builder (and may set default values for some parameters).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReuseTree<S,I,O>
build()
Creates a newReuseTree
instance with the configured parameters.ReuseTreeBuilder<S,I,O>
withAccessPolicy(BoundedDeque.AccessPolicy accessPolicy)
Sets the new value for the parameteraccessPolicy
and returnsthis
builder instance.ReuseTreeBuilder<S,I,O>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.ReuseTreeBuilder<S,I,O>
withEnabledSystemStateInvalidation(boolean enabledSystemStateInvalidation)
Sets the new value for the parameterenabledSystemStateInvalidation
and returnsthis
builder instance.ReuseTreeBuilder<S,I,O>
withEvictPolicy(BoundedDeque.EvictPolicy evictPolicy)
Sets the new value for the parameterevictPolicy
and returnsthis
builder instance.ReuseTreeBuilder<S,I,O>
withFailureOutputs(Set<O> failureOutputs)
Sets the new value for the parameterfailureOutputs
and returnsthis
builder instance.ReuseTreeBuilder<S,I,O>
withInvariantInputs(Set<I> invariantInputs)
Sets the new value for the parameterinvariantInputs
and returnsthis
builder instance.ReuseTreeBuilder<S,I,O>
withMaxSystemStates(int maxSystemStates)
Sets the new value for the parametermaxSystemStates
and returnsthis
builder instance.ReuseTreeBuilder<S,I,O>
withSystemStateHandler(SystemStateHandler<S> systemStateHandler)
Sets the new value for the parametersystemStateHandler
and returnsthis
builder instance.
-
-
-
Constructor Detail
-
ReuseTreeBuilder
public ReuseTreeBuilder(net.automatalib.alphabet.Alphabet<I> alphabet)
Creates a new builder (and may set default values for some parameters).- Parameters:
alphabet
- the value used to initialize parameteralphabet
-
-
Method Detail
-
withAlphabet
public ReuseTreeBuilder<S,I,O> withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.- Parameters:
alphabet
- the new value for the parameteralphabet
- Returns:
- the current builder instance
-
withEnabledSystemStateInvalidation
public ReuseTreeBuilder<S,I,O> withEnabledSystemStateInvalidation(boolean enabledSystemStateInvalidation)
Sets the new value for the parameterenabledSystemStateInvalidation
and returnsthis
builder instance.- Parameters:
enabledSystemStateInvalidation
- the new value for the parameterenabledSystemStateInvalidation
- Returns:
- the current builder instance
-
withSystemStateHandler
public ReuseTreeBuilder<S,I,O> withSystemStateHandler(SystemStateHandler<S> systemStateHandler)
Sets the new value for the parametersystemStateHandler
and returnsthis
builder instance.- Parameters:
systemStateHandler
- the new value for the parametersystemStateHandler
- Returns:
- the current builder instance
-
withInvariantInputs
public ReuseTreeBuilder<S,I,O> withInvariantInputs(Set<I> invariantInputs)
Sets the new value for the parameterinvariantInputs
and returnsthis
builder instance.- Parameters:
invariantInputs
- the new value for the parameterinvariantInputs
- Returns:
- the current builder instance
-
withFailureOutputs
public ReuseTreeBuilder<S,I,O> withFailureOutputs(Set<O> failureOutputs)
Sets the new value for the parameterfailureOutputs
and returnsthis
builder instance.- Parameters:
failureOutputs
- the new value for the parameterfailureOutputs
- Returns:
- the current builder instance
-
withMaxSystemStates
public ReuseTreeBuilder<S,I,O> withMaxSystemStates(int maxSystemStates)
Sets the new value for the parametermaxSystemStates
and returnsthis
builder instance.- Parameters:
maxSystemStates
- the new value for the parametermaxSystemStates
- Returns:
- the current builder instance
-
withAccessPolicy
public ReuseTreeBuilder<S,I,O> withAccessPolicy(BoundedDeque.AccessPolicy accessPolicy)
Sets the new value for the parameteraccessPolicy
and returnsthis
builder instance.- Parameters:
accessPolicy
- the new value for the parameteraccessPolicy
- Returns:
- the current builder instance
-
withEvictPolicy
public ReuseTreeBuilder<S,I,O> withEvictPolicy(BoundedDeque.EvictPolicy evictPolicy)
Sets the new value for the parameterevictPolicy
and returnsthis
builder instance.- Parameters:
evictPolicy
- the new value for the parameterevictPolicy
- Returns:
- the current builder instance
-
-