-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fabian klopfer
committed
Jun 28, 2018
1 parent
bcc9e6f
commit cf2ac7c
Showing
3 changed files
with
49 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include <opencog/atoms/base/Link.h> | ||
#include <opencog/attentionbank/AttentionBank.h> | ||
#include <opencog/guile/SchemePrimitive.h> | ||
#include <opencog/atomspace/AtomSpace.h> | ||
#include <opencog/guile/SchemePrimitive.h> | ||
#include <opencog/guile/SchemeSmob.h> | ||
#include <opencog/atoms/proto/LinkValue.h> | ||
#include <opencog/attentionbank/AFImplicator.h> | ||
|
||
|
||
namespace opencog { | ||
|
||
class AttentionSCM | ||
{ | ||
protected: | ||
static void* init_in_guile(void*); | ||
static void init_in_module(void*); | ||
void init(void); | ||
public: | ||
AttentionSCM(void); | ||
~AttentionSCM(); | ||
|
||
AttentionValuePtr get_av(const Handle&); | ||
Handle set_av(const Handle&, const AttentionValuePtr&); | ||
Handle inc_vlti(const Handle&); | ||
Handle dec_vlti(const Handle&); | ||
|
||
Handle update_af(int); | ||
int af_size(void); | ||
int set_af_size(int); | ||
Handle stimulate (const Handle&, double); | ||
|
||
Handle af_bindlink(const Handle&); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters