Download NetLogo 3.1.4 User Manual

Transcript
NetLogo 3.1.4 User Manual
to reach the nearest corner of that patch is reported.
See also uphill4, downhill, downhill4.
uphill4
uphill4 patch−variable
Reports the turtle heading (between 0 and 359 degrees) as a multiple of 90 degrees in the direction
of the maximum value of the variable patch−variable, of the four patches to the north, south, east,
and west of the turtle. If there are multiple patches that have the same greatest value, a random
patch from those patches will be selected.
See also uphill, downhill, downhill4.
user−directory
user−directory
Opens a dialog that allows the user to choose an existing directory on the system.
It reports a string with the absolute path or false if the user cancels.
set−current−directory user−directory
;; Assumes the user will choose a directory
user−file
user−file
Opens a dialog that allows the user to choose an existing file on the system.
It reports a string with the absolute file path or false if the user cancels.
file−open user−file
;; Assumes the user will choose a file
user−new−file
user−new−file
Opens a dialog that allows the user to choose a location and name of a new file to be created.
It reports a string with the absolute file path or false if the user cancels.
file−open user−new−file
;; Assumes the user will choose a file
288
Primitives Dictionary