Changeset 518 for vtcross/trunk/src/include/vtcross/cognitive_engine.h
- Timestamp:
- 11/13/09 15:37:02 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/include/vtcross/cognitive_engine.h
r465 r518 15 15 */ 16 16 17 /* This header exports the declaration for the Cognitive Engine component type.17 /*! This header exports the declaration for the Cognitive Engine component type. 18 18 */ 19 19 … … 25 25 26 26 27 /* Cognitive Engine class declaration. All public functions are inherited from 28 * parent classes. 27 /*! \brief Cognitive Engine class declaration. 28 * 29 * All public functions are inherited from parent classes. Please see parent 30 * class definitions for function documentation. 29 31 */ 30 32 class CognitiveEngine : public Engine 31 33 { 32 34 public: 35 /*! Default constructor. */ 33 36 CognitiveEngine(); 37 38 /*! Default destructor. */ 34 39 ~CognitiveEngine(); 35 40 36 /* Overloaded constructor that creates a cognitive engine object and 41 /*! \brief Preferred constructor. 42 * 43 * Overloaded constructor that creates a cognitive engine object and 37 44 * connects it to either the shell or an SML, depening on the SML bool. 38 45 */ … … 53 60 54 61 private: 55 /* Receive the transmitted radio configuration from the radio itself 56 * (the CE will not always be local to the radio). 57 */ 62 /*! \brief Receive radio XML configuration. 63 * 64 * Receive the transmitted radio configuration from the radio itself 65 * (the CE will not always be local to the radio). This gets passed 66 * through either the Shell or the SML. */ 58 67 void ReceiveRadioConfiguration(); 59 68 60 /* Receive an 'experience' report from the radio. 61 */ 69 /*! \brief Receive an 'experience' report from the radio. 70 * 71 * An experience report can be used to build the transmission history 72 * for a CE just starting up so that it has a moving start regarding 73 * parameter optimization. */ 62 74 void ReceiveExperience(); 63 75 64 /* Find the most optimal set of transmission parameters given certain 76 /*! \brief Request that the CE optimize a set of parameters. 77 * 78 * Find the most optimal set of transmission parameters given certain 65 79 * observables and possibly a service if the SML component is present 66 * and active. 67 */68 Parameter *GetSolution(Observable *observables,Parameter *currentParameters);69 Parameter *GetSolution(Observable *observables, Parameter *currentParameters,\70 std::string service);80 * and active. */ 81 Parameter *GetSolution(Observable *observables, \ 82 Parameter *currentParameters); 83 Parameter *GetSolution(Observable *observables, \ 84 Parameter *currentParameters, std::string service); 71 85 72 /* Receive a feedback from the radio regarding the performance of a 86 /*! \brief Receive feedback from the radio 87 * 88 * Receive a feedback from the radio regarding the performance of a 73 89 * certain set of parameters, possibly associated with a service. 74 90 * … … 78 94 * more accurate performance statistics. 79 95 */ 80 void ReceiveFeedback(Observable *observables,\ 81 Parameter *parameters); 82 void ReceiveFeedback(Observable *observables, \ 83 Parameter *parameters, std::string service); 96 void ReceiveFeedback(Observable *observables,Parameter *parameters); 97 void ReceiveFeedback(Observable *observables, Parameter *parameters, \ 98 std::string service); 84 99 85 100 86 /* BuildCognitiveEngine performs the CE implementation specific work 101 /*! \brief Initialize the CE and prepare it for operation. 102 * 103 * BuildCognitiveEngine performs the CE implementation specific work 87 104 * that defines the internals of a CE. For example, a CBR CE engine 88 105 * would build the case-base reasoner or create the database, a neural … … 92 109 void BuildCognitiveEngine(); 93 110 94 /* The SML_present bool reflects whether or not the remote component 111 /*! \brief Keept track of what this CE is connected to. 112 * 113 * The SML_present bool reflects whether or not the remote component 95 114 * this object is connected to is an SML. If it isn't, then it must be 96 115 * a shell. The socketFD stores the socket file descriptor for this