1 | /* |
---|
2 | Copyright 2009 Virginia Polytechnic Institute and State University |
---|
3 | |
---|
4 | Licensed under the Apache License, Version 2.0 (the "License"); |
---|
5 | you may not use this file except in compliance with the License. |
---|
6 | You may obtain a copy of the License at |
---|
7 | |
---|
8 | http://www.apache.org/licenses/LICENSE-2.0 |
---|
9 | |
---|
10 | Unless required by applicable law or agreed to in writing, software |
---|
11 | distributed under the License is distributed on an "AS IS" BASIS, |
---|
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
13 | See the License for the specific language governing permissions and |
---|
14 | limitations under the License. |
---|
15 | */ |
---|
16 | |
---|
17 | /*! CROSS Cognitive Radio API |
---|
18 | * |
---|
19 | * This header exports all public functions that comprise the CROSS function |
---|
20 | * library. These are the functions that are used by the host application to |
---|
21 | * control the CROSS radio. |
---|
22 | * |
---|
23 | * PUT MORE STUFF HERE |
---|
24 | */ |
---|
25 | |
---|
26 | #ifndef LIBCROSS_H |
---|
27 | #define LIBCROSS_H |
---|
28 | |
---|
29 | #include <stdint.h> |
---|
30 | #include <string> |
---|
31 | |
---|
32 | #include "components.h" |
---|
33 | #include "containers.h" |
---|
34 | |
---|
35 | |
---|
36 | /*! \brief Tell the system where the Shell component is located. |
---|
37 | * |
---|
38 | * Sets the location of the shell component that the client code will be |
---|
39 | * communicating with. Note that this can be a local or remote destination. |
---|
40 | */ |
---|
41 | |
---|
42 | void SetCrossShellLocation(std::string hostname, std::string port); |
---|
43 | |
---|
44 | Parameter* GetOptimalParameters(Observable *radioObservables, uint32_t numObservables, Parameter *currentParameters, uint32_t numCurrentParameters, Utility *radioUtilities, uint32_t numUtilities); |
---|
45 | |
---|
46 | bool UpdateParameterPerformance(Parameter *p, uint32_t numParameters, Observable *o, uint32_t numObservables, Utility *u, uint32_t numUtilities); |
---|
47 | |
---|
48 | uint32_t GetNum(std::string); |
---|
49 | |
---|
50 | #endif |
---|