Class OPLearnerMealyBuilder<I,O>
- java.lang.Object
-
- de.learnlib.algorithm.observationpack.mealy.OPLearnerMealyBuilder<I,O>
-
- Type Parameters:
I
- input symbol typeO
- output symbol type
public final class OPLearnerMealyBuilder<I,O> extends Object
A builder for constructingOPLearnerMealy
instances.
-
-
Constructor Summary
Constructors Constructor Description OPLearnerMealyBuilder()
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 OPLearnerMealy<I,O>
create()
Creates a newOPLearnerMealy
instance with the configured parameters.net.automatalib.alphabet.Alphabet<I>
getAlphabet()
Returns the current value for the parameteralphabet
.MembershipOracle<I,net.automatalib.word.Word<O>>
getOracle()
Returns the current value for the parameteroracle
.boolean
getRepeatedCounterexampleEvaluation()
Returns the current value for the parameterrepeatedCounterexampleEvaluation
.LocalSuffixFinder<? super I,? super net.automatalib.word.Word<O>>
getSuffixFinder()
Returns the current value for the parametersuffixFinder
.void
setAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
.void
setOracle(MembershipOracle<I,net.automatalib.word.Word<O>> oracle)
Sets the new value for the parameteroracle
.void
setRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation)
Sets the new value for the parameterrepeatedCounterexampleEvaluation
.void
setSuffixFinder(LocalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> suffixFinder)
Sets the new value for the parametersuffixFinder
.OPLearnerMealyBuilder<I,O>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.OPLearnerMealyBuilder<I,O>
withOracle(MembershipOracle<I,net.automatalib.word.Word<O>> oracle)
Sets the new value for the parameteroracle
and returnsthis
builder instance.OPLearnerMealyBuilder<I,O>
withRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation)
Sets the new value for the parameterrepeatedCounterexampleEvaluation
and returnsthis
builder instance.OPLearnerMealyBuilder<I,O>
withSuffixFinder(LocalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> suffixFinder)
Sets the new value for the parametersuffixFinder
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 OPLearnerMealyBuilder<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 OPLearnerMealyBuilder<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
-
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 OPLearnerMealyBuilder<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
-
getRepeatedCounterexampleEvaluation
public boolean getRepeatedCounterexampleEvaluation()
Returns the current value for the parameterrepeatedCounterexampleEvaluation
.- Returns:
- the current value for the parameter
repeatedCounterexampleEvaluation
-
setRepeatedCounterexampleEvaluation
public void setRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation)
Sets the new value for the parameterrepeatedCounterexampleEvaluation
.- Parameters:
repeatedCounterexampleEvaluation
- the new value for the parameterrepeatedCounterexampleEvaluation
-
withRepeatedCounterexampleEvaluation
public OPLearnerMealyBuilder<I,O> withRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation)
Sets the new value for the parameterrepeatedCounterexampleEvaluation
and returnsthis
builder instance.- Parameters:
repeatedCounterexampleEvaluation
- the new value for the parameterrepeatedCounterexampleEvaluation
- Returns:
- the current builder instance
-
create
public OPLearnerMealy<I,O> create()
Creates a newOPLearnerMealy
instance with the configured parameters.- Returns:
- the created instance
-
-