Module de.learnlib.algorithm.adt
Class ADTLearnerBuilder<I,O>
- java.lang.Object
-
- de.learnlib.algorithm.adt.learner.ADTLearnerBuilder<I,O>
-
- Type Parameters:
I
- input symbol typeO
- output symbol type
public final class ADTLearnerBuilder<I,O> extends Object
A builder for constructingADTLearner
instances.
-
-
Constructor Summary
Constructors Constructor Description ADTLearnerBuilder()
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 ADTLearner<I,O>
create()
Creates a newADTLearner
instance with the configured parameters.ADTExtender
getAdtExtender()
Returns the current value for the parameteradtExtender
.net.automatalib.alphabet.Alphabet<I>
getAlphabet()
Returns the current value for the parameteralphabet
.LeafSplitter
getLeafSplitter()
Returns the current value for the parameterleafSplitter
.AdaptiveMembershipOracle<I,O>
getOracle()
Returns the current value for the parameteroracle
.SubtreeReplacer
getSubtreeReplacer()
Returns the current value for the parametersubtreeReplacer
.LocalSuffixFinder<? super I,? super net.automatalib.word.Word<O>>
getSuffixFinder()
Returns the current value for the parametersuffixFinder
.boolean
getUseObservationTree()
Returns the current value for the parameteruseObservationTree
.void
setAdtExtender(ADTExtender adtExtender)
Sets the new value for the parameteradtExtender
.void
setAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
.void
setLeafSplitter(LeafSplitter leafSplitter)
Sets the new value for the parameterleafSplitter
.void
setOracle(AdaptiveMembershipOracle<I,O> oracle)
Sets the new value for the parameteroracle
.void
setSubtreeReplacer(SubtreeReplacer subtreeReplacer)
Sets the new value for the parametersubtreeReplacer
.void
setSuffixFinder(LocalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> suffixFinder)
Sets the new value for the parametersuffixFinder
.void
setUseObservationTree(boolean useObservationTree)
Sets the new value for the parameteruseObservationTree
.ADTLearnerBuilder<I,O>
withAdtExtender(ADTExtender adtExtender)
Sets the new value for the parameteradtExtender
and returnsthis
builder instance.ADTLearnerBuilder<I,O>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.ADTLearnerBuilder<I,O>
withLeafSplitter(LeafSplitter leafSplitter)
Sets the new value for the parameterleafSplitter
and returnsthis
builder instance.ADTLearnerBuilder<I,O>
withOracle(AdaptiveMembershipOracle<I,O> oracle)
Sets the new value for the parameteroracle
and returnsthis
builder instance.ADTLearnerBuilder<I,O>
withSubtreeReplacer(SubtreeReplacer subtreeReplacer)
Sets the new value for the parametersubtreeReplacer
and returnsthis
builder instance.ADTLearnerBuilder<I,O>
withSuffixFinder(LocalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> suffixFinder)
Sets the new value for the parametersuffixFinder
and returnsthis
builder instance.ADTLearnerBuilder<I,O>
withUseObservationTree(boolean useObservationTree)
Sets the new value for the parameteruseObservationTree
and returnsthis
builder instance.
-
-
-
Method Detail
-
getAlphabet
public net.automatalib.alphabet.Alphabet<I> getAlphabet()
Returns the current value for the parameteralphabet
.- Returns:
- the current value for the parameter
alphabet
-
setAlphabet
public void setAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
.- Parameters:
alphabet
- the new value for the parameteralphabet
-
withAlphabet
public ADTLearnerBuilder<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
-
getOracle
public AdaptiveMembershipOracle<I,O> getOracle()
Returns the current value for the parameteroracle
.- Returns:
- the current value for the parameter
oracle
-
setOracle
public void setOracle(AdaptiveMembershipOracle<I,O> oracle)
Sets the new value for the parameteroracle
.- Parameters:
oracle
- the new value for the parameteroracle
-
withOracle
public ADTLearnerBuilder<I,O> withOracle(AdaptiveMembershipOracle<I,O> oracle)
Sets the new value for the parameteroracle
and returnsthis
builder instance.- Parameters:
oracle
- the new value for the parameteroracle
- Returns:
- the current builder instance
-
getLeafSplitter
public LeafSplitter getLeafSplitter()
Returns the current value for the parameterleafSplitter
.- Returns:
- the current value for the parameter
leafSplitter
-
setLeafSplitter
public void setLeafSplitter(LeafSplitter leafSplitter)
Sets the new value for the parameterleafSplitter
.- Parameters:
leafSplitter
- the new value for the parameterleafSplitter
-
withLeafSplitter
public ADTLearnerBuilder<I,O> withLeafSplitter(LeafSplitter leafSplitter)
Sets the new value for the parameterleafSplitter
and returnsthis
builder instance.- Parameters:
leafSplitter
- the new value for the parameterleafSplitter
- Returns:
- the current builder instance
-
getAdtExtender
public ADTExtender getAdtExtender()
Returns the current value for the parameteradtExtender
.- Returns:
- the current value for the parameter
adtExtender
-
setAdtExtender
public void setAdtExtender(ADTExtender adtExtender)
Sets the new value for the parameteradtExtender
.- Parameters:
adtExtender
- the new value for the parameteradtExtender
-
withAdtExtender
public ADTLearnerBuilder<I,O> withAdtExtender(ADTExtender adtExtender)
Sets the new value for the parameteradtExtender
and returnsthis
builder instance.- Parameters:
adtExtender
- the new value for the parameteradtExtender
- Returns:
- the current builder instance
-
getSubtreeReplacer
public SubtreeReplacer getSubtreeReplacer()
Returns the current value for the parametersubtreeReplacer
.- Returns:
- the current value for the parameter
subtreeReplacer
-
setSubtreeReplacer
public void setSubtreeReplacer(SubtreeReplacer subtreeReplacer)
Sets the new value for the parametersubtreeReplacer
.- Parameters:
subtreeReplacer
- the new value for the parametersubtreeReplacer
-
withSubtreeReplacer
public ADTLearnerBuilder<I,O> withSubtreeReplacer(SubtreeReplacer subtreeReplacer)
Sets the new value for the parametersubtreeReplacer
and returnsthis
builder instance.- Parameters:
subtreeReplacer
- the new value for the parametersubtreeReplacer
- Returns:
- the current builder instance
-
getUseObservationTree
public boolean getUseObservationTree()
Returns the current value for the parameteruseObservationTree
.- Returns:
- the current value for the parameter
useObservationTree
-
setUseObservationTree
public void setUseObservationTree(boolean useObservationTree)
Sets the new value for the parameteruseObservationTree
.- Parameters:
useObservationTree
- the new value for the parameteruseObservationTree
-
withUseObservationTree
public ADTLearnerBuilder<I,O> withUseObservationTree(boolean useObservationTree)
Sets the new value for the parameteruseObservationTree
and returnsthis
builder instance.- Parameters:
useObservationTree
- the new value for the parameteruseObservationTree
- Returns:
- the current builder instance
-
getSuffixFinder
public LocalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> getSuffixFinder()
Returns the current value for the parametersuffixFinder
.- Returns:
- the current value for the parameter
suffixFinder
-
setSuffixFinder
public void setSuffixFinder(LocalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> suffixFinder)
Sets the new value for the parametersuffixFinder
.- Parameters:
suffixFinder
- the new value for the parametersuffixFinder
-
withSuffixFinder
public ADTLearnerBuilder<I,O> withSuffixFinder(LocalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> suffixFinder)
Sets the new value for the parametersuffixFinder
and returnsthis
builder instance.- Parameters:
suffixFinder
- the new value for the parametersuffixFinder
- Returns:
- the current builder instance
-
create
public ADTLearner<I,O> create()
Creates a newADTLearner
instance with the configured parameters.- Returns:
- the created instance
-
-