Changeset 431
- Timestamp:
- 08/25/09 13:15:45 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/include/vtcross/components.h
r411 r431 65 65 virtual void SendComponentType() = 0; 66 66 67 /* Wait for a command signal containing task instructions.68 */69 //virtual void WaitForSignal() = 0;70 71 67 /* Completely shutdown the radio and all operations. 72 68 */ … … 102 98 virtual void ConnectToRemoteComponent(const char* serverName, \ 103 99 const char* serverPort, const bool SML) = 0; 100 101 /* Wait for a command signal containing task instructions. 102 */ 103 virtual void WaitForSignal() = 0; 104 104 105 105 /* Register or deregister services that this engine provides with the … … 124 124 * shell with the passed hostname and port. 125 125 */ 126 ServiceManagementLayer(const char* SML_Config, const char* serverName, const char* serverPort, int16_t clientPort); 126 ServiceManagementLayer(const char* SML_Config, const char* serverName, \ 127 const char* serverPort, int16_t clientPort); 127 128 128 129 /* Connect and register with the shell component at the passed hostname 129 130 * and port. 130 131 */ 131 void ConnectToShell(const char* serverName, \ 132 const char* serverPort); 132 void ConnectToShell(const char* serverName, const char* serverPort); 133 133 void SendComponentType(); 134 134 void MessageHandler(int32_t ID); … … 157 157 */ 158 158 void ReceiveServices(int32_t ID); 159 void DeregisterServices(int32_t ID);159 void DeregisterServices(int32_t ID); 160 160 161 161 /* Change the active mission of the radio to a new one and adjust radio … … 164 164 void SetActiveMission(); 165 165 166 void RegisterCognitiveEngine(int32_t ID); 167 void DeregisterCognitiveEngine(int32_t ID); 166 /* TODO 167 */ 168 void RegisterCognitiveEngine(int32_t ID); 169 void DeregisterCognitiveEngine(int32_t ID); 168 170 169 171 /* List all services provided to the radio by registered components. … … 176 178 void LoadConfiguration(const char *SML_Config, Mission* &mList); 177 179 178 /* Create and initialize the DB to hold the services 179 */ 180 void CreateServicesDB(); 181 void CreateDataDB(); 182 183 void PerformActiveMission(); 184 void TransactData(int32_t sourceID); 185 180 /* Create and initialize the DB to hold the services 181 */ 182 void CreateServicesDB(); 183 void CreateDataDB(); 184 185 /* TODO 186 */ 187 void PerformActiveMission(); 188 void TransactData(int32_t sourceID); 186 189 187 190 /* The socket file descriptor information for the shell which this SML … … 189 192 */ 190 193 int32_t shellSocketFD; 191 CE_Reg *CE_List; 194 195 /* TODO 196 */ 197 int16_t CEPort; 198 int16_t SMLport; 199 uint16_t numberOfCognitiveEngines; 192 200 int32_t cogEngSrv; 193 int16_t CEPort; 194 uint16_t numberOfCognitiveEngines; 195 uint32_t Current_ID; 201 int32_t activeMission; 202 uint32_t Current_ID; 203 bool CE_Present; 204 CE_Reg *CE_List; 196 205 Mission *miss; 197 bool CE_Present;198 int32_t activeMission;199 200 int16_t SMLport;201 206 }; 202 207 … … 297 302 */ 298 303 Parameter *GetSolution(Observable *observables, Parameter *currentParameters); 299 Parameter *GetSolution(Observable *observables, Parameter *currentParameters, std::string service); 304 Parameter *GetSolution(Observable *observables, Parameter *currentParameters, \ 305 std::string service); 300 306 301 307 /* Receive a feedback from the radio regarding the performance of a … … 380 386 void DeregisterSML(int32_t socketFD); 381 387 382 void SetActiveMission(int32_t socketFD);388 void SetActiveMission(int32_t socketFD); 383 389 384 390 /* Handle a message that is received from a component. 385 391 */ 386 int HandleMessage(int32_t socketFD);392 int32_t HandleMessage(int32_t socketFD); 387 393 388 394 /* Send optimization request to primary port FD. … … 390 396 void GetOptimalParameters(int32_t socketFD); 391 397 398 /* TODO 399 */ 392 400 bool SendRadioConfiguration(int32_t socketFD); 393 401 bool SendRadioExperience(int32_t socketFD); 394 402 403 /* TODO 404 */ 395 405 bool UpdateParameterPerformance(int32_t socketFD); 396 406 407 /* TODO 408 */ 397 409 bool SML_present; 398 410 bool PE_present; 399 411 bool CE_present; 400 412 413 /* TODO 414 */ 401 415 int32_t numberOfCognitiveEngines; 416 417 /* TODO 418 */ 402 419 int16_t primaryPort; 403 420 int16_t policyPort; 404 421 int16_t commandPort; 405 422 423 /* TODO 424 */ 406 425 int32_t ceSocketFD; 407 426 int32_t commandSocketFD; 408 427 int32_t policySocketFD; 409 428 429 /* TODO 430 */ 410 431 Utility *utils; 411 432 Parameter *params; 412 433 Observable *observables; 434 435 /* TODO 436 */ 413 437 struct Radio_Info *radio_info; 414 438 };