fokimood.blogg.se

Netlogo breeds
Netlogo breeds








netlogo breeds

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#

  • ` Further description of the model procedure (multi line: each further line needs to start with details tag)įor example, the start of a NetLogo model file with noxygen code could look like this:.
  • ` Description of the return value (in case of to-report functions).
  • ` Defines a parameter that needs to be provided for the function call.
  • ` Defines the name of a model procedure.
  • ` TRUE/FALSE if following code should be included in the documentation.
  • ` Further description of the global definition (multi line: each further line needs to start with details tag).
  • ` Defines the name of a global definitions (e.g. globals, patches-owns, breeds, …).
  • ` Defines author of the model (multiple author tags can be used to define several authors).
  • netlogo breeds

    ` 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.










    Netlogo breeds