Changeset 161 for vtcross/trunk/src

Show
Ignore:
Timestamp:
03/13/09 17:08:39 (15 years ago)
Author:
bhilburn
Message:

.

Location:
vtcross/trunk/src
Files:
36 added
10 moved

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/cognitive_engines/cbr.c

    r98 r161  
    77#include <stdio.h> 
    88 
    9 #include "cbr.h" 
     9#include "vtcross/cbr.h" 
     10#include "vtcross/common.h" 
    1011 
    1112 
  • vtcross/trunk/src/cognitive_engines/cbr_demo.c

    r99 r161  
    77#include <stdlib.h> 
    88#include <string.h> 
    9  
    10 #include "cbr.h" 
     9#include <sqlite3.h> 
     10#include <sqlite3ext.h> 
     11 
     12#include "vtcross/cbr.h" 
     13#include "vtcross/common.h" 
    1114 
    1215//using namespace std; 
  • vtcross/trunk/src/include/vtcross/cbr.h

    r98 r161  
    22// Case-based reasoner 
    33// 
     4 
     5#ifndef CBR_H 
     6#define CBR_H 
    47 
    58#include "sqlite3.h" 
     
    2932int cbr_add_row(cbr _cbr, char *_cols[], float *_vals, unsigned int _len); 
    3033 
     34#endif 
  • vtcross/trunk/src/shell/cr_shell.cpp

    r97 r161  
    55#include <netinet/in.h> 
    66#include <netdb.h> 
    7 #include "tinyxml.h" 
    8 #include "tinystr.h" 
    97#include <arpa/inet.h> 
    108#include <sys/mman.h> 
     
    1513//#include "socket/SocketException.h" 
    1614 
     15#include "vtcross/containers.h" 
     16#include "vtcross/common.h" 
     17#include "tinyxml/tinyxml.h" 
     18#include "tinyxml/tinystr.h" 
     19 
    1720using namespace std; 
    1821 
    1922#define CE_SERVER_PORT 30001 
    2023#define POLICY_SERVER_PORT 30003 
    21  
    22 struct CE_Info { 
    23         int numUtilities; 
    24         int numParameters; 
    25         int numObservables; 
    26     int policy_engine; 
    27     int policy_socket; 
    28     int ce_socket; 
    29 }; 
    30  
    31 struct Utility { 
    32         string name; 
    33         string units; 
    34         string goal; 
    35         float target; 
    36     float value; 
    37 }; 
    38 struct Affect { 
    39         Utility * u; 
    40         string relation; 
    41 }; 
    42 struct Parameter { 
    43         string name; 
    44         string units; 
    45         float min; 
    46         int numAffects; 
    47         Affect affection_list[10]; 
    48         float max; 
    49         float step; 
    50     float value; 
    51 }; 
    52  
    53 struct Observable { 
    54         string name; 
    55         Affect affection_list[10]; 
    56         int numAffects; 
    57     float value; 
    58 }; 
    5924 
    6025void DieWithError(char *errorMessage)