164
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3 using System.Linq;
|
|
4
|
|
5 namespace Implab.Automaton {
|
|
6 public class ByteAlphabet : IndexedAlphabetBase<byte> {
|
|
7 public ByteAlphabet() : base(byte.MaxValue + 1){
|
|
8 }
|
|
9
|
|
10 #region implemented abstract members of IndexedAlphabetBase
|
|
11
|
|
12 public override int GetSymbolIndex(byte symbol) {
|
|
13 return (int)symbol;
|
|
14 }
|
|
15
|
|
16 public IEnumerable<byte> InputSymbols {
|
|
17 get {
|
|
18 return Enumerable.Range(byte.MinValue, byte.MaxValue).Cast<byte>();
|
|
19 }
|
|
20 }
|
|
21
|
|
22 #endregion
|
|
23 }
|
|
24 }
|
|
25
|