Class OPLearnerDFABuilder<I>
- java.lang.Object
-
- de.learnlib.algorithm.observationpack.dfa.OPLearnerDFABuilder<I>
-
- Type Parameters:
I
- input symbol type
public final class OPLearnerDFABuilder<I> extends Object
A builder for constructingOPLearnerDFA
instances.
-
-
Constructor Summary
Constructors Constructor Description OPLearnerDFABuilder()
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 OPLearnerDFA<I>
create()
Creates a newOPLearnerDFA
instance with the configured parameters.net.automatalib.alphabet.Alphabet<I>
getAlphabet()
Returns the current value for the parameteralphabet
.boolean
getEpsilonRoot()
Returns the current value for the parameterepsilonRoot
.MembershipOracle<I,Boolean>
getOracle()
Returns the current value for the parameteroracle
.boolean
getRepeatedCounterexampleEvaluation()
Returns the current value for the parameterrepeatedCounterexampleEvaluation
.LocalSuffixFinder<? super I,? super Boolean>
getSuffixFinder()
Returns the current value for the parametersuffixFinder
.void
setAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
.void
setEpsilonRoot(boolean epsilonRoot)
Sets the new value for the parameterepsilonRoot
.void
setOracle(MembershipOracle<I,Boolean> 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 Boolean> suffixFinder)
Sets the new value for the parametersuffixFinder
.OPLearnerDFABuilder<I>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.OPLearnerDFABuilder<I>
withEpsilonRoot(boolean epsilonRoot)
Sets the new value for the parameterepsilonRoot
and returnsthis
builder instance.OPLearnerDFABuilder<I>
withOracle(MembershipOracle<I,Boolean> oracle)
Sets the new value for the parameteroracle
and returnsthis
builder instance.OPLearnerDFABuilder<I>
withRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation)
Sets the new value for the parameterrepeatedCounterexampleEvaluation
and returnsthis
builder instance.OPLearnerDFABuilder<I>
withSuffixFinder(LocalSuffixFinder<? super I,? super Boolean> 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 OPLearnerDFABuilder<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 OPLearnerDFABuilder<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
-
getSuffixFinder
public LocalSuffixFinder<? super I,? super Boolean> getSuffixFinder()
Returns the current value for the parametersuffixFinder
.- Returns:
- the current value for the parameter
suffixFinder
-
setSuffixFinder
public void setSuffixFinder(LocalSuffixFinder<? super I,? super Boolean> suffixFinder)
Sets the new value for the parametersuffixFinder
.- Parameters:
suffixFinder
- the new value for the parametersuffixFinder
-
withSuffixFinder
public OPLearnerDFABuilder<I> withSuffixFinder(LocalSuffixFinder<? super I,? super Boolean> 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 OPLearnerDFABuilder<I> 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
-
getEpsilonRoot
public boolean getEpsilonRoot()
Returns the current value for the parameterepsilonRoot
.- Returns:
- the current value for the parameter
epsilonRoot
-
setEpsilonRoot
public void setEpsilonRoot(boolean epsilonRoot)
Sets the new value for the parameterepsilonRoot
.- Parameters:
epsilonRoot
- the new value for the parameterepsilonRoot
-
withEpsilonRoot
public OPLearnerDFABuilder<I> withEpsilonRoot(boolean epsilonRoot)
Sets the new value for the parameterepsilonRoot
and returnsthis
builder instance.- Parameters:
epsilonRoot
- the new value for the parameterepsilonRoot
- Returns:
- the current builder instance
-
create
public OPLearnerDFA<I> create()
Creates a newOPLearnerDFA
instance with the configured parameters.- Returns:
- the created instance
-
-