/* Virginia Tech Cognitive Radio Open Source Systems * Virginia Tech, 2009 * * TODO LICENSE INFORMATION GOES HERE */ /* TODO DESCRIPTION OF FILE. * * This file is a temporary demo of a policy engine using some of our socket * communication functions. This is *not* an actual implementation of our * defined PolicyEngine class. */ #include #include #include #include "vtcross/libvtcross.h" #include "vtcross/socketcomm.h" int32_t main(int32_t argc, char *argv[]) { Observable * o = new Observable[1]; Parameter * p; o[0].name = "Test123"; o[0].value = 1243.00; p = GetOptimalParameters(o,1); printf("Application:: Received the following parameters.\n"); printf("%s:: %f\n",p[0].name.c_str(),p[0].value); delete [] p; delete [] o; return 0; }