-
Notifications
You must be signed in to change notification settings - Fork 7
/
NineML_structs.h
66 lines (52 loc) · 955 Bytes
/
NineML_structs.h
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
#ifndef NINEML_STRUCTS_H
#define NINEML_STRUCTS_H
#include <vector>
#include <string>
using namespace std;
struct NineMLDimension {
int m;
int l;
int t;
int E;
int c;
};
struct NineMLVariable {
string name;
NineMLDimension dims;
};
struct NineMLDifferentialEquation {
string equation;
int state_var_num;
};
struct equation {
string equation;
int param_num;
};
struct assign {
string equation;
int state_var_num;
};
struct condition {
string equation;
int param_num;
};
struct eventOut {
int port;
float data; // redo this - it isn't right
};
struct onEvent {
// fill me
int temp_val;
};
struct transition {
int srcRegime;
int targRegime;
vector <assign > assignList;
};
struct regime {
vector < NineMLDifferentialEquation > deList;
vector < condition > condList;
vector < onEvent > eventList;
int state_var_num;
};
#endif // NINEML_STRUCTS_H