Module de.learnlib.algorithm.nlstar
Package de.learnlib.algorithm.nlstar
Class NLStarLearnerBuilder<I>
- java.lang.Object
-
- de.learnlib.algorithm.nlstar.NLStarLearnerBuilder<I>
-
- Type Parameters:
I- input symbol type
public final class NLStarLearnerBuilder<I> extends Object
A builder for constructingNLStarLearnerinstances.
-
-
Constructor Summary
Constructors Constructor Description NLStarLearnerBuilder()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 NLStarLearner<I>create()Creates a newNLStarLearnerinstance with the configured parameters.net.automatalib.alphabet.Alphabet<I>getAlphabet()Returns the current value for the parameteralphabet.MembershipOracle<I,Boolean>getOracle()Returns the current value for the parameteroracle.voidsetAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)Sets the new value for the parameteralphabet.voidsetOracle(MembershipOracle<I,Boolean> oracle)Sets the new value for the parameteroracle.NLStarLearnerBuilder<I>withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)Sets the new value for the parameteralphabetand returnsthisbuilder instance.NLStarLearnerBuilder<I>withOracle(MembershipOracle<I,Boolean> oracle)Sets the new value for the parameteroracleand 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 NLStarLearnerBuilder<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 NLStarLearnerBuilder<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
-
create
public NLStarLearner<I> create()
Creates a newNLStarLearnerinstance with the configured parameters.- Returns:
- the created instance
-
-