Revision 171, 1.0 KB
(checked in by bhilburn, 15 years ago)
|
Migrating back to using cstrings, which is definitely the better choice for us.
|
Line | |
---|
1 | /* Virginia Tech Cognitive Radio Open Source Systems |
---|
2 | * Virginia Tech, 2009 |
---|
3 | * |
---|
4 | * LICENSE INFORMATION GOES HERE |
---|
5 | */ |
---|
6 | |
---|
7 | /* This header contains commonly used data container structs in VT-CROSS |
---|
8 | * systems. |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef CONTAINERS_H |
---|
12 | #define CONTAINERS_H |
---|
13 | |
---|
14 | |
---|
15 | #include <stdint.h> |
---|
16 | |
---|
17 | |
---|
18 | /* TODO |
---|
19 | * |
---|
20 | */ |
---|
21 | struct CE_Info { |
---|
22 | uint32_t numUtilities; |
---|
23 | uint32_t numParameters; |
---|
24 | uint32_t numObservables; |
---|
25 | uint32_t policy_engine; |
---|
26 | uint32_t policy_socket; |
---|
27 | uint32_t ce_socket; |
---|
28 | }; |
---|
29 | |
---|
30 | |
---|
31 | /* TODO |
---|
32 | * |
---|
33 | */ |
---|
34 | struct Utility { |
---|
35 | char* name; |
---|
36 | char* units; |
---|
37 | char* goal; |
---|
38 | float target; |
---|
39 | float value; |
---|
40 | }; |
---|
41 | |
---|
42 | |
---|
43 | /* TODO |
---|
44 | * |
---|
45 | */ |
---|
46 | struct Affect { |
---|
47 | Utility *u; |
---|
48 | char* relation; |
---|
49 | }; |
---|
50 | |
---|
51 | |
---|
52 | /* TODO |
---|
53 | * |
---|
54 | */ |
---|
55 | struct Parameter { |
---|
56 | char* name; |
---|
57 | char* units; |
---|
58 | float min; |
---|
59 | uint32_t numAffects; |
---|
60 | Affect affection_list[10]; |
---|
61 | float max; |
---|
62 | float step; |
---|
63 | float value; |
---|
64 | }; |
---|
65 | |
---|
66 | |
---|
67 | /* TODO |
---|
68 | * |
---|
69 | */ |
---|
70 | struct Observable { |
---|
71 | char* name; |
---|
72 | Affect affection_list[10]; |
---|
73 | uint32_t numAffects; |
---|
74 | float value; |
---|
75 | }; |
---|
76 | |
---|
77 | #endif |
---|