Show
Ignore:
Timestamp:
03/23/09 21:29:50 (15 years ago)
Author:
bhilburn
Message:

Finished implementing basic structure of WaitForSignal?, added new
functions to components to allow proper response to component type
queries, modularized the connect & register step for engines, and added
a few TODOs in areas that need review. This is an abnormally large
commit.

Files:
1 modified

Legend:

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

    r193 r194  
    4949        } 
    5050 
     51         
     52        /* Send an indentfying string for this object's component type in 
     53         * response to a GetRemoteComponentType query. 
     54         */ 
     55        virtual void SendComponentType() = 0; 
     56 
     57 
     58        /* Connect to the remote control component, which will always be either 
     59         * the VTCROSS shell or SML.  Based on the status of the SML_present 
     60         * bool, this function will also register the component or services. 
     61         * 
     62         * TODO I feel like the name of this function could be changed to be a 
     63         * little more descriptive? 
     64         */ 
     65        virtual void ConnectToRemoteComponent(const char* serverName, \ 
     66                const char* serverPort) = 0; 
    5167 
    5268        /* Wait for a command signal containing task instructions. 
     
    99115        ~ServiceManagementLayer(); 
    100116 
     117        void SendComponentType(); 
     118        void ConnectToRemoteComponent(const char* serverName, \ 
     119                const char* serverPort); 
    101120        void WaitForSignal(); 
    102121        void Shutdown(); 
     
    164183                const bool SML); 
    165184 
     185        void SendComponentType(); 
     186        void ConnectToRemoteComponent(const char* serverName, \ 
     187                const char* serverPort); 
    166188        void WaitForSignal(); 
    167189        void Shutdown(); 
     
    189211        /* Validate a set of transmission parameters received from the radio. 
    190212         */ 
    191         void ValidateParameters(struct Parameter pList[], \ 
    192                 struct CE_Info *ce_info, int decision_array[]); 
     213        void ValidateParameters(); 
    193214 
    194215 
     
    212233        ~CognitiveEngine(); 
    213234 
     235        void SendComponentType(); 
     236        void ConnectToRemoteComponent(const char* serverName, \ 
     237                const char* serverPort); 
    214238        void WaitForSignal(); 
    215239        void Shutdown();