This page last changed on Mar 05, 2008 by scytacki.

Below is a list of things that we are using or could use to Embed NetLogo

There is also Improvements to NetLogo Embedding which discusses things the NetLogo group could do to make the embedding work better.

Embedding as an Applet

We currently embed NetLogo using its applet class. This is done by this class:

The nlogo class being used is:

General Documenation

This is the web based documentation for NetLogo
This include information about controlling and logging NetLogo

Controlling NetLogo with NetLogo scripts

This page:

Shows how the
class has a static field "app" which can be used to run scripts in the current NetLogo application. For example:"set density 62");

Getting Log data from NetLogo

This page:

Describes how log data can be retrieve from NetLogo. It is using the Log4J library to do the logging.
I think a custom log handler could be installed
so the log messages generated by NetLogo could be caught directly instead of having them sent to an xml file first.

This seems like the interface that needs to be used to handle the log messages:

This page:
Has info about appenders, and adding them to loggers

Document generated by Confluence on Jan 27, 2014 16:52