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
A builder for constructing
KearnsVaziraniMealy instances.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new builder (and may set default values for some parameters). -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a newKearnsVaziraniMealyinstance with the configured parameters.Returns the current value for the parameteralphabet.Returns the current value for the parametercounterexampleAnalyzer.Returns the current value for the parameteroracle.booleanReturns the current value for the parameterrepeatedCounterexampleEvaluation.voidsetAlphabet(Alphabet<I> alphabet) Sets the new value for the parameteralphabet.voidsetCounterexampleAnalyzer(AcexAnalyzer counterexampleAnalyzer) Sets the new value for the parametercounterexampleAnalyzer.voidsetOracle(MembershipOracle<I, Word<O>> oracle) Sets the new value for the parameteroracle.voidsetRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation) Sets the new value for the parameterrepeatedCounterexampleEvaluation.withAlphabet(Alphabet<I> alphabet) Sets the new value for the parameteralphabetand returnsthisbuilder instance.withCounterexampleAnalyzer(AcexAnalyzer counterexampleAnalyzer) Sets the new value for the parametercounterexampleAnalyzerand returnsthisbuilder instance.withOracle(MembershipOracle<I, Word<O>> oracle) Sets the new value for the parameteroracleand returnsthisbuilder instance.withRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation) Sets the new value for the parameterrepeatedCounterexampleEvaluationand returnsthisbuilder instance.
-
Constructor Details
-
KearnsVaziraniMealyBuilder
public KearnsVaziraniMealyBuilder()Creates a new builder (and may set default values for some parameters).
-
-
Method Details
-
getAlphabet
Returns the current value for the parameteralphabet.- Returns:
- the current value for the parameter
alphabet
-
setAlphabet
Sets the new value for the parameteralphabet.- Parameters:
alphabet- the new value for the parameteralphabet
-
withAlphabet
Sets the new value for the parameteralphabetand returnsthisbuilder instance.- Parameters:
alphabet- the new value for the parameteralphabet- Returns:
- the current builder instance
-
getOracle
Returns the current value for the parameteroracle.- Returns:
- the current value for the parameter
oracle
-
setOracle
Sets the new value for the parameteroracle.- Parameters:
oracle- the new value for the parameteroracle
-
withOracle
Sets the new value for the parameteroracleand returnsthisbuilder 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 parameterrepeatedCounterexampleEvaluationand returnsthisbuilder instance.- Parameters:
repeatedCounterexampleEvaluation- the new value for the parameterrepeatedCounterexampleEvaluation- Returns:
- the current builder instance
-
getCounterexampleAnalyzer
Returns the current value for the parametercounterexampleAnalyzer.- Returns:
- the current value for the parameter
counterexampleAnalyzer
-
setCounterexampleAnalyzer
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 parametercounterexampleAnalyzerand returnsthisbuilder instance.- Parameters:
counterexampleAnalyzer- the new value for the parametercounterexampleAnalyzer- Returns:
- the current builder instance
-
create
Creates a newKearnsVaziraniMealyinstance with the configured parameters.- Returns:
- the created instance
-