예제 #1
0
 private Automaton(HashSet <int> states, HashSet <int> startStates, HashSet <int> finalStates, TransitionMatrix <char> transitionMatrix, char[] alphabet)
 {
     _states           = states;
     _startStates      = startStates;
     _finalStates      = finalStates;
     _transitionMatrix = transitionMatrix;
     _alphabet         = alphabet.ToArray();
 }
예제 #2
0
 public Automaton(char[] alphabet)
 {
     _states           = new HashSet <int>();
     _startStates      = new HashSet <int>();
     _finalStates      = new HashSet <int>();
     _transitionMatrix = new TransitionMatrix <char>();
     _alphabet         = alphabet.ToArray();
 }