Hum,
It seems there is a method to getExtensionManager(): ExtensionManager
<http://ccl.northwestern.edu/netlogo/docs/scaladoc/org/nlogo/workspace/ExtensionManager.html>
 an *ExtensionManager* class available in *HeadlessWorkspace* :

http://ccl.northwestern.edu/netlogo/docs/scaladoc/org/nlogo/headless/HeadlessWorkspace.html


2017-05-15 15:35 GMT+02:00 reyman <[email protected]>:

> The headless API page on github didn't change (
> https://github.com/NetLogo/NetLogo/wiki/Controlling-API ), i ask directly
> to dev if something change in headless way to load extensions.
>
> 2017-05-15 15:26 GMT+02:00 reyman <[email protected]>:
>
>> Hi,
>>
>> First, there is a change in the path where extension are located in
>> netlogo 6.0.1 official folder >> */app/extensions/*
>>
>> In the 6.1 doc, i didn't found any other changes :
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *NetLogo will look for extensions in several places:In the folder of the
>> current model.The extensions folder located with the NetLogo installation.
>> For typical NetLogo installations:On Mac OS X: /Applications/NetLogo
>> 6.0.1/extensionsOn 64-bit Windows with 64-bit NetLogo or 32-bit Windows
>> with 32-bit NetLogo: C:\Program Files\NetLogo 6.0.1\app\extensionsOn 64-bit
>> Windows with 32-bit NetLogo: C:\Program Files (x86)\NetLogo
>> 6.0.1\app\extensionsOn Linux: the app/extensions subdirectory of the
>> NetLogo directory extracted from the installation .tgzEach NetLogo
>> extension consists of a folder with the same name as the extension,
>> entirely in lower case. This folder must contain a JAR file with the same
>> name as the folder. For example the sound extension is stored in a folder
>> called sound with a file inside called sound.jar.To install a NetLogo
>> extension for use by any model, put the extension's folder in the NetLogo
>> extensions directory. Or, you can just keep the extension's folder in the
>> same folder as the model that uses it.*
>>
>> 2017-05-15 15:18 GMT+02:00 Romain Reuillon <[email protected]>:
>>
>>> It might be cause by a change in netlogo 6 in the way it manages
>>> extensions in headless. Can you check the doc of netlogo on this point ?
>>> Can you run your model using the headless mode of netlogo directly?
>>>
>>> Romain
>>>
>>>
>>> Le 15/05/2017 à 15:14, reyman a écrit :
>>>
>>> Hi,
>>>
>>> I'm trying to use a *Netlogo6Task* to run a model with *csv* official
>>> extensions enabled and rungeKuta custom extension i made :
>>>
>>> *extensions [csv rungeKuta]*
>>>
>>> This csv extension exist* by default in 6.1 Netlogo folder
>>> Netlogo6.0.1/app/extensions. *
>>> *Run failed with netlogo error which cannot find the csv extension.*
>>>
>>> I try to recopy the csv extension which contain the jar in my embedeed
>>> workdir, also without success.
>>>
>>> Any idea ?
>>>
>>> *val cmds = List("random-seed ${seed}", "setup-openmole 200 ./data/1/
>>> 5", "main-loop")*
>>>
>>> *val micmac = NetLogo6Task( workDirectory /
>>> "MICMAC-innovativeSHS-v5/MICMAC.nlogo", cmds, true)  set (...)*
>>>
>>>
>>> In the next documentation, it could be cool to add a workflow with
>>> custom extension.
>>>
>>> Cheers,
>>> SR.
>>>
>>>
>>> --
>>> <http://stackoverflow.com/users/385881/reyman64>
>>>
>>>
>>> _______________________________________________
>>> OpenMOLE-users mailing 
>>> [email protected]http://fedex.iscpif.fr/mailman/listinfo/openmole-users
>>>
>>>
>>>
>>> _______________________________________________
>>> OpenMOLE-users mailing list
>>> [email protected]
>>> http://fedex.iscpif.fr/mailman/listinfo/openmole-users
>>>
>>>
>>
>>
>> --
>> <http://stackoverflow.com/users/385881/reyman64>
>>
>
>
>
> --
> <http://stackoverflow.com/users/385881/reyman64>
>



-- 
<http://stackoverflow.com/users/385881/reyman64>
_______________________________________________
OpenMOLE-users mailing list
[email protected]
http://fedex.iscpif.fr/mailman/listinfo/openmole-users

Reply via email to