Upload
dominick-welch
View
215
Download
1
Embed Size (px)
Citation preview
New Mexico Computer Science For All
Interface Output in NetLogo (Part 1)
Maureen Psaila-Dombrowski
Output on the Interface Tab
•Gathering data is an important part of modeling
•Easiest to the Interface Tab
•Four ways/locations▫Monitor▫Graph▫Command Center▫Output Area
Output to a Monitor•Outputting to a Monitor is easiest.
Requires not in-code output commands Just need the variable name
•Outputs the current value of an variable
•Updated continuously as the model runs
Output to a Monitor
•Create a Monitor on the Interface Tab
▫ Click on the drop down menu (where button is shown) and select Monitor in the drop down menu
▫ Add it to the Interface tab clicking on Add and then clicking in the white space
▫ The edit dialog box automatically opens
Output to a Monitor
Output to a Monitor
•Program with output to a Monitor
Output to a Simple Graph•Outputting to a Graph is slightly harder
but… More than one variable at a time A line for each variable Graphical information can be easier to
understand History of output
•Outputs the value of an variable•Updated continuously as the model runs
Output to a Simple Graph
•Create a Graph on the Interface Tab
▫ Click on the drop down menu (where button is shown) and select Graph in the drop down menu
▫ Add it to the Interface tab clicking on Add and then clicking in the white space
▫ The edit dialog box automatically opens
•Program with output to a Graph
Summary•Gathering data - important part of modeling•Four ways/locations
▫Monitor – easiest Outputs the current value Updated continuously as the model runs
▫Graph More than one variable at a time (line for each) Graphical information can be easier to
understand Continuous history of output
▫Command Center ▫Output Area