"go") for a defined number of times and save the value of a state variable each time.Ī list/nested list or ame with the value(s) of the reporter after each execution of the command. It is often used to call a procedure (e.g. This function is used to execute a command more than one time and report a value or a number of values afterĮach iteration. (optional) A string identifying a reference to a NetLogo instance created with NLStart. The argument is a vector containing the names as strings in the same order as the submitted reporters. (optional) If as.ame=TRUE, contains the names of the columns of the returned ame. (optional) If TRUE the function will return a ame instead of a list. But the result will not be an R list with nested R lists but an R list with nested R vectors because NetLogo lists are converted to R vectors.) (A similar effect can be reached by using a NetLogo reporter returning a NetLogo list, like "(list count patches count agents)" as a single string argument. This argument can also be an R vector containing multiple strings with different NetLogo reporters (separated by commas), like c("count patches", "count turtles"). NLDoReport ( iterations, command, reporter, as.ame = FALSE, df.col.names = NULL, nl.obj = NULL )Īn integer defining how many times the command is repeated.Ī string with the NetLogo command to be executed. RNetLogo-package: Provides an interface to the agent-based modelling platform.A list of NetLogo reporters ( ) encoded as Python strings is required. NLStart: Creates an instance of NetLogo NL4Py is a Python package for the parallel execution of NetLogo simulations via.NLSourceFromString: Creates or appends NetLogo code from R.NLSetPatchSet: Sets the variable value of one or more patch(es) to value(s).NLSetPatches: Sets a variable of all patches in the NetLogo world to the.NLSetAgentSet: Sets a variable of one or more agent(s) to value(s) in a.NLReport: Reports a value or list of values.NLLoadModel: Loads a model into the NetLogo instance.NLGetPatches: Reports the values of patch variables as a ame.NLGetAgentSet: Reports variable value(s) of one or more agent(s) as a.NLDoReportWhile: Repeats execution of a command and a reporter in the.NLDoReport: Repeats a command and a reporter in the referenced NetLogo.NLDoCommandWhile: Repeats a command in the referenced NetLogo instance while a.NLDoCommand: Repeats execution of a command in the referenced NetLogo.NLDfToList: Transforms a ame into a NetLogo list or multiple. In most programming languages reporters are called functions and reporting a value is returning a value. NLCommand: Executes a command in the referenced NetLogo instance. Note: The term reporter is unique to NetLogo.
0 Comments
Leave a Reply. |