[ACT-R-users] Question regarding buffer-chunk command via RPC

Arun Krishna arunbkris at gmail.com
Sun Jul 26 13:24:43 EDT 2020


Hi,
My java application uses RPC to communicate with ACT-R.
Mainly uses the evaluate method and is working in many cases.
But buffer-chunk command is not working via evaluate eventhough
 buffer-read command works.

For example
-----------------------------------------------
JSONArray jsonArray3 = new JSONArray();
jsonArray3.put("{\"method\":\"evaluate\",");
jsonArray3.put("\"params\":");
jsonArray3.put("[\"buffer-read\",\"maneuver-left\",\"goal\"],");
jsonArray3.put("\"id\":1}");

Works and I am getting proper out put
{"result": ["D-0"], "error": null, "id": 1}
--------------------------------------------------


------------------------------------------------------------
But when I use buffer-chunk
 JSONArray jsonArray3 = new JSONArray();
    jsonArray3.put("{\"method\":\"evaluate\",");
    jsonArray3.put("\"params\":");
    jsonArray3.put("[\"buffer-chunk\",\"maneuver-left\",\"goal\"],");
    jsonArray3.put("\"id\":1}");

I am getting {"result": [["D-0"]], "error": null, "id": 1} which does not
include the contents in the
goal buffer.

When I use the same command via ACT-R command line, buffer-chunk works and
gives complete output
(buffer-chunk goal)
GOAL: D-0
D-0
   STATE3  "active"

(D-0)
------------------------------------------------------------------

Can you please let me know how to get the full contents in the
goal/retrieval buffer via RPC?
(Note: I am using ACT-R\examples\connections\Java\simpleACTRtest.java for
testing)

Thanks & Regards,
Arun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.srv.cs.cmu.edu/pipermail/act-r-users/attachments/20200726/7d8fbd36/attachment.html>


More information about the ACT-R-users mailing list