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 constructingKearnsVaziraniDFAinstances.
-
-
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 newKearnsVaziraniDFAinstance with the configured parameters.net.automatalib.alphabet.Alphabet<I>getAlphabet()Returns the current value for the parameteralphabet.AcexAnalyzergetCounterexampleAnalyzer()Returns the current value for the parametercounterexampleAnalyzer.MembershipOracle<I,Boolean>getOracle()Returns the current value for the parameteroracle.booleangetRepeatedCounterexampleEvaluation()Returns the current value for the parameterrepeatedCounterexampleEvaluation.voidsetAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)Sets the new value for the parameteralphabet.voidsetCounterexampleAnalyzer(AcexAnalyzer counterexampleAnalyzer)Sets the new value for the parametercounterexampleAnalyzer.voidsetOracle(MembershipOracle<I,Boolean> oracle)Sets the new value for the parameteroracle.voidsetRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation)Sets the new value for the parameterrepeatedCounterexampleEvaluation.KearnsVaziraniDFABuilder<I>withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)Sets the new value for the parameteralphabetand returnsthisbuilder instance.KearnsVaziraniDFABuilder<I>withCounterexampleAnalyzer(AcexAnalyzer counterexampleAnalyzer)Sets the new value for the parametercounterexampleAnalyzerand returnsthisbuilder instance.KearnsVaziraniDFABuilder<I>withOracle(MembershipOracle<I,Boolean> oracle)Sets the new value for the parameteroracleand returnsthisbuilder instance.KearnsVaziraniDFABuilder<I>withRepeatedCounterexampleEvaluation(boolean repeatedCounterexampleEvaluation)Sets the new value for the parameterrepeatedCounterexampleEvaluationand returnsthisbuilder 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 parameteralphabetand returnsthisbuilder 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 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 KearnsVaziraniDFABuilder<I> 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
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 parametercounterexampleAnalyzerand returnsthisbuilder instance.- Parameters:
counterexampleAnalyzer- the new value for the parametercounterexampleAnalyzer- Returns:
- the current builder instance
-
create
public KearnsVaziraniDFA<I> create()
Creates a newKearnsVaziraniDFAinstance with the configured parameters.- Returns:
- the created instance
-
-