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(); }
public Automaton(char[] alphabet) { _states = new HashSet <int>(); _startStates = new HashSet <int>(); _finalStates = new HashSet <int>(); _transitionMatrix = new TransitionMatrix <char>(); _alphabet = alphabet.ToArray(); }