Ecrin
Ecrin

Reputation: 246

netlogo in java

I need to create a large library to determine turtles' behaviour and need an interface to show the results after they completed their behaviours. Is it possible to run Netlogo in Netbeans ? If possible , does it create problems after a while such as limited reaching to codes ,slows down or anything else?

Upvotes: 2

Views: 983

Answers (2)

Andrew Waterman
Andrew Waterman

Reputation: 105

Actually, you can use the "HeadlessWorkspace" functionality to run NetLogo programs from within a Java program (or unit test). So, using this, you can definitely step through responses from a model within a NetBeans debugging session (e.g. querying reporters).

Please see the following page for the projects' description of this functionality:

https://github.com/NetLogo/NetLogo/wiki/Controlling-API

Upvotes: 3

Jose M Vidal
Jose M Vidal

Reputation: 9160

NetLogo is a Java program which implements both an IDE (Integrated Development Environment) for the NetLogo programming language, as well as a NetLogo interpreter. NetBeans is an IDE for Java (and other languages, but not NetLogo).

So, no, you cannot run NetLogo programs in Netbeans. Netlogo programs only run in the Netlogo IDE.

You are also asking about speed. Yes, a NetLogo program probably runs slower than an equivalent program written in Java. It depends on the specific program.

Upvotes: -1

Related Questions