Changeset 104
- Timestamp:
- 03/08/09 16:44:05 (15 years ago)
- Location:
- vtcross/branches/bhilburn/include
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/branches/bhilburn/include/components.h
r102 r104 5 5 */ 6 6 7 /* 8 * This header exports the declarations for all VT-CROSS radio components. It 7 /* This header exports the declarations for all VT-CROSS radio components. It 9 8 * contains two pure abstract base classes, Component and Engine; Engine derives 10 9 * from Component. All functions contained within the abstract base classes are 11 * dynamically linked via the 'virtual' keyword, and all child non-abstract12 * classes derive using private inheritence. Class functions of the abstract13 * base classes are public for two reasons: (1) To allow for public/protected14 * i nheritence in other implementations, (2) So that symbolic debuggers can15 * navigate the call treefor typecasted objects of derivative classes.10 * dynamically linked and pure, and all child non-abstract classes derive using 11 * private inheritence. Class functions of the abstract base classes are public 12 * for two reasons: (1) To allow for public/protected inheritence in other 13 * implementations, (2) So that symbolic debuggers can navigate the call tree 14 * for typecasted objects of derivative classes. 16 15 */ 17 16 17 18 18 #include "containers.h" 19 19 20 20 21 class Component … … 65 66 void ReceiveRadioConfiguration(); 66 67 void ReceiveExperience(); 67 void GetSolution( observables);68 void GetSolution( observables,service);69 void ReceiveFeedback( observables, parameters,utilities);70 void ReceiveFeedback( observables, parameters,service);68 void GetSolution(Observable *observables); 69 void GetSolution(Observable *observables, string service); 70 void ReceiveFeedback(Observable *observables, Parameter *parameters, Utility *utilities); 71 void ReceiveFeedback(Observable *observables, Parameter *parameters, string service); 71 72 }; 72 73 -
vtcross/branches/bhilburn/include/containers.h
r103 r104 3 3 * 4 4 * LICENSE INFORMATION GOES HERE 5 *6 5 */ 7 6 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 */ 8 15 #ifdef GCC_EXPERIMENTAL 9 16 #include <cstdint> … … 12 19 #endif 13 20 14 using namespace std;15 21 16 22 struct CE_Info { … … 24 30 25 31 struct Utility { 26 st ring name;27 st ring units;28 st ring goal;32 std::string name; 33 std::string units; 34 std::string goal; 29 35 float target; 30 36 float value; … … 33 39 struct Affect { 34 40 Utility *u; 35 st ring relation;41 std::string relation; 36 42 }; 37 43 38 44 struct Parameter { 39 st ring name;40 st ring units;45 std::string name; 46 std::string units; 41 47 float min; 42 48 uint32_t numAffects; … … 48 54 49 55 struct Observable { 50 st ring name;56 std::string name; 51 57 Affect affection_list[10]; 52 58 uint32_t numAffects;