include test

No preview image

1 collaborator

Uri_dolphin3 Uri Wilensky (Author)

Tags

(This model has yet to be categorized with any tags)
Model group CCL | Visible to everyone | Changeable by group members (CCL)
Model was written in NetLogo 4.0beta4 • Viewed 202 times • Downloaded 35 times • Run 0 times
Download the 'include test' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


WHAT IS IT?

This section could give a general understanding of what the model is trying to show or explain.

HOW IT WORKS

This section could explain what rules the agents use to create the overall behavior of the model.

HOW TO USE IT

This section could explain how to use the model, including a description of each of the items in the interface tab.

THINGS TO NOTICE

This section could give some ideas of things for the user to notice while running the model.

THINGS TO TRY

This section could give some ideas of things for the user to try to do (move sliders, switches, etc.) with the model.

EXTENDING THE MODEL

This section could give some ideas of things to add or change in the procedures tab to make the model more complicated, detailed, accurate, etc.

NETLOGO FEATURES

This section could point out any especially interesting or unusual features of NetLogo that the model makes use of, particularly in the Procedures tab. It might also point out places where workarounds were needed because of missing features.

RELATED MODELS

This section could give the names of models in the NetLogo Models Library or elsewhere which are of related interest.

CREDITS AND REFERENCES

This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.

Comments and Questions

How to __includes? (Question)

I've tried to upload a model with __includes but the included files didn't upload. I tried uploading them separately in the Files tab but the model still wouldn't run. Can you share how you got __includes working in this model? Am I missing something obvious? Thanks, Rik

Posted over 11 years ago

Running where?

Hi, Rik. If I understand your question correctly, you're not asking about how __include works per se, but rather how it works on the Modeling Commons, from within an applet running on the browser (i.e., on the "run" tab). Moreover, it sounds like a model that you uploaded isn't working correctly with __include, whereas this model does. If so, then my answer is that this code example ("include test") doesn't actually work as an applet, even though it works just fine when downloaded and run from within NetLogo. There are two reasons for this: (1) No .nls file is on the "files" tab, which is a mistake on my part, and (2) I'm not sure if .nls files and __include will work at all in the applet, given the inherent trickiness of Java applets and the way in which files are retrieved. I'll check into this a bit more, and will update the forum here when I have some more new information regarding __include on applets, this model, and other models.

Posted over 11 years ago

Thanks, let me know.

Thanks Reuven. Sorry for not "including" enough information but yes, you guessed right. I was looking at this applet as an example for how to get my own model working as an applet. (You can find it at http://modelingcommons.org/browse/one_model/3845 ). My own model works fine with __includes when run directly from NetLogo (5.0.4) but not when I tried to upload it to Modeling Commons as an applet. Thanks for looking into it. Please let me know what you discover.

Posted over 11 years ago

Seems to be working now

__includes seem to be working now. Thanks!

Posted over 11 years ago

Click to Run Model

__includes [ "include test.nls" ]

to foo1
  foo2
end 

There are 3 versions of this model.

Uploaded by When Description Download
Uri Wilensky over 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 14 years ago include test Download this version
Uri Wilensky over 14 years ago include test Download this version

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.