162
|
1 namespace Implab.Automaton {
|
|
2 public class CDFADefinition : DFADefinition {
|
|
3 readonly CharAlphabet m_alphabet;
|
|
4
|
|
5 public CharAlphabet Alphabet {
|
|
6 get { return m_alphabet; }
|
|
7 }
|
|
8
|
|
9 public CDFADefinition(CharAlphabet alphabet): base(alphabet.Count) {
|
|
10 m_alphabet = alphabet;
|
|
11 }
|
|
12
|
|
13 public CDFADefinition Optimize() {
|
|
14
|
|
15 return (CDFADefinition)Optimize(alphabet => new CDFADefinition((CharAlphabet)alphabet), m_alphabet, new CharAlphabet());
|
|
16 }
|
|
17
|
|
18 public void PrintDFA() {
|
|
19 PrintDFA(m_alphabet);
|
|
20 }
|
|
21 }
|
|
22 }
|