Module net.automatalib.util
Class RandomAutomatonGenerator<S,I,T,SP,TP,A extends MutableAutomaton<S,I,T,SP,TP>>
- java.lang.Object
-
- net.automatalib.util.automaton.random.RandomAutomatonGenerator<S,I,T,SP,TP,A>
-
- Direct Known Subclasses:
RandomDeterministicAutomatonGenerator
public class RandomAutomatonGenerator<S,I,T,SP,TP,A extends MutableAutomaton<S,I,T,SP,TP>> extends Object
-
-
Constructor Summary
Constructors Constructor Description RandomAutomatonGenerator(Random random, Collection<? extends I> inputs, Collection<? extends SP> stateProps, Collection<? extends TP> transProps, A automaton)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStates(int numStates)voidchooseInitial()voidchooseInitials(int num)AgetAutomaton()protected @Nullable SrandomDistinctState(int stateIdx)protected @Nullable IrandomInput()protected @Nullable SrandomState()protected @Nullable SPrandomStateProperty()protected @Nullable TPrandomTransProperty()
-
-
-
Field Detail
-
random
protected final Random random
-
-
Constructor Detail
-
RandomAutomatonGenerator
public RandomAutomatonGenerator(Random random, Collection<? extends I> inputs, Collection<? extends SP> stateProps, Collection<? extends TP> transProps, A automaton)
-
-
Method Detail
-
getAutomaton
public A getAutomaton()
-
addStates
public void addStates(int numStates)
-
chooseInitial
public void chooseInitial()
-
chooseInitials
public void chooseInitials(int num)
-
-