<div dir="ltr">Hi Dan,<div><br></div><div>Thank you very much.</div><div>I am able to get the filled slots using chunk-filled-slots-list command and get the values of the slot successfully by using chunk-slot-value command.</div><div><br></div><div>Regards,</div><div>Arun</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 27, 2020 at 3:36 AM Dan Bothell <<a href="mailto:db30@andrew.cmu.edu">db30@andrew.cmu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>That is the correct return value from buffer-chunk when given a
buffer name. It returns a list of the names of the chunks in the
buffers provided, and that is all that is returned in Lisp as well
-- the (D-0) at the end. The output to the command-trace with the
buffer's chunk information is a side effect of calling
buffer-chunk, and you will see that when you call it remotely as
well. <br>
</p>
<p>If you want the text output that is shown, you can use the
printed-buffer-chunk command. If you want to know what slots a
chunk has, then you would use the chunk-filled-slots-list command,
and to get the value of a slot in the chunk you would use the
chunk-slot-value command. </p>
<p>Dan<br>
</p>
<div>On 7/26/20 1:24 PM, Arun Krishna wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,<br>
My java application uses RPC to communicate with ACT-R.<br>
Mainly uses the evaluate method and is working in many cases.<br>
But buffer-chunk command is not working via evaluate eventhough
buffer-read command works.<br>
<br>
For example<br>
-----------------------------------------------<br>
JSONArray jsonArray3 = new JSONArray();<br>
jsonArray3.put("{\"method\":\"evaluate\",");<br>
jsonArray3.put("\"params\":");<br>
jsonArray3.put("[\"buffer-read\",\"maneuver-left\",\"goal\"],");<br>
jsonArray3.put("\"id\":1}");<br>
<br>
Works and I am getting proper out put<br>
{"result": ["D-0"], "error": null, "id": 1}<br>
--------------------------------------------------<br>
<br>
<br>
------------------------------------------------------------<br>
But when I use buffer-chunk<br>
JSONArray jsonArray3 = new JSONArray();<br>
jsonArray3.put("{\"method\":\"evaluate\",");<br>
jsonArray3.put("\"params\":");<br>
jsonArray3.put("[\"buffer-chunk\",\"maneuver-left\",\"goal\"],");<br>
jsonArray3.put("\"id\":1}");<br>
<br>
I am getting {"result": [["D-0"]], "error": null, "id": 1} which
does not include the contents in the <br>
goal buffer.<br>
<br>
When I use the same command via ACT-R command line, buffer-chunk
works and gives complete output<br>
(buffer-chunk goal)<br>
GOAL: D-0<br>
D-0<br>
STATE3 "active"<br>
<br>
(D-0)<br>
------------------------------------------------------------------<br>
<br>
Can you please let me know how to get the full contents in the
goal/retrieval buffer via RPC?<br>
(Note: I am using
ACT-R\examples\connections\Java\simpleACTRtest.java for testing)<br>
<br>
Thanks & Regards,<br>
Arun<br>
<div>
<pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Courier New";font-size:7.2pt"></pre>
</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
ACT-R-users mailing list
<a href="mailto:ACT-R-users@act-r.psy.cmu.edu" target="_blank">ACT-R-users@act-r.psy.cmu.edu</a>
<a href="https://mailman.srv.cs.cmu.edu/mailman/listinfo/act-r-users" target="_blank">https://mailman.srv.cs.cmu.edu/mailman/listinfo/act-r-users</a>
</pre>
</blockquote>
</div>
</blockquote></div>