<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" 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 class="moz-cite-prefix">On 7/26/20 1:24 PM, Arun Krishna wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAS_THfBK7fN8Pnq-MWk70JQ=_8ejJtVt2T_qGJF8bg-odvkqg@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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 class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ACT-R-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ACT-R-users@act-r.psy.cmu.edu">ACT-R-users@act-r.psy.cmu.edu</a>
<a class="moz-txt-link-freetext" href="https://mailman.srv.cs.cmu.edu/mailman/listinfo/act-r-users">https://mailman.srv.cs.cmu.edu/mailman/listinfo/act-r-users</a>
</pre>
</blockquote>
</body>
</html>