-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStateSpace.h
More file actions
70 lines (43 loc) · 938 Bytes
/
StateSpace.h
File metadata and controls
70 lines (43 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef STATESPACE_H
#define STATESPACE_H
#include "BiologicalSequences.h"
// pure interface
//
class StateSpace {
public:
virtual ~StateSpace() {}
virtual string GetState(int state) = 0;
virtual int GetNstate() = 0;
virtual int GetState(string from) = 0;
};
// simple state space: assumes that states are referred to using a one-letter code
//
class SimpleStateSpace : public StateSpace {
public:
int GetState(string from);
int GetNstate() {
return Nstate;
}
string GetState(int state);
protected:
int Nstate;
char* Alphabet;
int NAlphabetSet;
char* AlphabetSet;
};
class DNAStateSpace : public SimpleStateSpace {
public:
DNAStateSpace();
~DNAStateSpace();
};
class RNAStateSpace : public SimpleStateSpace {
public:
RNAStateSpace();
~RNAStateSpace();
};
class ProteinStateSpace : public SimpleStateSpace {
public:
ProteinStateSpace();
~ProteinStateSpace();
};
#endif // STATESPACE_H