

These modified model files are hosted on github. As an example, we added noxygen tags to the Wolf Sheep model from the NetLogo models library. The procedure creates a markdown file and renders the documentation in the specified output. One, or more model files containing noxygen tags, can be used to call the nldoc function of the nlrx package. ` Depending on the chosen model version, grass patches are initialized. However, the only automatic updates that NetLogo performs. ` TRUE turtles -own both wolves and sheep have energy patches -own ` Setup ` The setup procedure first resets the model. declare breeds, we can declare and store our own agentsets in global, local, or agent variables. Patches have a countdown variable to store the current state of the grass regrowth countdown. breed ` Agent properties ` Sheep and wolves have a energy variable. ` Wolf Sheep Predation (NetLogo models library) ` Uri Wilenski ` Subfiles ` We included a subilfe to the wolf sheep model to demonstrate that nls files are supported by nldoc ` TRUE _includes ` Global variables ` There is only one global variable that stores the max number of sheep allowed ` TRUE globals dont let sheep population grow too large ` Breeds ` There are two breeds : sheep and wolves ` TRUE breed sheep is its own plural, so we use "a-sheep" as the singular.
Netlogo breeds code#

` Defines the title for the model documentation.Noxygen tags are organized in three main groups: These tags are very similar to roxygen documentation tags and are called noxygen tags for the purpose of this package. To see which agent (turtles, patches, observer) can actually run each command, consult each individual entry in the dictionary. To unsubscribe from this group and stop receiving emails from it, send an email to. In order to create NetLogo model documentations with nlrx, documentation tags need to be added to the NetLogo model. You received this message because you are subscribed to the Google Groups 'netlogo-users' group.
