Module de.learnlib.algorithm.lstar
Class RivestSchapireDFABuilder<I>
- java.lang.Object
-
- de.learnlib.algorithm.rivestschapire.RivestSchapireDFABuilder<I>
-
- Type Parameters:
I
- input symbol type
public final class RivestSchapireDFABuilder<I> extends Object
A builder for constructingRivestSchapireDFA
instances.
-
-
Constructor Summary
Constructors Constructor Description RivestSchapireDFABuilder()
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 RivestSchapireDFA<I>
create()
Creates a newRivestSchapireDFA
instance with the configured parameters.net.automatalib.alphabet.Alphabet<I>
getAlphabet()
Returns the current value for the parameteralphabet
.ClosingStrategy<? super I,? super Boolean>
getClosingStrategy()
Returns the current value for the parameterclosingStrategy
.List<net.automatalib.word.Word<I>>
getInitialSuffixes()
Returns the current value for the parameterinitialSuffixes
.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
setClosingStrategy(ClosingStrategy<? super I,? super Boolean> closingStrategy)
Sets the new value for the parameterclosingStrategy
.void
setInitialSuffixes(List<net.automatalib.word.Word<I>> initialSuffixes)
Sets the new value for the parameterinitialSuffixes
.void
setOracle(MembershipOracle<I,Boolean> oracle)
Sets the new value for the parameteroracle
.RivestSchapireDFABuilder<I>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.RivestSchapireDFABuilder<I>
withClosingStrategy(ClosingStrategy<? super I,? super Boolean> closingStrategy)
Sets the new value for the parameterclosingStrategy
and returnsthis
builder instance.RivestSchapireDFABuilder<I>
withInitialSuffixes(List<net.automatalib.word.Word<I>> initialSuffixes)
Sets the new value for the parameterinitialSuffixes
and returnsthis
builder instance.RivestSchapireDFABuilder<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 RivestSchapireDFABuilder<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 RivestSchapireDFABuilder<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
-
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 RivestSchapireDFABuilder<I> 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
-
getClosingStrategy
public ClosingStrategy<? super I,? super Boolean> getClosingStrategy()
Returns the current value for the parameterclosingStrategy
.- Returns:
- the current value for the parameter
closingStrategy
-
setClosingStrategy
public void setClosingStrategy(ClosingStrategy<? super I,? super Boolean> closingStrategy)
Sets the new value for the parameterclosingStrategy
.- Parameters:
closingStrategy
- the new value for the parameterclosingStrategy
-
withClosingStrategy
public RivestSchapireDFABuilder<I> withClosingStrategy(ClosingStrategy<? super I,? super Boolean> 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 RivestSchapireDFA<I> create()
Creates a newRivestSchapireDFA
instance with the configured parameters.- Returns:
- the created instance
-
-