Module de.learnlib.algorithm.lstar
Package de.learnlib.algorithm.lstar.dfa
Class ClassicLStarDFABuilder<I>
- java.lang.Object
-
- de.learnlib.algorithm.lstar.dfa.ClassicLStarDFABuilder<I>
-
- Type Parameters:
I
- input symbol type.
public final class ClassicLStarDFABuilder<I> extends Object
A builder for constructingClassicLStarDFA
instances.
-
-
Constructor Summary
Constructors Constructor Description ClassicLStarDFABuilder()
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 ClassicLStarDFA<I>
create()
Creates a newClassicLStarDFA
instance 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
.void
setAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
.void
setOracle(MembershipOracle<I,Boolean> oracle)
Sets the new value for the parameteroracle
.ClassicLStarDFABuilder<I>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.ClassicLStarDFABuilder<I>
withOracle(MembershipOracle<I,Boolean> oracle)
Sets the new value for the parameteroracle
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 ClassicLStarDFABuilder<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 ClassicLStarDFABuilder<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
-
create
public ClassicLStarDFA<I> create()
Creates a newClassicLStarDFA
instance with the configured parameters.- Returns:
- the created instance
-
-