Skip to content

Maximum_time for DM retrieval doesn't work #9

@rlwest

Description

@rlwest

The test is to use maximum_time to cause the program to halt

from python_actr import *
class MyEnvironment(Model):
pass
class MyAgent(ACTR):
focus=Buffer()
DMbuffer=Buffer()

DM=Memory(DMbuffer,latency=0.05,threshold=-25,maximum_time=0.001)

dm_bl=DMBaseLevel(DM,decay=0.5,limit=None)
 
focus.set('goal:recall')
DM.add('animal:tiger')

def request(focus='goal:recall'):
    print("requesting")
    DM.request('animal:?x')            
    focus.set('goal:retrieve')     

def retrieve(DMbuffer='animal:?animal'): 
    print("+++++++++++++++++++++++++++++++++++++++++++")                       
    print (animal)
    DMbuffer.set('nil')
    focus.set('goal:recall')

tim=MyAgent()
somewhere=MyEnvironment()
somewhere.agent=tim
log_everything(somewhere)
somewhere.run()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions