Module de.learnlib.algorithm.ttt
Package de.learnlib.algorithm.ttt.moore
Class TTTLearnerMooreBuilder<I,O>
- java.lang.Object
-
- de.learnlib.algorithm.ttt.moore.TTTLearnerMooreBuilder<I,O>
-
- Type Parameters:
I
- input symbol typeO
- output symbols type
public final class TTTLearnerMooreBuilder<I,O> extends Object
A builder for constructingTTTLearnerMoore
instances.
-
-
Constructor Summary
Constructors Constructor Description TTTLearnerMooreBuilder()
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 TTTLearnerMoore<I,O>
create()
Creates a newTTTLearnerMoore
instance with the configured parameters.net.automatalib.alphabet.Alphabet<I>
getAlphabet()
Returns the current value for the parameteralphabet
.AcexAnalyzer
getAnalyzer()
Returns the current value for the parameteranalyzer
.MembershipOracle<I,net.automatalib.word.Word<O>>
getOracle()
Returns the current value for the parameteroracle
.void
setAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
.void
setAnalyzer(AcexAnalyzer analyzer)
Sets the new value for the parameteranalyzer
.void
setOracle(MembershipOracle<I,net.automatalib.word.Word<O>> oracle)
Sets the new value for the parameteroracle
.TTTLearnerMooreBuilder<I,O>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.TTTLearnerMooreBuilder<I,O>
withAnalyzer(AcexAnalyzer analyzer)
Sets the new value for the parameteranalyzer
and returnsthis
builder instance.TTTLearnerMooreBuilder<I,O>
withOracle(MembershipOracle<I,net.automatalib.word.Word<O>> oracle)
Sets the new value for the parameteroracle
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 TTTLearnerMooreBuilder<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 MembershipOracle<I,net.automatalib.word.Word<O>> getOracle()
Returns the current value for the parameteroracle
.- Returns:
- the current value for the parameter
oracle
-
setOracle
public void setOracle(MembershipOracle<I,net.automatalib.word.Word<O>> oracle)
Sets the new value for the parameteroracle
.- Parameters:
oracle
- the new value for the parameteroracle
-
withOracle
public TTTLearnerMooreBuilder<I,O> withOracle(MembershipOracle<I,net.automatalib.word.Word<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
-
getAnalyzer
public AcexAnalyzer getAnalyzer()
Returns the current value for the parameteranalyzer
.- Returns:
- the current value for the parameter
analyzer
-
setAnalyzer
public void setAnalyzer(AcexAnalyzer analyzer)
Sets the new value for the parameteranalyzer
.- Parameters:
analyzer
- the new value for the parameteranalyzer
-
withAnalyzer
public TTTLearnerMooreBuilder<I,O> withAnalyzer(AcexAnalyzer analyzer)
Sets the new value for the parameteranalyzer
and returnsthis
builder instance.- Parameters:
analyzer
- the new value for the parameteranalyzer
- Returns:
- the current builder instance
-
create
public TTTLearnerMoore<I,O> create()
Creates a newTTTLearnerMoore
instance with the configured parameters.- Returns:
- the created instance
-
-