root/vtcross/trunk/src/cognitive_engines/CBR_CE/cbr_demo.cpp @ 532

Revision 532, 1.4 KB (checked in by bhilburn, 14 years ago)

Recreated the CognitiveEngine? class, inherited and implemented it with
the CBR_CE test class. Seems to be working so far.

Line 
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/* TODO DESCRIPTION OF FILE.
18 *
19 * This file is a temporary demo of a policy engine using some of our socket
20 * communication functions. This is *not* an actual implementation of our
21 * defined PolicyEngine class.
22 */
23
24
25#include <cstdlib>
26#include <cstring>
27#include <stdint.h>
28
29#include "vtcross/cognitive_engine.h"
30#include "vtcross/common.h"
31#include "vtcross/containers.h"
32#include "vtcross/debug.h"
33#include "vtcross/error.h"
34#include "vtcross/socketcomm.h"
35
36
37int32_t
38main(int32_t argc, char *argv[])
39{
40    if(argc < 3)
41       ERROR(1, "Usage: %s hostname port\n", argv[0]);
42   
43    CognitiveEngine cognitiveEngine(argv[1], argv[2], 10, false);
44
45    LOG("Waiting for signal...\n");
46    while(1) {
47        cognitiveEngine.WaitForSignal();
48    }
49
50    return 0;
51}
52
Note: See TracBrowser for help on using the browser.