NetLogo API - guidance sought on having external turtles

51 views
Skip to first unread message

rban...@gmail.com

unread,
Mar 6, 2020, 9:48:00 AM3/6/20
to netlogo-devel
Hi, I want to hook into the API in some way so as to provide external actors in a NetLog o simlation.  Can some one point me to the right documentation as Looging at what comes out of Google is for controlling mutiple simulation runs which is not want I want.  I want to have a real turtle implemented in something else (Real human, as or other )

Thanks

Jeremy Baker

unread,
Mar 6, 2020, 12:32:13 PM3/6/20
to netlogo-devel
If you want to capture some external source of information and bring it into a NetLogo model, the best option is to create an extension.  We have documentation covering the basics of the extensions API as well as walking through creating a basic extension in Java or Scala.  As long as you can access your external data source from a JVM-compatible language, this should work:  https://github.com/NetLogo/NetLogo/wiki/Extensions-API

For more specific examples, you can check out the source code for the Physics Extension, which uses an external physics library to process turtle movement, and the Arduino Extension, which pulls in external Arduino sensor data for use inside a NetLogo model.


I hope that helps, and good luck with your project.

-Jeremy
Reply all
Reply to author
Forward
0 new messages