Hi All,

Maybe I am just missing it but I can't seem to find any documentation on an 
API for NetLogo Web - at least for the JS side of it. Looking through the 
code and using developer tools in my browser I can sort of piece together 
bits and pieces like - ProcedurePrims, AgentModel, workspace, etc. Is there 
any documentation? I can't seem to find any on Git, a slight mention of 
some changes i.e. Procedure Definitions and Calling 
https://github.com/NetLogo/Tortoise/wiki/API-Change-Log  but that is about 
it.

If there is no documentation then even just some help being able to get a 
JS instance of NetLogo web, when the model is loaded in a browser, if such 
a thing exists. Or the instance for the the model inter-phase (buttons, 
sliders, etc.). This is for the standalone HTML export of an individual 
model, not anything on netlogoweb.org. From there I could probably inspect 
the class/object and work out the functions, etc. to make it do what I need.

Why it is needed - I am creating some tutorials on how to use NetLogo using 
JS tour software to take users through it (will be released under CC and OS 
so everyone is free to use them) and standalone exported NetLogo Models. It 
works well enough highlighting buttons, etc. It's when I get to a bit more 
complicated with more interaction e.g. trying to check a users input and 
compare it against the desired outcome. I have been able to get the 
CodeMirror instance which has helped for the code but the model inter-phase 
(buttons, sliders, etc.) is proving to be a bit more tricky. Is there a 
class for that which can be accessed from another JS script? This can sort 
of be done by accessing the DOM and checking for changes but it is a bit 
buggy and I have to account for lots of different use cases so being able 
to work directly with an API would be great.

Thank you,
Doug

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netlogo-devel/5f5bce39-6e64-4524-81ce-be5904099766n%40googlegroups.com.

Reply via email to