Revision 33, 0.6 KB
(checked in by ahe, 16 years ago)
|
cactus: adding cognitive engine base functions
|
Line | |
---|
1 | // |
---|
2 | // Cognitive engine descriptor |
---|
3 | // |
---|
4 | |
---|
5 | #ifndef __COGNITIVE_ENGINE_H__ |
---|
6 | #define __COGNITIVE_ENGINE_H__ |
---|
7 | |
---|
8 | typedef struct { |
---|
9 | float value; |
---|
10 | char name[64]; |
---|
11 | } object; |
---|
12 | |
---|
13 | typedef struct ce_s * ce; |
---|
14 | struct ce_s { |
---|
15 | // utilities |
---|
16 | object * u; |
---|
17 | unsigned int num_utilities; |
---|
18 | |
---|
19 | // parameters |
---|
20 | object * p; |
---|
21 | unsigned int num_parameters; |
---|
22 | |
---|
23 | // observables |
---|
24 | object * o; |
---|
25 | unsigned int num_observables; |
---|
26 | |
---|
27 | char name[64]; |
---|
28 | }; |
---|
29 | |
---|
30 | ce ce_create(char * _xmlfilename /*, engine_type (e.g. CBR) */); |
---|
31 | void ce_destroy(ce _engine); |
---|
32 | void ce_print(ce _engine); |
---|
33 | |
---|
34 | // TODO add specific commands to take action, store experience |
---|
35 | |
---|
36 | #endif // __COGNITIVE_ENGINE_H__ |
---|