Qualia
0.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
qualia
core
Environment.h
Go to the documentation of this file.
1
/*
2
* Environment.h
3
*
4
* Interface for an environment in the Qualia framework.
5
*
6
* This file is part of Qualia https://github.com/sofian/qualia
7
*
8
* (c) 2011 Sofian Audry -- info(@)sofianaudry(.)com
9
*
10
* Based on 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 ENVIRONMENT_H_
27
#define ENVIRONMENT_H_
28
29
#include "
common.h
"
30
#include "
Observation.h
"
31
#include "
Action.h
"
32
40
class
Environment
{
41
42
public
:
43
virtual
~Environment
() {}
44
46
virtual
void
init
() {}
47
49
virtual
Observation
*
start
() = 0;
50
52
virtual
Observation
*
step
(
const
Action
* action) = 0;
53
};
54
55
#endif
/* ENVIRONMENT_H_ */
Generated on Fri Oct 11 2013 19:01:21 for Qualia by
1.8.3.1