Changeset 431

Show
Ignore:
Timestamp:
08/25/09 13:15:45 (15 years ago)
Author:
bhilburn
Message:

Fixing some data typing issues, and some style bugs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/include/vtcross/components.h

    r411 r431  
    6565        virtual void SendComponentType() = 0; 
    6666 
    67         /* Wait for a command signal containing task instructions. 
    68          */ 
    69         //virtual void WaitForSignal() = 0; 
    70  
    7167        /* Completely shutdown the radio and all operations. 
    7268         */ 
     
    10298        virtual void ConnectToRemoteComponent(const char* serverName, \ 
    10399                const char* serverPort, const bool SML) = 0; 
     100         
     101        /* Wait for a command signal containing task instructions. 
     102         */ 
     103        virtual void WaitForSignal() = 0; 
    104104 
    105105        /* Register or deregister services that this engine provides with the 
     
    124124         * shell with the passed hostname and port. 
    125125         */ 
    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); 
    127128 
    128129        /* Connect and register with the shell component at the passed hostname 
    129130         * and port. 
    130131         */ 
    131         void ConnectToShell(const char* serverName, \ 
    132                 const char* serverPort); 
     132        void ConnectToShell(const char* serverName, const char* serverPort); 
    133133        void SendComponentType(); 
    134134        void MessageHandler(int32_t ID); 
     
    157157         */ 
    158158        void ReceiveServices(int32_t ID); 
    159         void DeregisterServices(int32_t ID); 
     159            void DeregisterServices(int32_t ID); 
    160160 
    161161        /* Change the active mission of the radio to a new one and adjust radio 
     
    164164        void SetActiveMission(); 
    165165 
    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); 
    168170 
    169171        /* List all services provided to the radio by registered components. 
     
    176178        void LoadConfiguration(const char *SML_Config, Mission* &mList); 
    177179 
    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); 
    186189 
    187190        /* The socket file descriptor information for the shell which this SML 
     
    189192         */ 
    190193        int32_t shellSocketFD; 
    191         CE_Reg *CE_List; 
     194 
     195        /* TODO 
     196         */ 
     197            int16_t CEPort; 
     198        int16_t SMLport; 
     199            uint16_t numberOfCognitiveEngines; 
    192200        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; 
    196205        Mission *miss; 
    197         bool CE_Present; 
    198         int32_t activeMission; 
    199  
    200         int16_t SMLport; 
    201206}; 
    202207 
     
    297302         */ 
    298303        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); 
    300306 
    301307        /* Receive a feedback from the radio regarding the performance of a 
     
    380386        void DeregisterSML(int32_t socketFD); 
    381387         
    382         void SetActiveMission(int32_t socketFD); 
     388            void SetActiveMission(int32_t socketFD); 
    383389 
    384390        /* Handle a message that is received from a component. 
    385391         */ 
    386         int HandleMessage(int32_t socketFD); 
     392        int32_t HandleMessage(int32_t socketFD); 
    387393        
    388394        /* Send optimization request to primary port FD. 
     
    390396        void GetOptimalParameters(int32_t socketFD); 
    391397 
     398        /* TODO 
     399         */ 
    392400        bool SendRadioConfiguration(int32_t socketFD); 
    393401        bool SendRadioExperience(int32_t socketFD); 
    394402 
     403        /* TODO 
     404         */ 
    395405                bool UpdateParameterPerformance(int32_t socketFD); 
    396406 
     407        /* TODO 
     408         */ 
    397409        bool SML_present; 
    398410        bool PE_present; 
    399411        bool CE_present; 
    400412        
     413        /* TODO 
     414         */ 
    401415        int32_t numberOfCognitiveEngines;  
     416 
     417        /* TODO 
     418         */        
    402419        int16_t primaryPort; 
    403420        int16_t policyPort; 
    404421        int16_t commandPort; 
    405422 
     423        /* TODO 
     424         */ 
    406425        int32_t ceSocketFD; 
    407426        int32_t commandSocketFD; 
    408427        int32_t policySocketFD; 
    409428 
     429        /* TODO 
     430         */ 
    410431        Utility *utils; 
    411432        Parameter *params; 
    412433        Observable *observables; 
     434 
     435        /* TODO 
     436         */ 
    413437        struct Radio_Info *radio_info; 
    414438};