Module de.learnlib.algorithm.lstar
Class RivestSchapireDFABuilder<I>
java.lang.Object
de.learnlib.algorithm.rivestschapire.RivestSchapireDFABuilder<I>
- Type Parameters:
I- input symbol type
A builder for constructing
RivestSchapireDFA instances.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new builder (and may set default values for some parameters). -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a newRivestSchapireDFAinstance with the configured parameters.Returns the current value for the parameteralphabet.ClosingStrategy<? super I,? super Boolean> Returns the current value for the parameterclosingStrategy.Returns the current value for the parameterinitialSuffixes.Returns the current value for the parameteroracle.voidsetAlphabet(Alphabet<I> alphabet) Sets the new value for the parameteralphabet.voidsetClosingStrategy(ClosingStrategy<? super I, ? super Boolean> closingStrategy) Sets the new value for the parameterclosingStrategy.voidsetInitialSuffixes(List<Word<I>> initialSuffixes) Sets the new value for the parameterinitialSuffixes.voidsetOracle(MembershipOracle<I, Boolean> oracle) Sets the new value for the parameteroracle.withAlphabet(Alphabet<I> alphabet) Sets the new value for the parameteralphabetand returnsthisbuilder instance.withClosingStrategy(ClosingStrategy<? super I, ? super Boolean> closingStrategy) Sets the new value for the parameterclosingStrategyand returnsthisbuilder instance.withInitialSuffixes(List<Word<I>> initialSuffixes) Sets the new value for the parameterinitialSuffixesand returnsthisbuilder instance.withOracle(MembershipOracle<I, Boolean> oracle) Sets the new value for the parameteroracleand returnsthisbuilder instance.
-
Constructor Details
-
RivestSchapireDFABuilder
public RivestSchapireDFABuilder()Creates a new builder (and may set default values for some parameters).
-
-
Method Details
-
getAlphabet
Returns the current value for the parameteralphabet.- Returns:
- the current value for the parameter
alphabet
-
setAlphabet
Sets the new value for the parameteralphabet.- Parameters:
alphabet- the new value for the parameteralphabet
-
withAlphabet
Sets the new value for the parameteralphabetand returnsthisbuilder instance.- Parameters:
alphabet- the new value for the parameteralphabet- Returns:
- the current builder instance
-
getOracle
Returns the current value for the parameteroracle.- Returns:
- the current value for the parameter
oracle
-
setOracle
Sets the new value for the parameteroracle.- Parameters:
oracle- the new value for the parameteroracle
-
withOracle
Sets the new value for the parameteroracleand returnsthisbuilder instance.- Parameters:
oracle- the new value for the parameteroracle- Returns:
- the current builder instance
-
getInitialSuffixes
Returns the current value for the parameterinitialSuffixes.- Returns:
- the current value for the parameter
initialSuffixes
-
setInitialSuffixes
Sets the new value for the parameterinitialSuffixes.- Parameters:
initialSuffixes- the new value for the parameterinitialSuffixes
-
withInitialSuffixes
Sets the new value for the parameterinitialSuffixesand returnsthisbuilder instance.- Parameters:
initialSuffixes- the new value for the parameterinitialSuffixes- Returns:
- the current builder instance
-
getClosingStrategy
Returns the current value for the parameterclosingStrategy.- Returns:
- the current value for the parameter
closingStrategy
-
setClosingStrategy
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 parameterclosingStrategyand returnsthisbuilder instance.- Parameters:
closingStrategy- the new value for the parameterclosingStrategy- Returns:
- the current builder instance
-
create
Creates a newRivestSchapireDFAinstance with the configured parameters.- Returns:
- the created instance
-