Skip to content

Commit e6a0293

Browse files
committed
Auto-convert sample models identified as auto-convertable
1 parent 5f096dd commit e6a0293

128 files changed

Lines changed: 1372 additions & 1372 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Sample Models/Art/Diffusion Graphics.nlogox

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta2" snapToGrid="false">
33
<code>patches-own [ heat ]
44

55
to setup
@@ -35,13 +35,13 @@ end
3535
; See Info tab for full copyright and license.</code>
3636
<widgets>
3737
<view x="253" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-60" height="488" showTickCounter="true" patchSize="4.0" fontSize="10" wrappingAllowedY="true" width="488" tickCounterLabel="ticks" maxPycor="60" updateMode="1" maxPxcor="60" minPxcor="-60"></view>
38-
<slider x="7" step="0.1" y="133" max="1" display="diffusion-rate" height="33" min="0" direction="Horizontal" default="1.0" variable="diffusion-rate" width="235" sizeVersion="0"></slider>
39-
<slider x="7" step="1" y="36" max="100" display="num-turtles" height="33" min="1" direction="Horizontal" default="20.0" variable="num-turtles" width="235" sizeVersion="0"></slider>
40-
<button x="51" y="84" height="34" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="70" sizeVersion="0">setup</button>
41-
<switch x="69" y="268" height="33" on="true" variable="wander?" display="wander?" width="119" sizeVersion="0"></switch>
42-
<button x="133" y="84" height="34" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="69" sizeVersion="0">go</button>
43-
<slider x="7" step="1" y="178" max="500" display="turtle-heat" height="33" min="-139" direction="Horizontal" default="139.0" variable="turtle-heat" width="235" sizeVersion="0"></slider>
44-
<slider x="7" step="0.1" y="223" max="10" display="turtle-speed" height="33" min="0" direction="Horizontal" default="1.0" variable="turtle-speed" width="235" sizeVersion="0"></slider>
38+
<slider x="7" step="0.1" y="151" max="1" width="235" display="diffusion-rate" height="50" min="0" direction="Horizontal" default="1.0" variable="diffusion-rate"></slider>
39+
<slider x="7" step="1" y="36" max="100" width="235" display="num-turtles" height="50" min="1" direction="Horizontal" default="20.0" variable="num-turtles"></slider>
40+
<button x="51" y="101" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="70" display="setup">setup</button>
41+
<switch x="69" y="337" height="40" on="true" variable="wander?" width="119" display="wander?"></switch>
42+
<button x="133" y="101" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="69" display="go">go</button>
43+
<slider x="7" step="1" y="213" max="500" width="235" display="turtle-heat" height="50" min="-139" direction="Horizontal" default="139.0" variable="turtle-heat"></slider>
44+
<slider x="7" step="0.1" y="275" max="10" width="235" display="turtle-speed" height="50" min="0" direction="Horizontal" default="1.0" variable="turtle-speed"></slider>
4545
</widgets>
4646
<info><![CDATA[## WHAT IS IT?
4747

Sample Models/Art/Fireworks.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta2" snapToGrid="false">
33
<code><![CDATA[breed [ rockets rocket ]
44
breed [ frags frag ]
55

Sample Models/Art/Optical Illusions.nlogox

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="true">
2+
<model version="NetLogo 7.0.0-beta2" snapToGrid="true">
33
<code>globals [caption]
44

55
;; runs automatically when model is opened
@@ -173,14 +173,14 @@ end
173173
; See Info tab for full copyright and license.</code>
174174
<widgets>
175175
<view x="190" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-17" height="389" showTickCounter="false" patchSize="11.0" fontSize="10" wrappingAllowedY="false" width="499" tickCounterLabel="ticks" maxPycor="17" updateMode="1" maxPxcor="22" minPxcor="-22"></view>
176-
<button x="30" y="30" height="45" disableUntilTicks="false" forever="false" kind="Observer" display="illusion #1" width="126" sizeVersion="0">illusion-1</button>
177-
<button x="30" y="80" height="45" disableUntilTicks="false" forever="false" kind="Observer" display="illusion #2" width="126" sizeVersion="0">illusion-2</button>
178-
<button x="30" y="130" height="45" disableUntilTicks="false" forever="false" kind="Observer" display="illusion #3" width="126" sizeVersion="0">illusion-3</button>
179-
<button x="30" y="230" height="45" disableUntilTicks="false" forever="false" kind="Observer" display="illusion #5" width="126" sizeVersion="0">illusion-5</button>
180-
<button x="30" y="180" height="45" disableUntilTicks="false" forever="false" kind="Observer" display="illusion #4" width="126" sizeVersion="0">illusion-4</button>
181-
<monitor x="190" precision="3" y="428" height="45" fontSize="11" width="415" sizeVersion="0">caption</monitor>
182-
<button x="30" y="280" height="45" disableUntilTicks="false" forever="false" kind="Observer" display="illusion #6" width="126" sizeVersion="0">illusion-6</button>
183-
<button x="30" y="330" height="41" disableUntilTicks="false" forever="false" kind="Observer" display="illusion #7" width="125" sizeVersion="0">illusion-7</button>
176+
<button x="30" y="30" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="126" display="illusion #1">illusion-1</button>
177+
<button x="30" y="80" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="126" display="illusion #2">illusion-2</button>
178+
<button x="30" y="130" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="126" display="illusion #3">illusion-3</button>
179+
<button x="30" y="230" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="126" display="illusion #5">illusion-5</button>
180+
<button x="30" y="180" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="126" display="illusion #4">illusion-4</button>
181+
<monitor x="190" precision="3" y="428" height="60" fontSize="11" width="415">caption</monitor>
182+
<button x="30" y="280" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="126" display="illusion #6">illusion-6</button>
183+
<button x="30" y="330" height="41" disableUntilTicks="false" forever="false" kind="Observer" width="125" display="illusion #7">illusion-7</button>
184184
</widgets>
185185
<info><![CDATA[## WHAT IS IT?
186186

Sample Models/Art/Sound Machines.nlogox

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta2" snapToGrid="false">
33
<code><![CDATA[extensions [sound]
44
55
globals [
@@ -220,51 +220,51 @@ end
220220
; See Info tab for full copyright and license.]]></code>
221221
<widgets>
222222
<view x="265" wrappingAllowedX="false" y="10" frameRate="60.0" minPycor="-12" height="404" showTickCounter="true" patchSize="16.0" fontSize="11" wrappingAllowedY="false" width="404" tickCounterLabel="ticks" maxPycor="12" updateMode="1" maxPxcor="12" minPxcor="-12"></view>
223-
<button x="11" y="66" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="101" sizeVersion="0">setup-dangle</button>
224-
<slider x="696" step="1.0E-4" y="50" max="0.9999" display="f" height="33" min="0.9" direction="Horizontal" default="0.98" variable="f" width="172" sizeVersion="0"></slider>
225-
<button x="20" y="173" height="56" disableUntilTicks="true" forever="true" kind="Observer" width="158" sizeVersion="0">go</button>
226-
<slider x="11" step="1.0" y="29" max="100.0" display="num-levers" height="33" min="4.0" direction="Horizontal" default="12.0" variable="num-levers" width="215" sizeVersion="0"></slider>
227-
<slider x="696" step="0.1" y="118" max="12.0" display="scale" height="33" min="0.1" direction="Horizontal" default="1.7" variable="scale" width="172" sizeVersion="0"></slider>
228-
<slider x="696" step="1.0E-4" y="84" max="0.18" display="g" height="33" min="0.0" direction="Horizontal" default="0.03" variable="g" width="172" sizeVersion="0"></slider>
229-
<button x="11" y="282" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="fix/free" width="62" sizeVersion="0">ask selected [ set fixed? not fixed? ]</button>
230-
<button x="74" y="265" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="arm +++" width="62" sizeVersion="0">ask selected
223+
<button x="11" y="83" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="101">setup-dangle</button>
224+
<slider x="696" step="1.0E-4" y="50" max="0.9999" width="172" display="f" height="50" min="0.9" direction="Horizontal" default="0.98" variable="f"></slider>
225+
<button x="20" y="194" height="56" disableUntilTicks="true" forever="true" kind="Observer" width="158">go</button>
226+
<slider x="11" step="1.0" y="29" max="100.0" width="215" display="num-levers" height="50" min="4.0" direction="Horizontal" default="12.0" variable="num-levers"></slider>
227+
<slider x="696" step="0.1" y="152" max="12.0" width="172" display="scale" height="50" min="0.1" direction="Horizontal" default="1.7" variable="scale"></slider>
228+
<slider x="696" step="1.0E-4" y="101" max="0.18" width="172" display="g" height="50" min="0.0" direction="Horizontal" default="0.03" variable="g"></slider>
229+
<button x="11" y="303" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="62" display="fix/free">ask selected [ set fixed? not fixed? ]</button>
230+
<button x="74" y="286" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="62" display="arm +++">ask selected
231231
[ set len precision (len + 0.1) 1 ]</button>
232-
<button x="74" y="299" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="arm ---" width="62" sizeVersion="0"><![CDATA[ask selected
232+
<button x="74" y="322" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="62" display="arm ---"><![CDATA[ask selected
233233
[ if len > 0.1
234234
[ set len precision (len - 0.1) 1 ] ]]]></button>
235-
<button x="205" y="265" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="next" width="55" sizeVersion="0">select-lever 1</button>
236-
<slider x="20" step="0.01" y="363" max="25.0" display="spin-speed" height="33" min="-25.0" direction="Horizontal" default="0.0" variable="spin-speed" width="223" sizeVersion="0"></slider>
237-
<button x="137" y="265" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="spin +1?" width="60" sizeVersion="0">ask selected
235+
<button x="205" y="286" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="55" display="next">select-lever 1</button>
236+
<slider x="20" step="0.01" y="388" max="25.0" width="223" display="spin-speed" height="50" min="-25.0" direction="Horizontal" default="0.0" variable="spin-speed"></slider>
237+
<button x="137" y="286" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="60" display="spin +1?">ask selected
238238
[ ifelse spin != 1
239239
[ set spin 1 ]
240240
[ set spin 0 ] ]</button>
241-
<button x="113" y="66" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="142" sizeVersion="0">setup-crazy-machine</button>
242-
<button x="96" y="397" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="0" width="71" sizeVersion="0">set spin-speed 0</button>
243-
<note x="11" y="249" height="18" backgroundDark="0" fontSize="11" width="136" markdown="false" textColorLight="-16777216" backgroundLight="0">modify selected lever:</note>
244-
<button x="169" y="397" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="--&gt;" width="63" sizeVersion="0">set spin-speed
241+
<button x="113" y="83" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="142">setup-crazy-machine</button>
242+
<button x="96" y="439" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="71" display="0">set spin-speed 0</button>
243+
<note x="11" y="270" backgroundDark="0" fontSize="11" width="136" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">modify selected lever:</note>
244+
<button x="169" y="439" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63" display="--&gt;">set spin-speed
245245
precision ((round (spin-speed * 2)) / 2.0 + 0.5)
246246
1</button>
247-
<button x="39" y="397" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="&lt;--" width="63" sizeVersion="0">set spin-speed
247+
<button x="39" y="439" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63" display="&lt;--">set spin-speed
248248
precision ((round (spin-speed * 2)) / 2.0 - 0.5)
249249
1</button>
250-
<button x="137" y="299" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="spin -1?" width="60" sizeVersion="0">ask selected
250+
<button x="137" y="322" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="60" display="spin -1?">ask selected
251251
[ ifelse spin != -1
252252
[ set spin -1 ]
253253
[ set spin 0 ] ]</button>
254-
<button x="205" y="299" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="prev" width="55" sizeVersion="0">select-lever -1</button>
255-
<button x="56" y="100" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="153" sizeVersion="0">setup-chaos-tentacle</button>
256-
<slider x="691" step="1.0" y="314" max="127.0" display="instrument" height="33" min="0.0" direction="Horizontal" default="32.0" variable="instrument" width="172" sizeVersion="0"></slider>
257-
<monitor x="691" precision="0" y="347" height="45" fontSize="11" display="First Instrument" width="172" sizeVersion="0">item instrument sound:instruments</monitor>
258-
<monitor x="691" precision="3" y="395" height="45" fontSize="11" display="Last Instrument" width="172" sizeVersion="0">item
254+
<button x="205" y="322" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="55" display="prev">select-lever -1</button>
255+
<button x="56" y="119" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="153">setup-chaos-tentacle</button>
256+
<slider x="691" step="1.0" y="365" max="127.0" width="172" display="instrument" height="50" min="0.0" direction="Horizontal" default="32.0" variable="instrument"></slider>
257+
<monitor x="691" precision="0" y="415" height="60" fontSize="11" width="172" display="First Instrument">item instrument sound:instruments</monitor>
258+
<monitor x="691" precision="3" y="478" height="60" fontSize="11" width="172" display="Last Instrument">item
259259
((instrument + num-levers) mod length sound:instruments)
260260
sound:instruments</monitor>
261-
<note x="4" y="11" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">setup:</note>
262-
<note x="12" y="152" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">go:</note>
263-
<note x="694" y="32" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">behavior parameters:</note>
264-
<note x="688" y="295" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">sound parameters:</note>
265-
<note x="277" y="445" height="18" textColorLight="-16777216" fontSize="11" width="397" markdown="false">You may use the mouse to select levers and move them.</note>
266-
<note x="14" y="347" height="18" backgroundDark="0" fontSize="11" width="98" markdown="false" textColorLight="-16777216" backgroundLight="0">spin controls:</note>
267-
<note x="205" y="251" height="18" backgroundDark="0" fontSize="11" width="43" markdown="false" textColorLight="-16777216" backgroundLight="0">select:</note>
261+
<note x="4" y="11" backgroundDark="0" fontSize="11" width="150" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">setup:</note>
262+
<note x="12" y="173" backgroundDark="0" fontSize="11" width="150" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">go:</note>
263+
<note x="694" y="32" backgroundDark="0" fontSize="11" width="150" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">behavior parameters:</note>
264+
<note x="688" y="346" backgroundDark="0" fontSize="11" width="150" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">sound parameters:</note>
265+
<note x="277" y="445" backgroundDark="0" fontSize="11" width="397" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">You may use the mouse to select levers and move them.</note>
266+
<note x="14" y="372" backgroundDark="0" fontSize="11" width="98" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">spin controls:</note>
267+
<note x="205" y="272" backgroundDark="0" fontSize="11" width="43" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">select:</note>
268268
</widgets>
269269
<info><![CDATA[## WHAT IS IT?
270270

Sample Models/Biology/Ant Lines.nlogox

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<model version="NetLogo 7.0.0-beta0" snapToGrid="false">
2+
<model version="NetLogo 7.0.0-beta2" snapToGrid="false">
33
<code><![CDATA[breed [ leaders leader ]
44
breed [ followers follower ]
55
@@ -98,13 +98,13 @@ end
9898
; See Info tab for full copyright and license.]]></code>
9999
<widgets>
100100
<view x="248" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-50" height="408" showTickCounter="true" patchSize="4.0" fontSize="10" wrappingAllowedY="false" width="408" tickCounterLabel="ticks" maxPycor="50" updateMode="1" maxPxcor="50" minPxcor="-50"></view>
101-
<slider x="4" step="1.0" y="37" max="1000.0" display="num-ants" height="33" min="1.0" direction="Horizontal" default="45.0" variable="num-ants" width="234" sizeVersion="0"></slider>
102-
<button x="126" y="75" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="64" sizeVersion="0">go</button>
103-
<button x="55" y="75" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="67" sizeVersion="0">setup</button>
104-
<monitor x="65" precision="0" y="232" height="45" fontSize="11" display="leader-heading" width="112" sizeVersion="0">[ heading ] of one-of leaders</monitor>
105-
<slider x="2" step="1.0" y="147" max="60.0" display="start-delay" height="33" min="1.0" direction="Horizontal" default="3.0" variable="start-delay" width="234" sizeVersion="0"></slider>
106-
<slider x="2" step="1.0" y="113" max="90.0" display="leader-wiggle-angle" height="33" min="0.0" direction="Horizontal" default="38.0" variable="leader-wiggle-angle" units="degrees" width="234" sizeVersion="0"></slider>
107-
<monitor x="66" precision="3" y="185" height="45" fontSize="11" display="ants-released" width="111" sizeVersion="0"><![CDATA[count turtles with [xcor > nest-x]]]></monitor>
101+
<slider x="4" step="1.0" y="37" max="1000.0" width="234" display="num-ants" height="50" min="1.0" direction="Horizontal" default="45.0" variable="num-ants"></slider>
102+
<button x="126" y="92" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="64" display="go">go</button>
103+
<button x="55" y="92" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="67" display="setup">setup</button>
104+
<monitor x="65" precision="0" y="300" height="60" fontSize="11" width="112" display="leader-heading">[ heading ] of one-of leaders</monitor>
105+
<slider x="2" step="1.0" y="183" max="60.0" width="234" display="start-delay" height="50" min="1.0" direction="Horizontal" default="3.0" variable="start-delay"></slider>
106+
<slider x="2" step="1.0" y="132" max="90.0" width="234" display="leader-wiggle-angle" height="50" min="0.0" direction="Horizontal" default="38.0" variable="leader-wiggle-angle" units="degrees"></slider>
107+
<monitor x="66" precision="3" y="238" height="60" fontSize="11" width="111" display="ants-released"><![CDATA[count turtles with [xcor > nest-x]]]></monitor>
108108
</widgets>
109109
<info><![CDATA[## WHAT IS IT?
110110

0 commit comments

Comments
 (0)