Module de.learnlib.algorithm.lsharp
Package de.learnlib.algorithm.lsharp
Class LSharpMealyBuilder<I,O>
- java.lang.Object
-
- de.learnlib.algorithm.lsharp.LSharpMealyBuilder<I,O>
-
- Type Parameters:
I
- input symbol typeO
- output symbol type
public final class LSharpMealyBuilder<I,O> extends Object
A builder for constructingLSharpMealy
instances.
-
-
Constructor Summary
Constructors Constructor Description LSharpMealyBuilder()
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 LSharpMealy<I,O>
create()
Creates a newLSharpMealy
instance with the configured parameters.net.automatalib.alphabet.Alphabet<I>
getAlphabet()
Returns the current value for the parameteralphabet
.AdaptiveMembershipOracle<I,O>
getOracle()
Returns the current value for the parameteroracle
.Random
getRandom()
Returns the current value for the parameterrandom
.Rule2
getRule2()
Returns the current value for the parameterrule2
.Rule3
getRule3()
Returns the current value for the parameterrule3
.O
getSinkOutput()
Returns the current value for the parametersinkOutput
.net.automatalib.word.Word<I>
getSinkState()
Returns the current value for the parametersinkState
.void
setAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
.void
setOracle(AdaptiveMembershipOracle<I,O> oracle)
Sets the new value for the parameteroracle
.void
setRandom(Random random)
Sets the new value for the parameterrandom
.void
setRule2(Rule2 rule2)
Sets the new value for the parameterrule2
.void
setRule3(Rule3 rule3)
Sets the new value for the parameterrule3
.void
setSinkOutput(O sinkOutput)
Sets the new value for the parametersinkOutput
.void
setSinkState(net.automatalib.word.Word<I> sinkState)
Sets the new value for the parametersinkState
.LSharpMealyBuilder<I,O>
withAlphabet(net.automatalib.alphabet.Alphabet<I> alphabet)
Sets the new value for the parameteralphabet
and returnsthis
builder instance.LSharpMealyBuilder<I,O>
withOracle(AdaptiveMembershipOracle<I,O> oracle)
Sets the new value for the parameteroracle
and returnsthis
builder instance.LSharpMealyBuilder<I,O>
withRandom(Random random)
Sets the new value for the parameterrandom
and returnsthis
builder instance.LSharpMealyBuilder<I,O>
withRule2(Rule2 rule2)
Sets the new value for the parameterrule2
and returnsthis
builder instance.LSharpMealyBuilder<I,O>
withRule3(Rule3 rule3)
Sets the new value for the parameterrule3
and returnsthis
builder instance.LSharpMealyBuilder<I,O>
withSinkOutput(O sinkOutput)
Sets the new value for the parametersinkOutput
and returnsthis
builder instance.LSharpMealyBuilder<I,O>
withSinkState(net.automatalib.word.Word<I> sinkState)
Sets the new value for the parametersinkState
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 LSharpMealyBuilder<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 AdaptiveMembershipOracle<I,O> getOracle()
Returns the current value for the parameteroracle
.- Returns:
- the current value for the parameter
oracle
-
setOracle
public void setOracle(AdaptiveMembershipOracle<I,O> oracle)
Sets the new value for the parameteroracle
.- Parameters:
oracle
- the new value for the parameteroracle
-
withOracle
public LSharpMealyBuilder<I,O> withOracle(AdaptiveMembershipOracle<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
-
getRule2
public Rule2 getRule2()
Returns the current value for the parameterrule2
.- Returns:
- the current value for the parameter
rule2
-
setRule2
public void setRule2(Rule2 rule2)
Sets the new value for the parameterrule2
.- Parameters:
rule2
- the new value for the parameterrule2
-
withRule2
public LSharpMealyBuilder<I,O> withRule2(Rule2 rule2)
Sets the new value for the parameterrule2
and returnsthis
builder instance.- Parameters:
rule2
- the new value for the parameterrule2
- Returns:
- the current builder instance
-
getRule3
public Rule3 getRule3()
Returns the current value for the parameterrule3
.- Returns:
- the current value for the parameter
rule3
-
setRule3
public void setRule3(Rule3 rule3)
Sets the new value for the parameterrule3
.- Parameters:
rule3
- the new value for the parameterrule3
-
withRule3
public LSharpMealyBuilder<I,O> withRule3(Rule3 rule3)
Sets the new value for the parameterrule3
and returnsthis
builder instance.- Parameters:
rule3
- the new value for the parameterrule3
- Returns:
- the current builder instance
-
getSinkState
public net.automatalib.word.Word<I> getSinkState()
Returns the current value for the parametersinkState
.- Returns:
- the current value for the parameter
sinkState
-
setSinkState
public void setSinkState(net.automatalib.word.Word<I> sinkState)
Sets the new value for the parametersinkState
.- Parameters:
sinkState
- the new value for the parametersinkState
-
withSinkState
public LSharpMealyBuilder<I,O> withSinkState(net.automatalib.word.Word<I> sinkState)
Sets the new value for the parametersinkState
and returnsthis
builder instance.- Parameters:
sinkState
- the new value for the parametersinkState
- Returns:
- the current builder instance
-
getSinkOutput
public O getSinkOutput()
Returns the current value for the parametersinkOutput
.- Returns:
- the current value for the parameter
sinkOutput
-
setSinkOutput
public void setSinkOutput(O sinkOutput)
Sets the new value for the parametersinkOutput
.- Parameters:
sinkOutput
- the new value for the parametersinkOutput
-
withSinkOutput
public LSharpMealyBuilder<I,O> withSinkOutput(O sinkOutput)
Sets the new value for the parametersinkOutput
and returnsthis
builder instance.- Parameters:
sinkOutput
- the new value for the parametersinkOutput
- Returns:
- the current builder instance
-
getRandom
public Random getRandom()
Returns the current value for the parameterrandom
.- Returns:
- the current value for the parameter
random
-
setRandom
public void setRandom(Random random)
Sets the new value for the parameterrandom
.- Parameters:
random
- the new value for the parameterrandom
-
withRandom
public LSharpMealyBuilder<I,O> withRandom(Random random)
Sets the new value for the parameterrandom
and returnsthis
builder instance.- Parameters:
random
- the new value for the parameterrandom
- Returns:
- the current builder instance
-
create
public LSharpMealy<I,O> create()
Creates a newLSharpMealy
instance with the configured parameters.- Returns:
- the created instance
-
-