root/vtcross/branches/bhilburn/include/containers.h @ 103

Revision 103, 0.8 KB (checked in by bhilburn, 15 years ago)

Argh. Someone committed code with mixed spaces and tabs. Fixing.

Line 
1/* Virginia Tech Cognitive Radio Open Source Systems
2 * Virginia Tech, 2009
3 *
4 * LICENSE INFORMATION GOES HERE
5 *
6 */
7
8#ifdef GCC_EXPERIMENTAL
9    #include <cstdint>
10#else
11    #include <stdint.h>
12#endif
13
14using namespace std;
15
16struct CE_Info {
17    uint32_t numUtilities;
18    uint32_t numParameters;
19    uint32_t numObservables;
20    uint32_t policy_engine;
21    uint32_t policy_socket;
22    uint32_t ce_socket;
23};
24
25struct Utility {
26    string name;
27    string units;
28    string goal;
29    float target;
30    float value;
31};
32
33struct Affect {
34    Utility *u;
35    string relation;
36};
37
38struct Parameter {
39    string name;
40    string units;
41    float min;
42    uint32_t numAffects;
43    Affect affection_list[10];
44    float max;
45    float step;
46    float value;
47};
48
49struct Observable {
50    string name;
51    Affect affection_list[10];
52    uint32_t numAffects;
53    float value;
54};
55
56
Note: See TracBrowser for help on using the browser.