Class MalerPnueliMooreBuilder<I,O>
- java.lang.Object
-
- de.learnlib.algorithm.malerpnueli.MalerPnueliMooreBuilder<I,O>
-
- Type Parameters:
I- input symbol typeO- output symbol type
public final class MalerPnueliMooreBuilder<I,O> extends Object
A builder for constructingMalerPnueliMooreinstances.
-
-
Constructor Summary
Constructors Constructor Description MalerPnueliMooreBuilder()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 MalerPnueliMoore<I,O>create()Creates a newMalerPnueliMooreinstance with the configured parameters.net.automatalib.alphabet.Alphabet<I>getAlphabet()Returns the current value for the parameteralphabet.ClosingStrategy<? super I,? super net.automatalib.word.Word<O>>getClosingStrategy()Returns the current value for the parameterclosingStrategy.List<net.automatalib.word.Word<I>>getInitialSuffixes()Returns the current value for the parameterinitialSuffixes.MembershipOracle<I,net.automatalib.word.Word<O>>getOracle()Returns the current value for the parameteroracle.voidsetAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)Sets the new value for the parameteralphabet.voidsetClosingStrategy(ClosingStrategy<? super I,? super net.automatalib.word.Word<O>> closingStrategy)Sets the new value for the parameterclosingStrategy.voidsetInitialSuffixes(List<net.automatalib.word.Word<I>> initialSuffixes)Sets the new value for the parameterinitialSuffixes.voidsetOracle(MembershipOracle<I,net.automatalib.word.Word<O>> oracle)Sets the new value for the parameteroracle.MalerPnueliMooreBuilder<I,O>withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)Sets the new value for the parameteralphabetand returnsthisbuilder instance.MalerPnueliMooreBuilder<I,O>withClosingStrategy(ClosingStrategy<? super I,? super net.automatalib.word.Word<O>> closingStrategy)Sets the new value for the parameterclosingStrategyand returnsthisbuilder instance.MalerPnueliMooreBuilder<I,O>withInitialSuffixes(List<net.automatalib.word.Word<I>> initialSuffixes)Sets the new value for the parameterinitialSuffixesand returnsthisbuilder instance.MalerPnueliMooreBuilder<I,O>withOracle(MembershipOracle<I,net.automatalib.word.Word<O>> 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 MalerPnueliMooreBuilder<I,O> 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,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 MalerPnueliMooreBuilder<I,O> withOracle(MembershipOracle<I,net.automatalib.word.Word<O>> oracle)
Sets the new value for the parameteroracleand returnsthisbuilder instance.- Parameters:
oracle- the new value for the parameteroracle- Returns:
- the current builder instance
-
getInitialSuffixes
public List<net.automatalib.word.Word<I>> getInitialSuffixes()
Returns the current value for the parameterinitialSuffixes.- Returns:
- the current value for the parameter
initialSuffixes
-
setInitialSuffixes
public void setInitialSuffixes(List<net.automatalib.word.Word<I>> initialSuffixes)
Sets the new value for the parameterinitialSuffixes.- Parameters:
initialSuffixes- the new value for the parameterinitialSuffixes
-
withInitialSuffixes
public MalerPnueliMooreBuilder<I,O> withInitialSuffixes(List<net.automatalib.word.Word<I>> initialSuffixes)
Sets the new value for the parameterinitialSuffixesand returnsthisbuilder instance.- Parameters:
initialSuffixes- the new value for the parameterinitialSuffixes- Returns:
- the current builder instance
-
getClosingStrategy
public ClosingStrategy<? super I,? super net.automatalib.word.Word<O>> getClosingStrategy()
Returns the current value for the parameterclosingStrategy.- Returns:
- the current value for the parameter
closingStrategy
-
setClosingStrategy
public void setClosingStrategy(ClosingStrategy<? super I,? super net.automatalib.word.Word<O>> closingStrategy)
Sets the new value for the parameterclosingStrategy.- Parameters:
closingStrategy- the new value for the parameterclosingStrategy
-
withClosingStrategy
public MalerPnueliMooreBuilder<I,O> withClosingStrategy(ClosingStrategy<? super I,? super net.automatalib.word.Word<O>> closingStrategy)
Sets the new value for the parameterclosingStrategyand returnsthisbuilder instance.- Parameters:
closingStrategy- the new value for the parameterclosingStrategy- Returns:
- the current builder instance
-
create
public MalerPnueliMoore<I,O> create()
Creates a newMalerPnueliMooreinstance with the configured parameters.- Returns:
- the created instance
-
-