OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DefaultImplicator.h
Go to the documentation of this file.
1 /*
2  * DefaultImplicator.h
3  *
4  * Copyright (C) 2009, 2014 Linas Vepstas
5  *
6  * Author: Linas Vepstas <linasvepstas@gmail.com> January 2009
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Affero General Public License v3 as
10  * published by the Free Software Foundation and including the exceptions
11  * at http://opencog.org/wiki/Licenses
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU Affero General Public License
19  * along with this program; if not, write to:
20  * Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23 
24 #ifndef _OPENCOG_DEFAULT_IMPLICATOR_H
25 #define _OPENCOG_DEFAULT_IMPLICATOR_H
26 
27 #include "AttentionalFocusCB.h"
28 #include "DefaultPatternMatchCB.h"
29 #include "Implicator.h"
30 #include "InitiateSearchCB.h"
31 #include "PatternMatchCallback.h"
32 
33 
34 namespace opencog {
35 
37  public virtual Implicator,
38  public virtual InitiateSearchCB,
39  public virtual DefaultPatternMatchCB
40 {
41  public:
43  Implicator(asp),
44  InitiateSearchCB(asp),
45  DefaultPatternMatchCB(asp) {}
46 
47  virtual void set_pattern(const Variables& vars,
48  const Pattern& pat)
49  {
52  }
53 };
54 
55 
60  public virtual Implicator,
61  public virtual InitiateSearchCB,
62  public virtual AttentionalFocusCB
63 {
64  public:
66  Implicator(asp),
67  InitiateSearchCB(asp),
70  {}
71 
72  virtual void set_pattern(const Variables& vars,
73  const Pattern& pat)
74  {
77  }
78 };
79 
80 }; // namespace opencog
81 
82 #endif // _OPENCOG_DEFAULT_IMPLICATOR_H
virtual void set_pattern(const Variables &, const Pattern &)
AFImplicator(AtomSpace *asp)
virtual void set_pattern(const Variables &vars, const Pattern &pat)
DefaultImplicator(AtomSpace *asp)
virtual void set_pattern(const Variables &vars, const Pattern &pat)
virtual void set_pattern(const Variables &, const Pattern &)