annotate Implab/Automaton/IAlphabetBuilder.cs @ 169:54270c2f29f2 ref20160224

DFA refactoring
author cin
date Thu, 03 Mar 2016 08:41:02 +0300
parents ec35731ae299
children 0f70905b4652
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
162
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
1 
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
2 using System.Collections.Generic;
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
3
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
4 namespace Implab.Automaton {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
5 public interface IAlphabetBuilder<TSymbol> : IAlphabet<TSymbol> {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
6 /// <summary>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
7 /// Добавляет новый символ в алфавит, если символ уже был добавлен, то
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
8 /// возвращается ранее сопоставленный с символом класс.
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
9 /// </summary>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
10 /// <param name="symbol">Символ для добавления.</param>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
11 /// <returns>Индекс класса, который попоставлен с символом.</returns>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
12 int DefineSymbol(TSymbol symbol);
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
13 /// <summary>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
14 /// Доабвляем класс символов. Множеству указанных исходных символов
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
15 /// будет сопоставлен символ в алфавите.
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
16 /// </summary>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
17 /// <param name="symbols">Множестов исходных символов</param>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
18 /// <returns>Идентификатор символа алфавита.</returns>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
19 int DefineClass(IEnumerable<TSymbol> symbols);
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
20 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
21 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
22