Module de.learnlib.algorithm.kv
Package de.learnlib.algorithm.kv.dfa
Class KearnsVaziraniDFABuilder<I>
- java.lang.Object
-
- de.learnlib.algorithm.kv.dfa.KearnsVaziraniDFABuilder<I>
-
- Type Parameters:
I
- input symbol type
public final class KearnsVaziraniDFABuilder<I> extends Object
A builder for constructingKearnsVaziraniDFA
instances.
-
-
Constructor Summary
Constructors Constructor Description KearnsVaziraniDFABuilder()
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 KearnsVaziraniDFA<I>
create()
Creates a newKearnsVaziraniDFA
instance with the configured parameters.net.automatalib.alphabet.Alphabet<I>
getAlphabet()
Returns the current value for the parameteralphabet
.AcexAnalyzer
getCounterexampleAnalyzer()
Returns the current value for the parametercounterexampleAnalyzer
.MembershipOracle<I,Boolean>
getOracle()
Returns the current value for the parameteroracle
.boolean
getRepeatedCounterexampleEvaluation()
Returns the current value for the parameterrepeatedCounterexampleEvaluation
.void
setAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
.void
setCounterexampleAnalyzer(AcexAnalyzer counterexampleAnalyzer)
Sets the new value for the parametercounterexampleAnalyzer
.void
setOracle(MembershipOracle<I,Boolean> oracle)
Sets the new value for the parameteroracle
.void
setRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation)
Sets the new value for the parameterrepeatedCounterexampleEvaluation
.KearnsVaziraniDFABuilder<I>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.KearnsVaziraniDFABuilder<I>
withCounterexampleAnalyzer(AcexAnalyzer counterexampleAnalyzer)
Sets the new value for the parametercounterexampleAnalyzer
and returnsthis
builder instance.KearnsVaziraniDFABuilder<I>
withOracle(MembershipOracle<I,Boolean> oracle)
Sets the new value for the parameteroracle
and returnsthis
builder instance.KearnsVaziraniDFABuilder<I>
withRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation)
Sets the new value for the parameterrepeatedCounterexampleEvaluation
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 KearnsVaziraniDFABuilder<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 KearnsVaziraniDFABuilder<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
-
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 KearnsVaziraniDFABuilder<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
-
getCounterexampleAnalyzer
public AcexAnalyzer getCounterexampleAnalyzer()
Returns the current value for the parametercounterexampleAnalyzer
.- Returns:
- the current value for the parameter
counterexampleAnalyzer
-
setCounterexampleAnalyzer
public void setCounterexampleAnalyzer(AcexAnalyzer counterexampleAnalyzer)
Sets the new value for the parametercounterexampleAnalyzer
.- Parameters:
counterexampleAnalyzer
- the new value for the parametercounterexampleAnalyzer
-
withCounterexampleAnalyzer
public KearnsVaziraniDFABuilder<I> withCounterexampleAnalyzer(AcexAnalyzer counterexampleAnalyzer)
Sets the new value for the parametercounterexampleAnalyzer
and returnsthis
builder instance.- Parameters:
counterexampleAnalyzer
- the new value for the parametercounterexampleAnalyzer
- Returns:
- the current builder instance
-
create
public KearnsVaziraniDFA<I> create()
Creates a newKearnsVaziraniDFA
instance with the configured parameters.- Returns:
- the created instance
-
-