| 1 | = Cognitive Radio API = |
| 2 | |
| 3 | === Component class === |
| 4 | |
| 5 | Abstract base class that defines functions global to all components in a VTCROSS system. All components inherit from this class, and must implement each of the following functions: |
| 6 | |
| 7 | {{{ |
| 8 | #!cpp |
| 9 | virtual std::string GetRemoteComponentType(int32_t componentSocketFD) |
| 10 | }}} |
| 11 | |
| 12 | {{{ |
| 13 | #!cpp |
| 14 | virtual void SendComponentType() = 0; |
| 15 | }}} |
| 16 | |
| 17 | {{{ |
| 18 | #!cpp |
| 19 | virtual void WaitForSignal() = 0; |
| 20 | }}} |
| 21 | |
| 22 | {{{ |
| 23 | #!cpp |
| 24 | virtual void Shutdown() = 0; |
| 25 | }}} |
| 26 | |
| 27 | {{{ |
| 28 | #!cpp |
| 29 | virtual void Reset() = 0; |
| 30 | }}} |
| 31 | |
| 32 | {{{ |
| 33 | #!cpp |
| 34 | virtual void RegisterComponent() = 0; |
| 35 | }}} |
| 36 | |
| 37 | {{{ |
| 38 | #!cpp |
| 39 | virtual void DeregisterComponent() = 0; |
| 40 | }}} |
| 41 | |
| 42 | === Engine class === |
| 43 | Abstract base class that inherits publically from Component; Policy and Cognitive engines must derive from this class and implement the following functions as well as those defined in Component: |
| 44 | |
| 45 | {{{ |
| 46 | #!cpp |
| 47 | virtual void ConnectToRemoteComponent(const char* serverName, const char* serverPort, const bool SML) = 0; |
| 48 | }}} |
| 49 | |
| 50 | {{{ |
| 51 | #!cpp |
| 52 | virtual void RegisterServices() = 0; |
| 53 | }}} |
| 54 | |
| 55 | {{{ |
| 56 | #!cpp |
| 57 | virtual void DeregisterServices() = 0; |
| 58 | }}} |
| 59 | |
| 60 | === Component Classes === |
| 61 | |
| 62 | [wiki:Cross/CognitiveEngineAPI VTCROSS Cognitive Engine API Information] |
| 63 | |
| 64 | [wiki:Cross/PolicyEngineAPI VTCROSS Policy Engine API Information] |
| 65 | |
| 66 | [wiki:Cross/ServiceManagementLayerAPI VTCROSS Service Management Layer API Information] |