Module de.learnlib.algorithm.kv
Package de.learnlib.algorithm.kv.mealy
Class KearnsVaziraniMealyBuilder<I,O>
- java.lang.Object
-
- de.learnlib.algorithm.kv.mealy.KearnsVaziraniMealyBuilder<I,O>
-
- Type Parameters:
I
- input symbol typeO
- output symbol type
public final class KearnsVaziraniMealyBuilder<I,O> extends Object
A builder for constructingKearnsVaziraniMealy
instances.
-
-
Constructor Summary
Constructors Constructor Description KearnsVaziraniMealyBuilder()
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 KearnsVaziraniMealy<I,O>
create()
Creates a newKearnsVaziraniMealy
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,net.automatalib.word.Word<O>>
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,net.automatalib.word.Word<O>> oracle)
Sets the new value for the parameteroracle
.void
setRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation)
Sets the new value for the parameterrepeatedCounterexampleEvaluation
.KearnsVaziraniMealyBuilder<I,O>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.KearnsVaziraniMealyBuilder<I,O>
withCounterexampleAnalyzer(AcexAnalyzer counterexampleAnalyzer)
Sets the new value for the parametercounterexampleAnalyzer
and returnsthis
builder instance.KearnsVaziraniMealyBuilder<I,O>
withOracle(MembershipOracle<I,net.automatalib.word.Word<O>> oracle)
Sets the new value for the parameteroracle
and returnsthis
builder instance.KearnsVaziraniMealyBuilder<I,O>
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 KearnsVaziraniMealyBuilder<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 KearnsVaziraniMealyBuilder<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
-
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 KearnsVaziraniMealyBuilder<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
-
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 KearnsVaziraniMealyBuilder<I,O> 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 KearnsVaziraniMealy<I,O> create()
Creates a newKearnsVaziraniMealy
instance with the configured parameters.- Returns:
- the created instance
-
-