Revision 112, 1.0 KB
(checked in by bhilburn, 15 years ago)
|
Adding doc directory, moving all source directories to proper 'src' directory.
|
Rev | Line | |
---|
[102] | 1 | /* Virginia Tech Cognitive Radio Open Source Systems |
---|
| 2 | * Virginia Tech, 2009 |
---|
| 3 | * |
---|
| 4 | * LICENSE INFORMATION GOES HERE |
---|
| 5 | */ |
---|
| 6 | |
---|
[104] | 7 | /* This header contains commonly used data container structs in VT-CROSS |
---|
| 8 | * systems. |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | /* Until the new C++ i99 standard is made permanent, allow use of otherwise |
---|
| 13 | * legacy C-libraries. |
---|
| 14 | */ |
---|
[102] | 15 | #ifdef GCC_EXPERIMENTAL |
---|
| 16 | #include <cstdint> |
---|
| 17 | #else |
---|
| 18 | #include <stdint.h> |
---|
| 19 | #endif |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | struct CE_Info { |
---|
[103] | 23 | uint32_t numUtilities; |
---|
| 24 | uint32_t numParameters; |
---|
| 25 | uint32_t numObservables; |
---|
[102] | 26 | uint32_t policy_engine; |
---|
| 27 | uint32_t policy_socket; |
---|
| 28 | uint32_t ce_socket; |
---|
| 29 | }; |
---|
| 30 | |
---|
| 31 | struct Utility { |
---|
[104] | 32 | std::string name; |
---|
| 33 | std::string units; |
---|
| 34 | std::string goal; |
---|
[103] | 35 | float target; |
---|
[102] | 36 | float value; |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | struct Affect { |
---|
[103] | 40 | Utility *u; |
---|
[104] | 41 | std::string relation; |
---|
[102] | 42 | }; |
---|
| 43 | |
---|
| 44 | struct Parameter { |
---|
[104] | 45 | std::string name; |
---|
| 46 | std::string units; |
---|
[103] | 47 | float min; |
---|
| 48 | uint32_t numAffects; |
---|
| 49 | Affect affection_list[10]; |
---|
| 50 | float max; |
---|
| 51 | float step; |
---|
[102] | 52 | float value; |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | struct Observable { |
---|
[104] | 56 | std::string name; |
---|
[103] | 57 | Affect affection_list[10]; |
---|
| 58 | uint32_t numAffects; |
---|
[102] | 59 | float value; |
---|
| 60 | }; |
---|
| 61 | |
---|
| 62 | |
---|