[ACT-R-users] Regarding getting the values of the slots of the goal buffer via RPC

Arun Krishna arunbkris at gmail.com
Mon Oct 12 12:15:37 EDT 2020


Hi Dan,

Thank you very much for the detailed information.
Using RPC, I am now able to get the value of the navigationCurrent slot
from the chunk in the goal buffer, by following the steps you had mentioned.
(From the chunk navigation-begins-0).

Thanks & Regards,
Arun


On Mon, Oct 12, 2020 at 5:37 PM <db30 at andrew.cmu.edu> wrote:

>
>
> --On Monday, October 12, 2020 10:26 AM -0400 Arun Krishna <
> arunbkris at gmail.com>
> wrote:
>
> >
> >
> > Hi Dan,
> >
> >
> > Thank you for the reply.
> >
> >
> > In my case chunk-slot-value returns the slot value defined by add-dm
> command
> > for example I have an add-dm with
> > (navigation-begin ISA navigation navigationStart "state-1" navigationEnd
> > "state-16" navigationCurrent "state-1")
> >
> > So
> >
> >
> > ? (chunk-slot-value navigation-begin navigationCurrent)
> > "state-1"
> > ?
> >
> >
> > I always get "state-1".
> >
> >
> > But the goal buffer has a different content in the same time which is
> given
> > below
> >
> >
> >
> >  [Image: "image.png"]
> >
> >
> > I was trying to retrieve the value of NAVIGATIONCURRENT slot from the
> goal
> > buffer which is "state-2" .
> > (Which is the result of a production while running the model)
> >
> >
> > Could you please tell me how to achieve this using RPC?
> >
> >
> > Thanks & Regards,
> > Arun
> >
> >
> >
> >
> >
>
> As your image shows, the chunk in the buffer is not the chunk
> navigation-begins, but the chunk navigation-begins-0.  That is
> because the buffers always create a new copy of a chunk.  To get
> the value of a slot of a chunk in a buffer you will first need
> to get the name of the chunk in the buffer, which you can do
> using one of the commands: buffer-chunk, buffer-read, or for
> the goal buffer, goal-focus.
>
> Dan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.srv.cs.cmu.edu/pipermail/act-r-users/attachments/20201012/f31cadf2/attachment.html>


More information about the ACT-R-users mailing list