Attention::AttentionBank
Inherits Reference < Object
Manages the economic attention allocation system
Constructors
new(atomspace : AtomSpace::AtomSpace, af_max_size : Int32 = ECANParams::AF_MAX_SIZE, af_min_size : Int32 = ECANParams::AF_MIN_SIZE)
SourceInstance methods
add_lti_funds(amount : Int16)
Sourceaf_min_size
SourceGet attention value for an atom
Check if atom is in attentional focus
lti_funds
Sourcelti_wage
SourceSet attention value for an atom
Stimulate an atom by increasing its STI
subtract_lti_funds(amount : Int16)
Sourcesubtract_sti_funds(amount : Int16)
Subtract funds from the bank (used by stimulation/boosting)
to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>