Package de.learnlib.algorithm.ttt.vpa
Class TTTLearnerVPABuilder<I>
- java.lang.Object
-
- de.learnlib.algorithm.ttt.vpa.TTTLearnerVPABuilder<I>
-
- Type Parameters:
I- input symbol type
public final class TTTLearnerVPABuilder<I> extends Object
A builder for constructingTTTLearnerVPAinstances.
-
-
Constructor Summary
Constructors Constructor Description TTTLearnerVPABuilder()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 TTTLearnerVPA<I>create()Creates a newTTTLearnerVPAinstance with the configured parameters.net.automatalib.alphabet.VPAlphabet<I>getAlphabet()Returns the current value for the parameteralphabet.AcexAnalyzergetAnalyzer()Returns the current value for the parameteranalyzer.MembershipOracle.DFAMembershipOracle<I>getOracle()Returns the current value for the parameteroracle.voidsetAlphabet(net.automatalib.alphabet.VPAlphabet<I> alphabet)Sets the new value for the parameteralphabet.voidsetAnalyzer(AcexAnalyzer analyzer)Sets the new value for the parameteranalyzer.voidsetOracle(MembershipOracle.DFAMembershipOracle<I> oracle)Sets the new value for the parameteroracle.TTTLearnerVPABuilder<I>withAlphabet(net.automatalib.alphabet.VPAlphabet<I> alphabet)Sets the new value for the parameteralphabetand returnsthisbuilder instance.TTTLearnerVPABuilder<I>withAnalyzer(AcexAnalyzer analyzer)Sets the new value for the parameteranalyzerand returnsthisbuilder instance.TTTLearnerVPABuilder<I>withOracle(MembershipOracle.DFAMembershipOracle<I> oracle)Sets the new value for the parameteroracleand returnsthisbuilder instance.
-
-
-
Method Detail
-
getAlphabet
public net.automatalib.alphabet.VPAlphabet<I> getAlphabet()
Returns the current value for the parameteralphabet.- Returns:
- the current value for the parameter
alphabet
-
setAlphabet
public void setAlphabet(net.automatalib.alphabet.VPAlphabet<I> alphabet)
Sets the new value for the parameteralphabet.- Parameters:
alphabet- the new value for the parameteralphabet
-
withAlphabet
public TTTLearnerVPABuilder<I> withAlphabet(net.automatalib.alphabet.VPAlphabet<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.DFAMembershipOracle<I> getOracle()
Returns the current value for the parameteroracle.- Returns:
- the current value for the parameter
oracle
-
setOracle
public void setOracle(MembershipOracle.DFAMembershipOracle<I> oracle)
Sets the new value for the parameteroracle.- Parameters:
oracle- the new value for the parameteroracle
-
withOracle
public TTTLearnerVPABuilder<I> withOracle(MembershipOracle.DFAMembershipOracle<I> oracle)
Sets the new value for the parameteroracleand returnsthisbuilder instance.- Parameters:
oracle- the new value for the parameteroracle- Returns:
- the current builder instance
-
getAnalyzer
public AcexAnalyzer getAnalyzer()
Returns the current value for the parameteranalyzer.- Returns:
- the current value for the parameter
analyzer
-
setAnalyzer
public void setAnalyzer(AcexAnalyzer analyzer)
Sets the new value for the parameteranalyzer.- Parameters:
analyzer- the new value for the parameteranalyzer
-
withAnalyzer
public TTTLearnerVPABuilder<I> withAnalyzer(AcexAnalyzer analyzer)
Sets the new value for the parameteranalyzerand returnsthisbuilder instance.- Parameters:
analyzer- the new value for the parameteranalyzer- Returns:
- the current builder instance
-
create
public TTTLearnerVPA<I> create()
Creates a newTTTLearnerVPAinstance with the configured parameters.- Returns:
- the created instance
-
-