root/vtcross/trunk/src/include/vtcross/containers.h @ 173

Revision 173, 1.0 KB (checked in by bhilburn, 15 years ago)

The cstring experiment failed. Heading back to std::strings.

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#include <string>
17
18
19/* TODO
20 *
21 */
22struct CE_Info {
23    uint32_t numUtilities;
24    uint32_t numParameters;
25    uint32_t numObservables;
26    uint32_t policy_engine;
27    uint32_t policy_socket;
28    uint32_t ce_socket;
29};
30
31
32/* TODO
33 *
34 */
35struct Utility {
36    std::string name;
37    std::string units;
38    std::string goal;
39    float target;
40    float value;
41};
42
43
44/* TODO
45 *
46 */
47struct Affect {
48    Utility *u;
49    std::string relation;
50};
51
52
53/* TODO
54 *
55 */
56struct Parameter {
57    std::string name;
58    std::string units;
59    float min;
60    uint32_t numAffects;
61    Affect affection_list[10];
62    float max;
63    float step;
64    float value;
65};
66
67
68/* TODO
69 *
70 */
71struct Observable {
72    std::string name;
73    Affect affection_list[10];
74    uint32_t numAffects;
75    float value;
76};
77
78#endif
Note: See TracBrowser for help on using the browser.