Module de.learnlib.algorithm.lstar
Class ClassicLStarMooreBuilder<I,O>
- java.lang.Object
-
- de.learnlib.algorithm.lstar.moore.ClassicLStarMooreBuilder<I,O>
-
- Type Parameters:
I
- input symbol typeO
- output symbol type
public final class ClassicLStarMooreBuilder<I,O> extends Object
A builder for constructingClassicLStarMoore
instances.
-
-
Constructor Summary
Constructors Constructor Description ClassicLStarMooreBuilder()
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 ClassicLStarMoore<I,O>
create()
Creates a newClassicLStarMoore
instance with the configured parameters.net.automatalib.alphabet.Alphabet<I>
getAlphabet()
Returns the current value for the parameteralphabet
.ObservationTableCEXHandler<? super I,? super O>
getCexHandler()
Returns the current value for the parametercexHandler
.ClosingStrategy<? super I,? super 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,O>
getOracle()
Returns the current value for the parameteroracle
.void
setAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
.void
setCexHandler(ObservationTableCEXHandler<? super I,? super O> cexHandler)
Sets the new value for the parametercexHandler
.void
setClosingStrategy(ClosingStrategy<? super I,? super O> closingStrategy)
Sets the new value for the parameterclosingStrategy
.void
setInitialPrefixes(List<net.automatalib.word.Word<I>> initialPrefixes)
Sets the new value for the parameterinitialPrefixes
.void
setInitialSuffixes(List<net.automatalib.word.Word<I>> initialSuffixes)
Sets the new value for the parameterinitialSuffixes
.void
setOracle(MembershipOracle<I,O> oracle)
Sets the new value for the parameteroracle
.ClassicLStarMooreBuilder<I,O>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.ClassicLStarMooreBuilder<I,O>
withCexHandler(ObservationTableCEXHandler<? super I,? super O> cexHandler)
Sets the new value for the parametercexHandler
and returnsthis
builder instance.ClassicLStarMooreBuilder<I,O>
withClosingStrategy(ClosingStrategy<? super I,? super O> closingStrategy)
Sets the new value for the parameterclosingStrategy
and returnsthis
builder instance.ClassicLStarMooreBuilder<I,O>
withInitialPrefixes(List<net.automatalib.word.Word<I>> initialPrefixes)
Sets the new value for the parameterinitialPrefixes
and returnsthis
builder instance.ClassicLStarMooreBuilder<I,O>
withInitialSuffixes(List<net.automatalib.word.Word<I>> initialSuffixes)
Sets the new value for the parameterinitialSuffixes
and returnsthis
builder instance.ClassicLStarMooreBuilder<I,O>
withOracle(MembershipOracle<I,O> 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 ClassicLStarMooreBuilder<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,O> getOracle()
Returns the current value for the parameteroracle
.- Returns:
- the current value for the parameter
oracle
-
setOracle
public void setOracle(MembershipOracle<I,O> oracle)
Sets the new value for the parameteroracle
.- Parameters:
oracle
- the new value for the parameteroracle
-
withOracle
public ClassicLStarMooreBuilder<I,O> withOracle(MembershipOracle<I,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
-
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 ClassicLStarMooreBuilder<I,O> withInitialPrefixes(List<net.automatalib.word.Word<I>> initialPrefixes)
Sets the new value for the parameterinitialPrefixes
and returnsthis
builder 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 ClassicLStarMooreBuilder<I,O> withInitialSuffixes(List<net.automatalib.word.Word<I>> initialSuffixes)
Sets the new value for the parameterinitialSuffixes
and returnsthis
builder instance.- Parameters:
initialSuffixes
- the new value for the parameterinitialSuffixes
- Returns:
- the current builder instance
-
getCexHandler
public ObservationTableCEXHandler<? super I,? super 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 O> cexHandler)
Sets the new value for the parametercexHandler
.- Parameters:
cexHandler
- the new value for the parametercexHandler
-
withCexHandler
public ClassicLStarMooreBuilder<I,O> withCexHandler(ObservationTableCEXHandler<? super I,? super O> cexHandler)
Sets the new value for the parametercexHandler
and returnsthis
builder instance.- Parameters:
cexHandler
- the new value for the parametercexHandler
- Returns:
- the current builder instance
-
getClosingStrategy
public ClosingStrategy<? super I,? super 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 O> closingStrategy)
Sets the new value for the parameterclosingStrategy
.- Parameters:
closingStrategy
- the new value for the parameterclosingStrategy
-
withClosingStrategy
public ClassicLStarMooreBuilder<I,O> withClosingStrategy(ClosingStrategy<? super I,? super O> closingStrategy)
Sets the new value for the parameterclosingStrategy
and returnsthis
builder instance.- Parameters:
closingStrategy
- the new value for the parameterclosingStrategy
- Returns:
- the current builder instance
-
create
public ClassicLStarMoore<I,O> create()
Creates a newClassicLStarMoore
instance with the configured parameters.- Returns:
- the created instance
-
-