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

Revision 170, 1.2 KB (checked in by bhilburn, 15 years ago)

Added at _ton_ of TODOs where documentation needs to be written.

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 initially made all of the string fields std::strings, but this might not
20 * be the best end-decision. Need to evaluate our needs and figure out if
21 * cstrings would do better for us. */
22
23
24/* TODO
25 *
26 */
27struct CE_Info {
28    uint32_t numUtilities;
29    uint32_t numParameters;
30    uint32_t numObservables;
31    uint32_t policy_engine;
32    uint32_t policy_socket;
33    uint32_t ce_socket;
34};
35
36
37/* TODO
38 *
39 */
40struct Utility {
41    std::string name;
42    std::string units;
43    std::string goal;
44    float target;
45    float value;
46};
47
48
49/* TODO
50 *
51 */
52struct Affect {
53    Utility *u;
54    std::string relation;
55};
56
57
58/* TODO
59 *
60 */
61struct Parameter {
62    std::string name;
63    std::string units;
64    float min;
65    uint32_t numAffects;
66    Affect affection_list[10];
67    float max;
68    float step;
69    float value;
70};
71
72
73/* TODO
74 *
75 */
76struct Observable {
77    std::string name;
78    Affect affection_list[10];
79    uint32_t numAffects;
80    float value;
81};
82
83#endif
Note: See TracBrowser for help on using the browser.