Module de.learnlib.algorithm.ttt
Package de.learnlib.algorithm.ttt.dfa
Class TTTLearnerDFABuilder<I>
- java.lang.Object
-
- de.learnlib.algorithm.ttt.dfa.TTTLearnerDFABuilder<I>
-
- Type Parameters:
I
- input symbol type
public final class TTTLearnerDFABuilder<I> extends Object
A builder for constructingTTTLearnerDFA
instances.
-
-
Constructor Summary
Constructors Constructor Description TTTLearnerDFABuilder()
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 TTTLearnerDFA<I>
create()
Creates a newTTTLearnerDFA
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,Boolean>
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,Boolean> oracle)
Sets the new value for the parameteroracle
.TTTLearnerDFABuilder<I>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.TTTLearnerDFABuilder<I>
withAnalyzer(AcexAnalyzer analyzer)
Sets the new value for the parameteranalyzer
and returnsthis
builder instance.TTTLearnerDFABuilder<I>
withOracle(MembershipOracle<I,Boolean> 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 TTTLearnerDFABuilder<I> 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,Boolean> getOracle()
Returns the current value for the parameteroracle
.- Returns:
- the current value for the parameter
oracle
-
setOracle
public void setOracle(MembershipOracle<I,Boolean> oracle)
Sets the new value for the parameteroracle
.- Parameters:
oracle
- the new value for the parameteroracle
-
withOracle
public TTTLearnerDFABuilder<I> withOracle(MembershipOracle<I,Boolean> 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 TTTLearnerDFABuilder<I> 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 TTTLearnerDFA<I> create()
Creates a newTTTLearnerDFA
instance with the configured parameters.- Returns:
- the created instance
-
-