Class ExtensibleLStarMooreBuilder<I,O>
- java.lang.Object
-
- de.learnlib.algorithm.lstar.moore.ExtensibleLStarMooreBuilder<I,O>
-
- Type Parameters:
I- input symbol typeO- output symbol type
public final class ExtensibleLStarMooreBuilder<I,O> extends Object
A builder for constructingExtensibleLStarMooreinstances.
-
-
Constructor Summary
Constructors Constructor Description ExtensibleLStarMooreBuilder()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 ExtensibleLStarMoore<I,O>create()Creates a newExtensibleLStarMooreinstance with the configured parameters.net.automatalib.alphabet.Alphabet<I>getAlphabet()Returns the current value for the parameteralphabet.ObservationTableCEXHandler<? super I,? super net.automatalib.word.Word<O>>getCexHandler()Returns the current value for the parametercexHandler.ClosingStrategy<? super I,? super net.automatalib.word.Word<O>>getClosingStrategy()Returns the current value for the parameterclosingStrategy.List<net.automatalib.word.Word<I>>getInitialPrefixes()Returns the current value for the parameterinitialPrefixes.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.voidsetCexHandler(ObservationTableCEXHandler<? super I,? super net.automatalib.word.Word<O>> cexHandler)Sets the new value for the parametercexHandler.voidsetClosingStrategy(ClosingStrategy<? super I,? super net.automatalib.word.Word<O>> closingStrategy)Sets the new value for the parameterclosingStrategy.voidsetInitialPrefixes(List<net.automatalib.word.Word<I>> initialPrefixes)Sets the new value for the parameterinitialPrefixes.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.ExtensibleLStarMooreBuilder<I,O>withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)Sets the new value for the parameteralphabetand returnsthisbuilder instance.ExtensibleLStarMooreBuilder<I,O>withCexHandler(ObservationTableCEXHandler<? super I,? super net.automatalib.word.Word<O>> cexHandler)Sets the new value for the parametercexHandlerand returnsthisbuilder instance.ExtensibleLStarMooreBuilder<I,O>withClosingStrategy(ClosingStrategy<? super I,? super net.automatalib.word.Word<O>> closingStrategy)Sets the new value for the parameterclosingStrategyand returnsthisbuilder instance.ExtensibleLStarMooreBuilder<I,O>withInitialPrefixes(List<net.automatalib.word.Word<I>> initialPrefixes)Sets the new value for the parameterinitialPrefixesand returnsthisbuilder instance.ExtensibleLStarMooreBuilder<I,O>withInitialSuffixes(List<net.automatalib.word.Word<I>> initialSuffixes)Sets the new value for the parameterinitialSuffixesand returnsthisbuilder instance.ExtensibleLStarMooreBuilder<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 ExtensibleLStarMooreBuilder<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 ExtensibleLStarMooreBuilder<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
-
getInitialPrefixes
public List<net.automatalib.word.Word<I>> getInitialPrefixes()
Returns the current value for the parameterinitialPrefixes.- Returns:
- the current value for the parameter
initialPrefixes
-
setInitialPrefixes
public void setInitialPrefixes(List<net.automatalib.word.Word<I>> initialPrefixes)
Sets the new value for the parameterinitialPrefixes.- Parameters:
initialPrefixes- the new value for the parameterinitialPrefixes
-
withInitialPrefixes
public ExtensibleLStarMooreBuilder<I,O> withInitialPrefixes(List<net.automatalib.word.Word<I>> initialPrefixes)
Sets the new value for the parameterinitialPrefixesand returnsthisbuilder instance.- Parameters:
initialPrefixes- the new value for the parameterinitialPrefixes- 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 ExtensibleLStarMooreBuilder<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
-
getCexHandler
public ObservationTableCEXHandler<? super I,? super net.automatalib.word.Word<O>> getCexHandler()
Returns the current value for the parametercexHandler.- Returns:
- the current value for the parameter
cexHandler
-
setCexHandler
public void setCexHandler(ObservationTableCEXHandler<? super I,? super net.automatalib.word.Word<O>> cexHandler)
Sets the new value for the parametercexHandler.- Parameters:
cexHandler- the new value for the parametercexHandler
-
withCexHandler
public ExtensibleLStarMooreBuilder<I,O> withCexHandler(ObservationTableCEXHandler<? super I,? super net.automatalib.word.Word<O>> cexHandler)
Sets the new value for the parametercexHandlerand returnsthisbuilder instance.- Parameters:
cexHandler- the new value for the parametercexHandler- 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 ExtensibleLStarMooreBuilder<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 ExtensibleLStarMoore<I,O> create()
Creates a newExtensibleLStarMooreinstance with the configured parameters.- Returns:
- the created instance
-
-