Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Sample Models/Biology/Ants.nlogox
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<model version="NetLogo 7.0.0-internal1" snapToGrid="false">
<model version="NetLogo 7.0.0-internal1" snapToGrid="true">
<code><![CDATA[patches-own [
chemical ;; amount of chemical on this patch
food ;; amount of food on this patch (0, 1, or 2)
Expand Down Expand Up @@ -146,13 +146,8 @@ end
; Copyright 1997 Uri Wilensky.
; See Info tab for full copyright and license.]]></code>
<widgets>
<view x="257" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-35" height="501" showTickCounter="true" patchSize="7.0" fontSize="10" wrappingAllowedY="false" width="501" tickCounterLabel="ticks" maxPycor="35" updateMode="1" maxPxcor="35" minPxcor="-35"></view>
<button x="46" y="71" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="80" sizeVersion="0">setup</button>
<slider x="31" step="1.0" y="106" max="99.0" display="diffusion-rate" height="33" min="0.0" direction="Horizontal" default="50.0" variable="diffusion-rate" width="190" sizeVersion="0"></slider>
<slider x="31" step="1.0" y="141" max="99.0" display="evaporation-rate" height="33" min="0.0" direction="Horizontal" default="10.0" variable="evaporation-rate" width="190" sizeVersion="0"></slider>
<button x="136" y="71" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="75" sizeVersion="0">go</button>
<slider x="31" step="1.0" y="36" max="200.0" display="population" height="33" min="0.0" direction="Horizontal" default="125.0" variable="population" width="190" sizeVersion="0"></slider>
<plot x="5" autoPlotX="true" yMax="120.0" autoPlotY="true" yAxis="food" y="197" xMin="0.0" height="279" legend="false" xMax="50.0" yMin="0.0" xAxis="time" display="Food in each pile" width="243" sizeVersion="0">
<view x="317" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-35" height="501" showTickCounter="true" patchSize="7.0" fontSize="10" wrappingAllowedY="false" width="501" tickCounterLabel="ticks" maxPycor="35" updateMode="1" maxPxcor="35" minPxcor="-35"></view>
<plot x="10" autoPlotX="true" yMax="120.0" autoPlotY="true" yAxis="food" y="245" xMin="0.0" height="264" legend="false" xMax="50.0" yMin="0.0" width="303" xAxis="time" display="Food in each pile">
<setup></setup>
<update></update>
<pen interval="1.0" mode="0" display="food-in-pile1" color="-11221820" legend="true">
Expand All @@ -168,6 +163,11 @@ end
<update>plotxy ticks sum [food] of patches with [pcolor = blue]</update>
</pen>
</plot>
<slider x="36" step="1.0" y="180" max="99.0" width="250" display="evaporation-rate" height="50" min="0.0" direction="Horizontal" default="10.0" variable="evaporation-rate"></slider>
<slider x="36" step="1.0" y="11" max="200.0" width="250" display="population" height="50" min="0.0" direction="Horizontal" default="125.0" variable="population"></slider>
<slider x="36" step="1.0" y="122" max="99.0" width="250" display="diffusion-rate" height="50" min="0.0" direction="Horizontal" default="50.0" variable="diffusion-rate"></slider>
<button x="80" y="69" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="85">setup</button>
<button x="170" y="69" height="45" disableUntilTicks="true" forever="true" kind="Observer" width="90">go</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
18 changes: 9 additions & 9 deletions Sample Models/Biology/Flocking.nlogox
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ end
; Copyright 1998 Uri Wilensky.
; See Info tab for full copyright and license.]]></code>
<widgets>
<view x="250" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-35" height="501" showTickCounter="true" patchSize="7.0" fontSize="10" wrappingAllowedY="true" width="501" tickCounterLabel="ticks" maxPycor="35" updateMode="1" maxPxcor="35" minPxcor="-35"></view>
<button x="39" y="93" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="77" sizeVersion="0">setup</button>
<button x="122" y="93" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="81" sizeVersion="0">go</button>
<slider x="9" step="1.0" y="51" max="1000.0" display="population" height="33" min="1.0" direction="Horizontal" default="300.0" variable="population" width="223" sizeVersion="0"></slider>
<slider x="4" step="0.25" y="217" max="20.0" display="max-align-turn" height="33" min="0.0" direction="Horizontal" default="5.0" variable="max-align-turn" units="degrees" width="233" sizeVersion="0"></slider>
<slider x="4" step="0.25" y="251" max="20.0" display="max-cohere-turn" height="33" min="0.0" direction="Horizontal" default="3.0" variable="max-cohere-turn" units="degrees" width="233" sizeVersion="0"></slider>
<slider x="4" step="0.25" y="285" max="20.0" display="max-separate-turn" height="33" min="0.0" direction="Horizontal" default="1.5" variable="max-separate-turn" units="degrees" width="233" sizeVersion="0"></slider>
<slider x="9" step="0.5" y="135" max="10.0" display="vision" height="33" min="0.0" direction="Horizontal" default="5.0" variable="vision" units="patches" width="223" sizeVersion="0"></slider>
<slider x="9" step="0.25" y="169" max="5.0" display="minimum-separation" height="33" min="0.0" direction="Horizontal" default="1.0" variable="minimum-separation" units="patches" width="223" sizeVersion="0"></slider>
<view x="269" wrappingAllowedX="true" y="12" frameRate="30.0" minPycor="-35" height="501" showTickCounter="true" patchSize="7.0" fontSize="10" wrappingAllowedY="true" width="501" tickCounterLabel="ticks" maxPycor="35" updateMode="1" maxPxcor="35" minPxcor="-35"></view>
<slider x="4" step="1.0" y="10" max="1000.0" width="250" display="population" height="50" min="1.0" direction="Horizontal" default="300.0" variable="population"></slider>
<slider x="4" step="0.25" y="234" max="20.0" width="250" display="max-align-turn" height="50" min="0.0" direction="Horizontal" default="5.0" variable="max-align-turn" units="degrees"></slider>
<slider x="4" step="0.25" y="289" max="20.0" width="250" display="max-cohere-turn" height="50" min="0.0" direction="Horizontal" default="3.0" variable="max-cohere-turn" units="degrees"></slider>
<slider x="4" step="0.25" y="344" max="20.0" width="250" display="max-separate-turn" height="50" min="0.0" direction="Horizontal" default="1.5" variable="max-separate-turn" units="degrees"></slider>
<slider x="4" step="0.5" y="124" max="10.0" width="250" display="vision" height="50" min="0.0" direction="Horizontal" default="5.0" variable="vision" units="patches"></slider>
<slider x="4" step="0.25" y="179" max="5.0" width="250" display="minimum-separation" height="50" min="0.0" direction="Horizontal" default="1.0" variable="minimum-separation" units="patches"></slider>
<button x="37" y="68" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="88">setup</button>
<button x="135" y="68" height="45" disableUntilTicks="true" forever="true" kind="Observer" width="81">go</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
36 changes: 18 additions & 18 deletions Sample Models/Biology/Wolf Sheep Predation.nlogox
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,11 @@ end
; Copyright 1997 Uri Wilensky.
; See Info tab for full copyright and license.]]></code>
<widgets>
<view x="355" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-25" height="514" showTickCounter="true" patchSize="10.0" fontSize="14" wrappingAllowedY="true" width="514" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="25" minPxcor="-25"></view>
<slider x="5" step="1" y="60" max="250" display="initial-number-sheep" height="33" min="0" direction="Horizontal" default="100.0" variable="initial-number-sheep" width="174" sizeVersion="0"></slider>
<slider x="5" step="1.0" y="196" max="50.0" display="sheep-gain-from-food" height="33" min="0.0" direction="Horizontal" default="4.0" variable="sheep-gain-from-food" width="174" sizeVersion="0"></slider>
<slider x="5" step="1.0" y="231" max="20.0" display="sheep-reproduce" height="33" min="1.0" direction="Horizontal" default="4.0" variable="sheep-reproduce" units="%" width="174" sizeVersion="0"></slider>
<slider x="185" step="1" y="60" max="250" display="initial-number-wolves" height="33" min="0" direction="Horizontal" default="50.0" variable="initial-number-wolves" width="165" sizeVersion="0"></slider>
<slider x="183" step="1.0" y="195" max="100.0" display="wolf-gain-from-food" height="33" min="0.0" direction="Horizontal" default="20.0" variable="wolf-gain-from-food" width="165" sizeVersion="0"></slider>
<slider x="183" step="1.0" y="231" max="20.0" display="wolf-reproduce" height="33" min="0.0" direction="Horizontal" default="5.0" variable="wolf-reproduce" units="%" width="165" sizeVersion="0"></slider>
<slider x="40" step="1" y="100" max="100" display="grass-regrowth-time" height="33" min="0" direction="Horizontal" default="30.0" variable="grass-regrowth-time" width="212" sizeVersion="0"></slider>
<button x="40" y="140" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="69" sizeVersion="0">setup</button>
<button x="115" y="140" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="75" sizeVersion="0">go</button>
<plot x="10" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="pop." y="360" xMin="0.0" height="170" legend="true" xMax="100.0" yMin="0.0" xAxis="time" display="populations" width="340" sizeVersion="0">
<view x="455" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-25" height="564" showTickCounter="true" patchSize="10.9804" fontSize="14" wrappingAllowedY="true" width="564" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="25" minPxcor="-25"></view>
<slider x="5" step="1.0" y="283" max="20.0" width="220" display="sheep-reproduce" height="50" min="1.0" direction="Horizontal" default="4.0" variable="sheep-reproduce" units="%"></slider>
<monitor x="350" precision="0" y="498" height="60" fontSize="11" width="100" display="grass">count grass / 4</monitor>
<slider x="5" step="1.0" y="230" max="50.0" width="220" display="sheep-gain-from-food" height="50" min="0.0" direction="Horizontal" default="4.0" variable="sheep-gain-from-food"></slider>
<plot x="5" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="pop." y="342" xMin="0.0" height="235" legend="true" xMax="100.0" yMin="0.0" width="340" xAxis="time" display="populations">
<setup></setup>
<update></update>
<pen interval="1.0" mode="0" display="sheep" color="-612749" legend="true">
Expand All @@ -179,16 +173,22 @@ end
<update>if model-version = "sheep-wolves-grass" [ plot count grass / 4 ]</update>
</pen>
</plot>
<monitor x="41" precision="3" y="308" height="45" fontSize="11" display="sheep" width="70" sizeVersion="0">count sheep</monitor>
<monitor x="115" precision="3" y="308" height="45" fontSize="11" display="wolves" width="70" sizeVersion="0">count wolves</monitor>
<monitor x="191" precision="0" y="308" height="45" fontSize="11" display="grass" width="65" sizeVersion="0">count grass / 4</monitor>
<note x="20" y="178" height="18" textColorLight="-16777216" fontSize="11" width="140" markdown="false">Sheep settings</note>
<note x="198" y="176" height="18" textColorLight="-16777216" fontSize="11" width="113" markdown="false">Wolf settings</note>
<switch x="105" y="270" height="33" on="false" variable="show-energy?" display="show-energy?" width="136" sizeVersion="0"></switch>
<chooser x="5" y="10" height="45" variable="model-version" current="0" display="model-version" width="345" sizeVersion="0">
<slider x="230" step="1" y="15" max="100" width="220" display="grass-regrowth-time" height="50" min="0" direction="Horizontal" default="30.0" variable="grass-regrowth-time"></slider>
<slider x="230" step="1.0" y="283" max="20.0" width="220" display="wolf-reproduce" height="50" min="0.0" direction="Horizontal" default="5.0" variable="wolf-reproduce" units="%"></slider>
<slider x="230" step="1.0" y="230" max="100.0" width="220" display="wolf-gain-from-food" height="50" min="0.0" direction="Horizontal" default="20.0" variable="wolf-gain-from-food"></slider>
<slider x="230" step="1" y="75" max="250" width="220" display="initial-number-wolves" height="50" min="0" direction="Horizontal" default="50.0" variable="initial-number-wolves"></slider>
<note x="50" y="211" backgroundDark="0" fontSize="11" width="140" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Sheep settings</note>
<note x="260" y="211" backgroundDark="0" fontSize="11" width="113" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Wolf settings</note>
<monitor x="350" precision="3" y="367" height="60" fontSize="11" width="100" display="sheep">count sheep</monitor>
<monitor x="350" precision="3" y="433" height="60" fontSize="11" width="100" display="wolves">count wolves</monitor>
<chooser x="5" y="10" height="60" variable="model-version" current="1" width="220" display="model-version">
<choice type="string" value="sheep-wolves"></choice>
<choice type="string" value="sheep-wolves-grass"></choice>
</chooser>
<slider x="5" step="1" y="75" max="250" width="220" display="initial-number-sheep" height="50" min="0" direction="Horizontal" default="107.0" variable="initial-number-sheep"></slider>
<button x="80" y="145" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="95" display="setup">setup</button>
<switch x="280" y="145" height="40" on="false" variable="show-energy?" width="115" display="show-energy?"></switch>
<button x="180" y="145" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="95" display="go">go</button>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
40 changes: 20 additions & 20 deletions Sample Models/Social Science/Segregation.nlogox
Original file line number Diff line number Diff line change
Expand Up @@ -84,36 +84,36 @@ end
; Copyright 1997 Uri Wilensky.
; See Info tab for full copyright and license.]]></code>
<widgets>
<view x="375" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-25" height="412" showTickCounter="true" patchSize="8.0" fontSize="10" wrappingAllowedY="true" width="412" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="25" minPxcor="-25"></view>
<monitor x="265" precision="1" y="365" height="45" fontSize="11" display="% unhappy" width="90" sizeVersion="0">percent-unhappy</monitor>
<monitor x="265" precision="1" y="220" height="45" fontSize="11" display="% similar" width="90" sizeVersion="0">percent-similar</monitor>
<plot x="10" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="%" y="140" xMin="0.0" height="145" legend="false" xMax="5.0" yMin="0.0" xAxis="time" display="Percent Similar" width="250" sizeVersion="0">
<setup></setup>
<update></update>
<pen interval="1.0" mode="0" display="percent" color="-16777216" legend="true">
<setup></setup>
<update>plot percent-similar</update>
</pen>
</plot>
<slider x="10" step="1" y="95" max="100" display="%-similar-wanted" height="33" min="0" direction="Horizontal" default="30.0" variable="%-similar-wanted" units="%" width="275" sizeVersion="0"></slider>
<button x="10" y="55" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="80" sizeVersion="0">setup</button>
<button x="200" y="55" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="85" sizeVersion="0">go</button>
<button x="100" y="55" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="go once" width="90" sizeVersion="0">go</button>
<chooser x="801" y="380" height="45" variable="visualization" current="1" display="visualization" width="149" sizeVersion="0">
<view x="290" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-25" height="412" showTickCounter="true" patchSize="8.0" fontSize="10" wrappingAllowedY="true" width="412" tickCounterLabel="ticks" maxPycor="25" updateMode="1" maxPxcor="25" minPxcor="-25"></view>
<button x="10" y="72" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="80" display="setup">setup</button>
<button x="200" y="72" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="85" display="go">go</button>
<button x="100" y="72" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="90" display="go once">go</button>
<slider x="10" step="1" y="10" max="99" width="275" display="density" height="50" min="50" direction="Horizontal" default="95.0" variable="density" units="%"></slider>
<slider x="10" step="1" y="124" max="100" width="275" display="%-similar-wanted" height="50" min="0" direction="Horizontal" default="30.0" variable="%-similar-wanted" units="%"></slider>
<chooser x="65" y="186" height="60" variable="visualization" current="1" width="165" display="visualization">
<choice type="string" value="old"></choice>
<choice type="string" value="square-x"></choice>
</chooser>
<slider x="10" step="1" y="10" max="99" display="density" height="33" min="50" direction="Horizontal" default="95.0" variable="density" units="%" width="275" sizeVersion="0"></slider>
<plot x="10" autoPlotX="true" yMax="100.0" autoPlotY="true" y="295" xMin="0.0" height="150" legend="false" xMax="10.0" yMin="0.0" display="Number-unhappy" width="250" sizeVersion="0">
<plot x="710" autoPlotX="true" yMax="100.0" autoPlotY="true" y="221" xMin="0.0" height="205" legend="false" xMax="10.0" yMin="0.0" width="250" display="Number-unhappy">
<setup></setup>
<update></update>
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
<setup></setup>
<update>plot count turtles with [not happy?]</update>
</pen>
</plot>
<monitor x="265" precision="1" y="315" height="45" fontSize="11" display="num-unhappy" width="90" sizeVersion="0">count turtles with [not happy?]</monitor>
<monitor x="265" precision="1" y="170" height="45" fontSize="11" display="# agents" width="90" sizeVersion="0">count turtles</monitor>
<plot x="710" autoPlotX="true" yMax="100.0" autoPlotY="true" yAxis="%" y="11" xMin="0.0" height="205" legend="false" xMax="5.0" yMin="0.0" width="250" xAxis="time" display="Percent Similar">
<setup></setup>
<update></update>
<pen interval="1.0" mode="0" display="percent" color="-16777216" legend="true">
<setup></setup>
<update>plot percent-similar</update>
</pen>
</plot>
<monitor x="965" precision="1" y="325" height="60" fontSize="11" width="100" display="% unhappy">percent-unhappy</monitor>
<monitor x="965" precision="1" y="260" height="60" fontSize="11" width="100" display="num-unhappy">count turtles with [not happy?]</monitor>
<monitor x="965" precision="1" y="55" height="60" fontSize="11" width="100" display="# agents">count turtles</monitor>
<monitor x="965" precision="1" y="120" height="60" fontSize="11" width="100" display="% similar">percent-similar</monitor>
</widgets>
<info><![CDATA[## WHAT IS IT?

Expand Down
Loading