module

Attention

Main attention module

Constants

VERSION = "0.1.0"

Class methods

allocate_attention(atomspace : AtomSpace::AtomSpace, cycles : Int32 = 1, goals : Hash(Goal, Float64) | Nil = nil) : Hash(String, Float64)

Quick attention allocation on an atomspace

create_engine(atomspace : AtomSpace::AtomSpace) : AllocationEngine

Create a new allocation engine

focus_on(atomspace : AtomSpace::AtomSpace, handles : Array(AtomSpace::Handle), boost : Int16 = 50_i16)

Focus attention on specific atoms

get_attention(atomspace : AtomSpace::AtomSpace, handle : AtomSpace::Handle) : AtomSpace::AttentionValue | Nil

Get attention value for an atom (convenience function)

get_statistics(atomspace : AtomSpace::AtomSpace) : Hash(String, Float64)

Get attention statistics for an atomspace

initialize

Initialize the attention system

set_attention(atomspace : AtomSpace::AtomSpace, handle : AtomSpace::Handle, sti : Int16, lti : Int16 = 0_i16, vlti : Bool = false)

Set attention value for an atom (convenience function)

stimulate(atomspace : AtomSpace::AtomSpace, handle : AtomSpace::Handle, amount : Int16 = 10_i16)

Stimulate an atom (convenience function)

Nested types