Dear Robert, thanks for your quick reply
The latest version of RNetLogo works fine with NetLogo 6.
The only function of this package that might have been useful was
NLSourceFromString("Description: NLSourceFromString is a way to
create/append a NetLogo model's source code dynamically from R").
But, as you mention, it does not work in headless mode.
I was actually more counting on the Java controlling API because that
sounded more 'low level'.
So there's really no way to create/modify/save a .netlogo file?...sorry to
insist
Vincent
Le jeudi 16 février 2017 05:57:15 UTC+8, Robert Grider a écrit :
>
> Vincent,
>
> Since your email mentions RNetLogo, I assume you're using NetLogo 5.3.1.
> In 5.3.1 (and 6.0 as well) there are no methods on HeadlessWorkspace to
> save a model to a ".nlogo" file. 6.0 offers other classes that can read and
> write ".nlogo" files, but at the moment RNetLogo isn't compatible with
> NetLogo 6. The solution you mentioned of modifying the first 3 sections of
> an empty ".nlogo" file is probably the best workaround at the moment.
>
> Regards,
> Robert Grider
>
> On Tue, Feb 14, 2017 at 3:58 AM, <[email protected] <javascript:>>
> wrote:
>
>> Hello,
>>
>> We are building a user interface that allows user to create simple ABM
>> models. This UI can interact with NetLogo in headless mode but we can't
>> have the user interact with NetLogo UI.
>>
>> At the end of the creation process we should be able to generate a
>> working .nlogo file (i.e. with source code, info, world settings, etc...)
>>
>> These models are then called in headless mode using RNetLogo.
>>
>> I've tried to achieve this using the Java API (
>> https://github.com/NetLogo/NetLogo/wiki/Controlling-API) but
>> org.nlogo.headless.HeadlessWorkspace doesn't seem to have functions for
>> creating/modifying/saving a model.
>>
>> I hope I'm wrong, but if that's indeed not possible I guess my best
>> option is to create copies of an empty .nlogo file and to go modify the
>> first 3 sections (the ones containing the source code, the indo and the
>> settings).
>>
>> Thanks in advance
>> Vincent
>>
>> --
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.