Qualia
0.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
qualia
core
Qualia.h
Go to the documentation of this file.
1
/*
2
* Qualia.h
3
*
4
* The main controller for the Qualia library.
5
*
6
* This file is part of Qualia https://github.com/sofian/qualia
7
*
8
* (c) 2011 Sofian Audry -- info(@)sofianaudry(.)com
9
*
10
* Uses source code from the RL-Glue library (http://rl-glue.googlecode.com)
11
* RL-Glue is licensed under an Apache License 2.0 (compatible with Gnu GPL)
12
*
13
* This program is free software: you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation, either version 3 of the License, or
16
* (at your option) any later version.
17
*
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
22
*
23
* You should have received a copy of the GNU General Public License
24
* along with this program. If not, see <http://www.gnu.org/licenses/>.
25
*/
26
#ifndef QUALIA_H_
27
#define QUALIA_H_
28
29
#include "
common.h
"
30
#include "
Agent.h
"
31
#include "
Environment.h
"
32
33
struct
ObservationAction
{
34
Observation
*
observation
;
35
Action
*
action
;
36
};
37
38
// XXX: I'm considering getting rid of that class or at least renaming it.
39
class
Qualia
{
40
41
public
:
42
Agent
*
agent
;
43
Environment
*
environment
;
44
45
Action
*
lastAction
;
46
ObservationAction
observationAction
;
47
int
nSteps
,
nEpisodes
;
48
49
public
:
50
Qualia
(
Agent
*
agent
,
Environment
* env);
51
virtual
~Qualia
();
52
53
virtual
void
init
();
54
virtual
ObservationAction
*
start
();
55
virtual
ObservationAction
*
step
();
56
virtual
bool
episode
(
unsigned
int
maxSteps);
57
};
58
59
#endif
/* QUALIA_H_ */
Generated on Fri Oct 11 2013 19:01:21 for Qualia by
1.8.3.1