root/vtcross/trunk/src/service_management_layer/ServiceManagementLayer.cpp @ 200

Revision 200, 1.8 KB (checked in by bhilburn, 15 years ago)

Initial work to get SML class compiling with a working skeleton. Still
nothing here; just the framework.

Line 
1/* Virginia Tech Cognitive Radio Open Source Systems
2 * Virginia Tech, 2009
3 *
4 * LICENSE INFORMATION GOES HERE
5 */
6
7/* DESCRIPTION OF FILE.
8 */
9
10
11#include <cstdlib>
12#include <cstring>
13#include <stdint.h>
14
15#include "vtcross/common.h"
16#include "vtcross/components.h"
17#include "vtcross/containers.h"
18#include "vtcross/debug.h"
19#include "vtcross/error.h"
20#include "vtcross/socketcomm.h"
21
22
23ServiceManagementLayer::ServiceManagementLayer()
24{
25    LOG("Creating Service Management Layer.\n");
26    LoadConfiguration();
27}
28
29
30ServiceManagementLayer::~ServiceManagementLayer()
31{
32}
33
34
35void
36ServiceManagementLayer::SendComponentType()
37{
38}
39
40
41void
42ServiceManagementLayer::ConnectToRemoteComponent(const char* serverName, const char* serverPort)
43{
44}
45
46
47void
48ServiceManagementLayer::WaitForSignal()
49{
50    // TODO This is the critical point of this class... we need to figure out
51    // what the requests will look like before we can proceed.
52
53    /*
54    if(GetRequest(socketFD, pList, &ce_info)) {
55        LOG("ServiceManagementLayer:: Received signal.\n");
56    }
57    */
58
59}
60
61
62void
63ServiceManagementLayer::Shutdown()
64{
65}
66
67
68void
69ServiceManagementLayer::Reset()
70{
71}
72
73
74void
75ServiceManagementLayer::RegisterComponent()
76{
77    SendMessage(shellSocketFD, "register_sml");
78    LOG("ServiceManagementLayer:: Registration message sent.\n");
79}
80
81
82void
83ServiceManagementLayer::DeregisterComponent()
84{
85}
86
87
88void
89ServiceManagementLayer::TransferRadioConfiguration()
90{
91}
92
93
94void
95ServiceManagementLayer::TransferExperience()
96{
97}
98
99
100void
101ServiceManagementLayer::ReceiveServices()
102{
103}
104
105
106void
107ServiceManagementLayer::SetActiveMission()
108{
109}
110
111
112void
113ServiceManagementLayer::ListServices()
114{
115}
116
117
118void
119ServiceManagementLayer::ReloadConfiguration()
120{
121}
122
123
124void
125ServiceManagementLayer::LoadConfiguration()
126{
127    LOG("ServiceManagementLayer:: Loading Configuration.\n");
128}
129
Note: See TracBrowser for help on using the browser.