[ACT-R-users] stopping pm

Wolfgang Schoppek Wolfgang.Schoppek at uni-bayreuth.de
Tue Oct 7 10:43:29 EDT 2003


Hi Dan,
it's just a matter of program clarity. I would like to keep the code 
that controls the flow of the experiment as separate from ACT-R as 
possible. With your solutions (sort of which I've used in the past), 
ACT-R and experiment-control-code call each other mutually. I'd like 
to have a solution where calling experiment-control-code from ACT-R is 
reduced to a minimum. This could be easily done by a function like 
(pm-stop) called from the production that gives the answer. With such 
a solution, the function that runs a complete test block with open 
ended trials would look very clear:

(defun recognize (ili)
    (setf *stimulus* ili)
    (pm-run)  ; until it is stopped from the rhs of some production
    (do-after-trial-stuff)
)

(defun do-test (stimuluslist &optional (fun #'recognize))
   (dolist (ele stimuluslist)
     (funcall fun ele))
)

Thank you anyway,
-- Wolfgang
-----------------------------------------------------------------
Dr. Wolfgang Schoppek          Universitaet Bayreuth
  Tel.: +49 921 554140
  http://www.uni-bayreuth.de/departments/psychologie/wolfgang.html
-----------------------------------------------------------------





More information about the ACT-R-users mailing list