Module de.learnlib.algorithm.dhc
Package de.learnlib.algorithm.dhc.mealy
Class MealyDHCBuilder<I,O>
- java.lang.Object
-
- de.learnlib.algorithm.dhc.mealy.MealyDHCBuilder<I,O>
-
-
Constructor Summary
Constructors Constructor Description MealyDHCBuilder()
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 MealyDHC<I,O>
create()
Creates a newMealyDHC
instance with the configured parameters.net.automatalib.alphabet.Alphabet<I>
getAlphabet()
Returns the current value for the parameteralphabet
.Collection<? extends net.automatalib.word.Word<I>>
getInitialSplitters()
Returns the current value for the parameterinitialSplitters
.MembershipOracle<I,net.automatalib.word.Word<O>>
getOracle()
Returns the current value for the parameteroracle
.GlobalSuffixFinder<? super I,? super net.automatalib.word.Word<O>>
getSuffixFinder()
Returns the current value for the parametersuffixFinder
.void
setAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
.void
setInitialSplitters(Collection<? extends net.automatalib.word.Word<I>> initialSplitters)
Sets the new value for the parameterinitialSplitters
.void
setOracle(MembershipOracle<I,net.automatalib.word.Word<O>> oracle)
Sets the new value for the parameteroracle
.void
setSuffixFinder(GlobalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> suffixFinder)
Sets the new value for the parametersuffixFinder
.MealyDHCBuilder<I,O>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.MealyDHCBuilder<I,O>
withInitialSplitters(Collection<? extends net.automatalib.word.Word<I>> initialSplitters)
Sets the new value for the parameterinitialSplitters
and returnsthis
builder instance.MealyDHCBuilder<I,O>
withOracle(MembershipOracle<I,net.automatalib.word.Word<O>> oracle)
Sets the new value for the parameteroracle
and returnsthis
builder instance.MealyDHCBuilder<I,O>
withSuffixFinder(GlobalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> suffixFinder)
Sets the new value for the parametersuffixFinder
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 MealyDHCBuilder<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 MealyDHCBuilder<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
-
getSuffixFinder
public GlobalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> getSuffixFinder()
Returns the current value for the parametersuffixFinder
.- Returns:
- the current value for the parameter
suffixFinder
-
setSuffixFinder
public void setSuffixFinder(GlobalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> suffixFinder)
Sets the new value for the parametersuffixFinder
.- Parameters:
suffixFinder
- the new value for the parametersuffixFinder
-
withSuffixFinder
public MealyDHCBuilder<I,O> withSuffixFinder(GlobalSuffixFinder<? super I,? super net.automatalib.word.Word<O>> suffixFinder)
Sets the new value for the parametersuffixFinder
and returnsthis
builder instance.- Parameters:
suffixFinder
- the new value for the parametersuffixFinder
- Returns:
- the current builder instance
-
getInitialSplitters
public Collection<? extends net.automatalib.word.Word<I>> getInitialSplitters()
Returns the current value for the parameterinitialSplitters
.- Returns:
- the current value for the parameter
initialSplitters
-
setInitialSplitters
public void setInitialSplitters(Collection<? extends net.automatalib.word.Word<I>> initialSplitters)
Sets the new value for the parameterinitialSplitters
.- Parameters:
initialSplitters
- the new value for the parameterinitialSplitters
-
withInitialSplitters
public MealyDHCBuilder<I,O> withInitialSplitters(Collection<? extends net.automatalib.word.Word<I>> initialSplitters)
Sets the new value for the parameterinitialSplitters
and returnsthis
builder instance.- Parameters:
initialSplitters
- the new value for the parameterinitialSplitters
- Returns:
- the current builder instance
-
-