[ACT-R-users] Capturing dynamic slot values for chunks in buffers during a model run

db30 at andrew.cmu.edu db30 at andrew.cmu.edu
Fri Apr 2 12:35:52 EDT 2010



--On Friday, April 02, 2010 11:55 AM -0400 "Stu @ AGS TechNet" 
<stu at agstechnet.com> wrote:

> Good morning ACT-R users!!
>
> Is there a setting or a tool that will allow the print out or the capture
> (to a file) of all slot values for all chunks in all (or selected)
> buffers during a model run?
>

There is a buffer history tool available for the ACT-R Environment which
records every buffer's content whenever there is a change to the buffer's
chunk or the module's states.  It's found in extras/history-tools and is
described in the Environment manual found in the docs directory.

If you just wanted something "raw" you could add an event hook to print
the buffers' contents with buffer-chunk after every event:

(add-post-event-hook (lambda (x) (buffer-chunk-fct (buffers))))

Of course that could be made fancier and only print when the event
actually modified a buffer, only print the modified buffer, print a
subset of buffers, direct the output to a file, etc. as needed.

Dan





More information about the ACT-R-users mailing list