Changeset 209 for vtcross/trunk/src/include/vtcross/components.h
- Timestamp:
- 03/26/09 12:53:27 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/include/vtcross/components.h
r208 r209 49 49 } 50 50 51 52 51 /* Send an indentfying string for this object's component type in 53 52 * response to a GetRemoteComponentType query. … … 55 54 virtual void SendComponentType() = 0; 56 55 57 58 56 /* Wait for a command signal containing task instructions. 59 57 */ 60 58 virtual void WaitForSignal() = 0; 61 59 62 63 60 /* Completely shutdown the radio and all operations. 64 61 */ 65 62 virtual void Shutdown() = 0; 66 67 63 68 64 /* Reset the radio and reload all configuration files. … … 71 67 */ 72 68 virtual void Reset() = 0; 73 74 69 75 70 /* Register or deregister a component with the primary radio shell. … … 97 92 const char* serverPort, const bool SML) = 0; 98 93 99 100 94 /* Register or deregister services that this engine provides with the 101 95 * service management layer. … … 140 134 void TransferRadioConfiguration(); 141 135 142 143 136 /* Receive information regarding a completed 'experience' and pass it on 144 137 * to the appropriate cognitive engine. 145 138 */ 146 139 void TransferExperience(); 147 148 140 149 141 /* Listen for other components registering their available services with … … 152 144 void ReceiveServices(); 153 145 154 155 146 /* Change the active mission of the radio to a new one and adjust radio 156 147 * behavoir appropriately. … … 158 149 void SetActiveMission(); 159 150 160 161 151 /* List all services provided to the radio by registered components. 162 152 */ 163 153 void ListServices(); 164 165 154 166 155 /* Load/Relead the XML configuration file. … … 169 158 void LoadConfiguration(); 170 159 171 172 160 /* The socket file descriptor information for the shell which this SML 173 161 * is connected to. … … 185 173 PolicyEngine(); 186 174 ~PolicyEngine(); 187 188 175 189 176 /* Overloaded constructor that creates a policy engine object and … … 211 198 void ReloadPolicies(); 212 199 213 214 200 /* Return a decision made by the policy engine regarding a certain set 215 201 * of transmission parameters. … … 218 204 int32_t decision_array[]); 219 205 220 221 206 /* Validate a set of transmission parameters received from the radio. 222 207 */ 223 208 void ValidateParameters(); 224 225 209 226 210 /* The SML_present bool reflects whether or not the remote component … … 261 245 void ReceiveRadioConfiguration(); 262 246 263 264 247 /* Receive an 'experience' report from the radio. 265 248 */ 266 249 void ReceiveExperience(); 267 268 250 269 251 /* Find the most optimal set of transmission parameters given certain … … 273 255 void GetSolution(Observable *observables); 274 256 void GetSolution(Observable *observables, std::string service); 275 276 257 277 258 /* Receive a feedback from the radio regarding the performance of a … … 303 284 ~CognitiveRadioShell(); 304 285 305 306 /* Overloaded constructor that creates a CR Shell object */ 286 /* Overloaded constructor that creates a CR Shell object and loads the 287 * passed radio configuration XML file. 288 */ 307 289 CognitiveRadioShell(const char* radioConfig, int16_t primaryPort, \ 308 290 int16_t policyPort, int16_t commandPort); … … 314 296 /* Start all the socket servers */ 315 297 void StartShellServer(); 298 316 299 int32_t LoadRadioConfiguration(const char* radioConfig, Parameter* &pList, \ 317 300 Utility* &uList, Observable* &oList, Radio_Info* radioInfo); … … 322 305 void ReloadPolicies(); 323 306 324 /* Register and Deregister the different components */ 307 /* Register and Deregister the different components. 308 */ 325 309 void RegisterCognitiveEngine(int32_t socketFD); 326 310 void DeregisterCognitiveEngine(int32_t socketFD); … … 330 314 void DeregisterSML(int32_t socketFD); 331 315 332 /* Handle a message that is received from a component */ 316 /* Handle a message that is received from a component. 317 */ 333 318 void HandleMessage(int32_t socketFD); 334 319 335 /* Send optimization request to primary port FD*/ 320 /* Send optimization request to primary port FD. 321 */ 336 322 void GetOptimalParameters(int32_t socketFD); 337 323