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

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

None is going to use experimtal g++ libs; being realistic and removing the
preproc include.

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