Hey Gaby,

The simplest way I can think of if you're using the Controlling API with 
the NetLogo GUI is to use Tools > Halt to stop your model while it's 
running.  This should let you inspect globals and agents as you would 
normally be able to.  The downside is that your model will not resume 
automatically, so this is really a "halt" and not a "pause".

The next idea I'd have would be to modify your code that runs the model. 
 Instead of doing something like `App.app.command("repeat 500 [ go ]")` to 
execute your model, have a control loop inside your program that would run 
`App.app.command("go")` and also check for user input, like "P" for pause 
and "R" for resume, and otherwise continue running "go" up to whatever 
count you're going for.  

Maybe someone else has a better idea, but I hope that's helpful.

-Jeremy 

On Friday, April 12, 2019 at 12:11:35 PM UTC-5, Gaby Joe Hannoun wrote:
>
> Hello,
>
> Is it possible to pause a Netlogo simulation invoked and controlled by 
> another program running on the Java Virtual Machine. I am executing the 
> java program in terminal in which a process can be suspend using Ctrl + Z. 
> If do so, upon switching to the Netlogo interface and trying to right-click 
> on an agent to analyze its variable, the Netlogo interface is freezing.
>
> Is there a more practical way of doing that?
>
> Thanks,
> Gaby
>

-- 
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netlogo-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to