Quits the NetLogo workspace and closes the GUI window (if started with GUI).
退出的NetLogo的工作空间和关闭的GUI窗口(如果已经启动GUI)。
用法----------Usage----------
NLQuit(nl.obj=NULL)
参数----------Arguments----------
参数:nl.obj
(optional) A variable holding a reference to a NetLogo instance created with NLStart.
(可选)变量参考到的NetLogo实例的创建与NLStart。
值----------Value----------
No return value.
没有返回值。
警告----------Warning ----------
There is currently no way to kill a NetLogo instance with GUI completly. After executing NLQuit on a GUI instance, you can't run NLStart again. You have to quit your R session first and start a new one. The reason is, that NetLogo quits itself via System.exit (and has no funcionality to quit all threads manually) but executing System.exit will terminate the whole JVM which will terminate also rJava and finally R. It can happen that some memory is not released although you have executed NLQuit because shutting down the running JVM via rJava and unloading the required libraries is not possible. Therefore, it is a good idea to start a new R session whenever it is possible (e.g. if you are going to load a new model).
目前还没有杀一个的NetLogo与GUI完全地实例的方式来。在执行NLQuit了一个GUI实例,你可以不运行NLStart再。你必须先退出R会话,并开始一个新的。究其原因,是的NetLogo退出通过System.exit(没有手动退出所有线程的funcionality),但执行System.exit将终止整个JVM也将终止rJava的,最后R.它可能会发生一些内存是不是发布了,虽然你已经的执行NLQuit因为关闭正在运行的JVM通过rJava和卸载所需要的库是不可能的。因此,这是一个好主意,开始一个新的的R会话时,它是可能的(例如,如果你要加载一个新的模型)。
(作者)----------Author(s)----------
Jan C. Thiele <jthiele@gwdg.de>
参见----------See Also----------
NLStart
NLStart
实例----------Examples----------
## Not run: [#不运行:]
NLStart("C:/Program Files/NetLogo 5.0")
NLQuit()