Netlogo 2.0.2 User Manual
Total Page:16
File Type:pdf, Size:1020Kb
NetLogo 2.0.2 User Manual NetLogo 2.0.2 User Manual Table of Contents What is NetLogo?..............................................................................................................................1 Features...................................................................................................................................1 Copyright Information.......................................................................................................................3 What's New?.......................................................................................................................................5 Version 2.0.2 (August 6, 2004)................................................................................................5 Version 2.0.1 (May 7, 2004).....................................................................................................6 Version 2.0.0 (December 10, 2003).........................................................................................7 Version 1.3.1 (September 2003)............................................................................................10 Version 1.3 (June 2003).........................................................................................................11 Version 1.2 (March 2003)......................................................................................................11 Version 1.1 (July 2002)..........................................................................................................11 Version 1.0 (April 2002).........................................................................................................12 System Requirements.....................................................................................................................13 System Requirements: Application........................................................................................13 Windows...........................................................................................................................13 Mac OS X.........................................................................................................................13 Mac OS 8 and 9...............................................................................................................13 Other platforms................................................................................................................13 System Requirements: Saved Applets..................................................................................13 Known Issues...................................................................................................................................15 Known bugs (all systems)......................................................................................................15 Windows−only bugs...............................................................................................................15 Macintosh−only bugs.............................................................................................................15 Linux/UNIX−only bugs...........................................................................................................15 Known issues with computer HubNet....................................................................................16 Planned features....................................................................................................................16 Unimplemented StarLogoT primitives....................................................................................16 Contacting Us..................................................................................................................................17 Web Site................................................................................................................................17 Feedback, Questions, Etc......................................................................................................17 Reporting Bugs......................................................................................................................17 Sample Model: Party.......................................................................................................................19 At a Party...............................................................................................................................19 Challenge...............................................................................................................................21 Thinking With Models.............................................................................................................22 What's Next?..........................................................................................................................22 Tutorial #1: Models..........................................................................................................................23 Sample Model: Wolf Sheep Predation...................................................................................23 Controlling the Model: Buttons...............................................................................................24 Adjusting Settings: Sliders and Switches...............................................................................25 Gathering Information: Plots and Monitors............................................................................27 i NetLogo 2.0.2 User Manual Table of Contents Tutorial #1: Models Plots.................................................................................................................................27 Monitors...........................................................................................................................27 Controlling the Graphics Window...........................................................................................28 The Models Library................................................................................................................31 Sample Models................................................................................................................32 Curricular Models.............................................................................................................32 Code Examples................................................................................................................32 HubNet Calculator & Computer Activities........................................................................32 What's Next?..........................................................................................................................32 Tutorial #2: Commands...................................................................................................................33 Sample Model: Traffic Basic..................................................................................................33 The Command Center...........................................................................................................33 Working With Colors..............................................................................................................36 Agent Monitors and Agent Commanders...............................................................................38 What's Next?..........................................................................................................................41 Tutorial #3: Procedures...................................................................................................................43 Setup and Go.........................................................................................................................43 Patches and Variables...........................................................................................................47 An Uphill Algorithm................................................................................................................50 Some More Details................................................................................................................54 What's Next?..........................................................................................................................55 Appendix: Complete Code.....................................................................................................56 Interface Guide.................................................................................................................................59 Menus....................................................................................................................................59 Main Window.........................................................................................................................61 Interface Tab....................................................................................................................61 Procedures Tab................................................................................................................64 Information Tab................................................................................................................65 Errors Tab........................................................................................................................66 Programming Guide........................................................................................................................67 Agents....................................................................................................................................67