Package de.learnlib.example.mealy
Class ExampleGrid
- java.lang.Object
-
- de.learnlib.example.DefaultLearningExample<I,Word<D>,MealyMachine<?,I,?,D>>
-
- de.learnlib.example.DefaultLearningExample.DefaultMealyLearningExample<Character,Integer>
-
- de.learnlib.example.mealy.ExampleGrid
-
- All Implemented Interfaces:
LearningExample<Character,MealyMachine<?,Character,?,Integer>>
,LearningExample.MealyLearningExample<Character,Integer>
,LearningExample.UniversalDeterministicLearningExample<Character,MealyMachine<?,Character,?,Integer>>
public class ExampleGrid extends DefaultLearningExample.DefaultMealyLearningExample<Character,Integer>
This class generates a Mealy machine consisting of a two-dimensional grid of states. Each transition has unique output.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.learnlib.example.DefaultLearningExample
DefaultLearningExample.DefaultDFALearningExample<I>, DefaultLearningExample.DefaultMealyLearningExample<I,D>, DefaultLearningExample.DefaultMooreLearningExample<I,D>, DefaultLearningExample.DefaultOneSEVPALearningExample<I>, DefaultLearningExample.DefaultSBALearningExample<I>, DefaultLearningExample.DefaultSPALearningExample<I>, DefaultLearningExample.DefaultSPMMLearningExample<I,O>, DefaultLearningExample.DefaultSSTLearningExample<I,D>
-
Nested classes/interfaces inherited from interface de.learnlib.example.LearningExample
LearningExample.DFALearningExample<I>, LearningExample.MealyLearningExample<I,O>, LearningExample.MooreLearningExample<I,O>, LearningExample.OneSEVPALearningExample<I>, LearningExample.SBALearningExample<I>, LearningExample.SPALearningExample<I>, LearningExample.SPMMLearningExample<I,O>, LearningExample.SSTLearningExample<I,O>, LearningExample.StateLocalInputMealyLearningExample<I,O>, LearningExample.UniversalDeterministicLearningExample<I,A extends UniversalAutomaton<?,I,?,?,?>>
-
-
Constructor Summary
Constructors Constructor Description ExampleGrid(int xsize, int ysize)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompactMealy<Character,Integer>
constructMachine(int xsize, int ysize)
static <S,A extends MutableMealyMachine<S,Character,?,Integer>>
AconstructMachine(A fm, int xsize, int ysize)
Construct and return a machine representation of this example.static ExampleGrid
createExample(int xsize, int ysize)
static Alphabet<Character>
createInputAlphabet()
-
Methods inherited from class de.learnlib.example.DefaultLearningExample
getAlphabet, getReferenceAutomaton
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.learnlib.example.LearningExample
getAlphabet, getReferenceAutomaton
-
-
-
-
Method Detail
-
constructMachine
public static CompactMealy<Character,Integer> constructMachine(int xsize, int ysize)
-
constructMachine
public static <S,A extends MutableMealyMachine<S,Character,?,Integer>> A constructMachine(A fm, int xsize, int ysize)
Construct and return a machine representation of this example.- Parameters:
xsize
- number of states in x directionysize
- number of states in y direction- Returns:
- a Mealy machine with (xsize * ysize) states
-
createExample
public static ExampleGrid createExample(int xsize, int ysize)
-
-