annotate Implab/Automaton/IAlphabetBuilder.cs @ 166:b84cdbe82e7f ref20160224

sync
author cin
date Mon, 29 Feb 2016 18:41:01 +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