更改

《超越学科的认知基础》2015颜峻学习报告-第九周

添加3,828字节2016年4月6日 (三) 01:03
41个版本:all
Windows, Linux, et al). It is run as a desktop application. Command line operation is also supported. '''[1]'''
[[File:netlogo.png|400px]] [[File:net logo manual book image.png|400px]]
*[[:File:Netlogo manual book.pdf]]
====Great Advantages '''[1]''' ====
=====System=====
#'''Free, open source'''#'''Cross-platform: runs on Mac, Windows, Linux, et al'''# International character set support 
=====Programming=====
# '''Fully programmable'''# '''Language is Logo dialect extended to support agents'''# '''Large vocabulary of built-in language primitives'''# '''Mobile agents (turtles) move over a grid of stationary agents (patches)'''# '''Link agents connect turtles to make networks, graphs, and aggregates'''
# Approachable syntax
# Language is Logo dialect extended to support agents
# Mobile agents (turtles) move over a grid of stationary agents (patches)
# Link agents connect turtles to make networks, graphs, and aggregates
# Large vocabulary of built-in language primitives
# Double precision floating point math
# First-class function values (aka tasks, closures, lambda)
# Runs are reproducible cross-platform
=====Environment=====
# '''Interface builder w/ buttons, sliders, switches, choosers, monitors, text boxes, notes, output area'''
# '''Agent monitors for inspecting and controlling agents'''
# '''NetLogo 3D for modeling 3D worlds'''
# Command center for on-the-fly interaction
# Interface builder w/ buttons, sliders, switches, choosers, monitors, text boxes, notes, output area
# Info tab for annotating your model with formatted text and images
# HubNet: participatory simulations using networked devices
# Agent monitors for inspecting and controlling agents
# Export and import functions (export data, save and restore state of model, make a movie)
# BehaviorSpace, an open source tool used to collect data from multiple parallel runs of a model
# System Dynamics Modeler
# NetLogo 3D for modeling 3D worlds
# Headless mode allows doing batch runs from the command line
=====Display and visualization=====
# '''Line, bar, and scatter plots'''# '''Speed slider lets you fast forward your model or see it in slow motion'''# '''View your model in either 2D or 3D'''# '''Scalable and rotatable vector shapes'''
# Turtle and patch labels
=====APIs=====
# '''controlling API allows embedding NetLogo in a script or application'''# '''extensions API allows adding new commands and reporters to the NetLogo language'''; open source example extensions are included  ====Netlogo模型的基本架构====Netlogo模型中起着关键作用的是Observer, patch, turtle和link四个功能模块。 Patch是被安放在网格中的,Turtle在网格中运动。Link连接两个Turtle。Observer控制全部的模块。这一点通过命令语言也能够看出,通过直接命令语句能够在对应的模块控制框中修改参量,但是在观察者的控制框中能够通过Ask语句控制其他的三种模块。 这其实是一种比喻的体现。其中的turtle作为structural metaphors,能够以一个简单的图标来模拟其他的不同事物,而事物的性质能够通过一系列函数添加到turtle上,而这些性质是通过功能或者说函数来实现的,netlogo中的tutrtle具有读取数据并且修改数据的功能,因此能够作为一个非常强大的本体载体。通过改变patch我们能够很轻松地修改环境参量,从而建立我们所需要的模型。 Netlogo的语言实际上是一种简化过的计算机语言,具有很高的可操作性和简洁性。在编写程序的时候,程序包含控制流和数据流,那么observer实际上就是控制流,而turtle, patch和link则相当于被控制的模块,数据流很大程度上是通过颜色来实现的,颜色的种类(深浅)代替了不同的数值。Netlogo的语言通过这种简单的架构大大地降低了操作的复杂性。  [[File:basic model.png|800px]] ====程序语言[1]===={|border=1|+|Agents|Agents are beings that can follow instructions|-|Procedures|Commands and reporters you define yourself are called procedures|-|Variables|Agent variables are places to store values (such as numbers) in an agent|-|Tick counter|In many NetLogo models, time passes in discrete steps, called "ticks"|-|Colors|NetLogo represents colors in different ways|-|Ask|NetLogo uses the ask command to give commands to turtles, patches, and links|-|Agentsets|An agentset is exactly what its name implies, a set of agents|-|Breeds|NetLogo allows you to define different "breeds" of turtles and breeds of links|-|Buttons|Buttons in the interface tab provide an easy way to control the model|-|Lists|Lists allow for the convenient packaging of information in NetLogo|-|Random numbers|The random numbers used by NetLogo are what is called "pseudo-random"|-|Turtle shapes|In NetLogo, turtle shapes are vector shapes.|-|Link shapes|Link Shapes are similar to turtle shapes, only you use the Link Shape Editor to create and edit them|-|View updates|The "view" in NetLogo lets you see the agents in your model on your computer's screen|-|Plotting|NetLogo's plotting features let you create plots to help you understand what's going on in your model|-|Strings|Strings may contain any Unicode characters|-|Output|This section is about output to the scree|-|File I/O|In NetLogo, there is a set of primitives that give you the power to interact with outside files|-|Movies|This section describes how to capture a QuickTime movie of a NetLogo model|-|Perspective|The 2D and the 3D view show the world from the perspective of the observer|-|Drawing|The drawing is a layer where turtles can make visible marks|-|Topology|The way the world of patches is connected can change|-|Links|A link is an agent that connects two turtles|-|Tasks|Tasks let you store code to be run later|-|Ask-Concurrent|The following information is included only for backwards compatibility|-|Tie|Tie connects two turtles so that the movement of one turtles affects the location and heading of another|-|Multiple source files|The __includes keyword allows you to use multiple source files in a single NetLogo model|-|Syntax|In the Code tab and elsewhere in the NetLogo user interface|-|} [[File:程序语言.PNG|800px]]
====有趣的发现====
[[File:netlogo词典.PNG|400px]] [[File:词典截图.png|400px]]
====Netlogo模型的基本架构====Netlogo模型中起着关键作用的是Observer, patch, turtle和link四个功能模块。Patch是被安放在网格中的,Turtle在网格中运动。Link连接两个Turtle。Observer
====关键人物====
0
个编辑