Skip to content

Commit 4e15478

Browse files
committed
Convert IABM Textbook to new sizes
1 parent d0dd8d7 commit 4e15478

47 files changed

Lines changed: 385 additions & 385 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.

IABM Textbook/chapter 0/Turtles Circling Simple.nlogox

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ end
3535
; See Info tab for full copyright and license.</code>
3636
<widgets>
3737
<view x="266" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-45" height="459" showTickCounter="false" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="459" tickCounterLabel="ticks" maxPycor="45" updateMode="1" maxPxcor="45" minPxcor="-45"></view>
38-
<button x="60" y="85" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="92" sizeVersion="0">go</button>
39-
<button x="60" y="45" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="93" sizeVersion="0">setup</button>
40-
<button x="45" y="150" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="120" sizeVersion="0">change-speed</button>
41-
<button x="60" y="220" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="track turtle" width="95" sizeVersion="0">ask one-of turtles [pen-down]</button>
38+
<button x="60" y="92" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="92" display="go">go</button>
39+
<button x="60" y="45" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="93" display="setup">setup</button>
40+
<button x="45" y="164" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="120">change-speed</button>
41+
<button x="60" y="241" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="95" display="track turtle">ask one-of turtles [pen-down]</button>
4242
</widgets>
4343
<info><![CDATA[## ACKNOWLEDGMENT
4444

IABM Textbook/chapter 1/Ants Simple.nlogox

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ end
161161
; See Info tab for full copyright and license.]]></code>
162162
<widgets>
163163
<view x="370" 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>
164-
<button x="100" y="55" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="80" sizeVersion="0">setup</button>
165-
<slider x="85" step="1.0" y="90" max="99.0" display="diffusion-rate" height="33" min="0.0" direction="Horizontal" default="50.0" variable="diffusion-rate" width="190" sizeVersion="0"></slider>
166-
<slider x="85" step="1.0" y="125" max="99.0" display="evaporation-rate" height="33" min="0.0" direction="Horizontal" default="10.0" variable="evaporation-rate" width="190" sizeVersion="0"></slider>
167-
<button x="190" y="55" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="75" sizeVersion="0">go</button>
168-
<slider x="85" step="1.0" y="20" max="200.0" display="population" height="33" min="0.0" direction="Horizontal" default="125.0" variable="population" width="190" sizeVersion="0"></slider>
169-
<plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Food" y="180" xMin="0.0" height="355" legend="true" xMax="10.0" yMin="0.0" xAxis="Time" display="Remaining Food" width="350" sizeVersion="0">
164+
<button x="100" y="75" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="80">setup</button>
165+
<slider x="85" step="1.0" y="120" max="99.0" width="190" display="diffusion-rate" height="50" min="0.0" direction="Horizontal" default="50.0" variable="diffusion-rate"></slider>
166+
<slider x="85" step="1.0" y="175" max="99.0" width="190" display="evaporation-rate" height="50" min="0.0" direction="Horizontal" default="10.0" variable="evaporation-rate"></slider>
167+
<button x="190" y="75" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="75">go</button>
168+
<slider x="85" step="1.0" y="20" max="200.0" width="190" display="population" height="50" min="0.0" direction="Horizontal" default="125.0" variable="population"></slider>
169+
<plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Food" y="247" xMin="0.0" height="397" legend="true" xMax="10.0" yMin="0.0" width="350" xAxis="Time" display="Remaining Food">
170170
<setup></setup>
171171
<update></update>
172172
<pen interval="1.0" mode="0" display="total" color="-16777216" legend="true">

IABM Textbook/chapter 2/Heroes and Cowards.nlogox

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,32 +56,32 @@ end
5656
; See Info tab for full copyright and license.</code>
5757
<widgets>
5858
<view x="290" wrappingAllowedX="false" y="15" frameRate="200.0" minPycor="-16" height="433" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="false" width="433" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
59-
<button x="55" y="125" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="85" sizeVersion="0">setup</button>
60-
<button x="155" y="125" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="75" sizeVersion="0">go</button>
61-
<chooser x="55" y="70" height="45" variable="personalities" current="2" display="personalities" width="175" sizeVersion="0">
59+
<button x="55" y="157" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="85">setup</button>
60+
<button x="155" y="157" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="75">go</button>
61+
<chooser x="55" y="87" height="60" variable="personalities" current="2" width="175" display="personalities">
6262
<choice type="string" value="brave"></choice>
6363
<choice type="string" value="cowardly"></choice>
6464
<choice type="string" value="mixed"></choice>
6565
</chooser>
66-
<slider x="55" step="1" y="30" max="200" display="number" height="33" min="3" direction="Horizontal" default="68.0" variable="number" width="175" sizeVersion="0"></slider>
67-
<button x="150" y="215" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="frozen" width="125" sizeVersion="0">preset -1153988890
66+
<slider x="55" step="1" y="30" max="200" width="175" display="number" height="50" min="3" direction="Horizontal" default="68.0" variable="number"></slider>
67+
<button x="150" y="254" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="125" display="frozen">preset -1153988890
6868
</button>
69-
<button x="15" y="215" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="dot" width="130" sizeVersion="0">preset -1177467632
69+
<button x="15" y="254" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="130" display="dot">preset -1177467632
7070
</button>
71-
<button x="15" y="255" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="slinky" width="130" sizeVersion="0">preset -608717654
71+
<button x="15" y="301" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="130" display="slinky">preset -608717654
7272
</button>
73-
<button x="150" y="255" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="spiral" width="125" sizeVersion="0">preset 1086013561
73+
<button x="150" y="301" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="125" display="spiral">preset 1086013561
7474
</button>
75-
<button x="15" y="335" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="yo-yo" width="130" sizeVersion="0">preset -180308068
75+
<button x="15" y="395" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="130" display="yo-yo">preset -180308068
7676
</button>
77-
<note x="20" y="190" height="20" backgroundDark="0" fontSize="10" width="245" markdown="false" textColorLight="-16777216" backgroundLight="0">Preset configurations - Press button, then GO.</note>
78-
<button x="150" y="335" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="wandering flock" width="125" sizeVersion="0">preset 961107169
77+
<note x="20" y="229" backgroundDark="0" fontSize="10" width="245" markdown="false" height="20" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Preset configurations - Press button, then GO.</note>
78+
<button x="150" y="395" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="125" display="wandering flock">preset 961107169
7979
</button>
80-
<button x="15" y="380" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="generally cool one that eventually stops" width="260" sizeVersion="0">preset 284529528
80+
<button x="15" y="447" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="260" display="generally cool one that eventually stops">preset 284529528
8181
</button>
82-
<button x="150" y="295" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="spiral 2" width="125" sizeVersion="0">preset 878469395
82+
<button x="150" y="348" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="125" display="spiral 2">preset 878469395
8383
</button>
84-
<button x="15" y="295" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="slinky 2" width="130" sizeVersion="0">preset -1315170766
84+
<button x="15" y="348" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="130" display="slinky 2">preset -1315170766
8585
</button>
8686
</widgets>
8787
<info><![CDATA[## ACKNOWLEDGMENT

IABM Textbook/chapter 2/Life Simple.nlogox

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ end
3737
; See Info tab for full copyright and license.]]></code>
3838
<widgets>
3939
<view x="210" 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>
40-
<button x="37" y="56" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="66" sizeVersion="0">setup</button>
41-
<button x="29" y="189" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="go-once" width="85" sizeVersion="0">go</button>
42-
<button x="39" y="237" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="63" sizeVersion="0">go</button>
40+
<button x="37" y="56" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="66">setup</button>
41+
<button x="29" y="196" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="85" display="go-once">go</button>
42+
<button x="39" y="251" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="63">go</button>
4343
</widgets>
4444
<info><![CDATA[## ACKNOWLEDGMENT
4545

IABM Textbook/chapter 2/Simple Economy.nlogox

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ end
4646
; See Info tab for full copyright and license.]]></code>
4747
<widgets>
4848
<view x="233" wrappingAllowedX="false" y="16" frameRate="30.0" minPycor="0" height="85" showTickCounter="true" patchSize="1.0" fontSize="10" wrappingAllowedY="false" width="505" tickCounterLabel="ticks" maxPycor="80" updateMode="1" maxPxcor="500" minPxcor="0"></view>
49-
<button x="7" y="46" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="89" sizeVersion="0">setup</button>
50-
<button x="112" y="46" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="85" sizeVersion="0">go</button>
51-
<plot x="233" autoPlotX="true" yMax="40.0" autoPlotY="true" yAxis="turtles" y="143" xMin="0.0" height="157" legend="false" xMax="500.0" yMin="0.0" xAxis="wealth" display="wealth distribution" width="511" sizeVersion="0">
49+
<button x="7" y="46" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="89">setup</button>
50+
<button x="112" y="46" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="85">go</button>
51+
<plot x="233" autoPlotX="true" yMax="40.0" autoPlotY="true" yAxis="turtles" y="143" xMin="0.0" height="175" legend="false" xMax="500.0" yMin="0.0" width="511" xAxis="wealth" display="wealth distribution">
5252
<setup></setup>
5353
<update></update>
5454
<pen interval="5.0" mode="1" display="current" color="-10899396" legend="true">
@@ -57,10 +57,10 @@ end
5757
histogram [ wealth ] of turtles</update>
5858
</pen>
5959
</plot>
60-
<monitor x="599" precision="1" y="423" height="45" fontSize="11" display="wealth of bottom 50%" width="145" sizeVersion="0">bottom-50-pct-wealth</monitor>
61-
<monitor x="598" precision="1" y="365" height="45" fontSize="11" display="wealth of top 10%" width="146" sizeVersion="0">top-10-pct-wealth</monitor>
62-
<note x="563" y="176" height="30" backgroundDark="0" fontSize="11" width="155" markdown="false" textColorLight="-16777216" backgroundLight="0">Total wealth = $50,000</note>
63-
<plot x="233" autoPlotX="true" yMax="10000.0" autoPlotY="true" y="318" xMin="0.0" height="150" legend="true" xMax="10.0" yMin="0.0" display="wealth by percent" width="334" sizeVersion="0">
60+
<monitor x="599" precision="1" y="456" height="60" fontSize="11" width="145" display="wealth of bottom 50%">bottom-50-pct-wealth</monitor>
61+
<monitor x="598" precision="1" y="383" height="60" fontSize="11" width="146" display="wealth of top 10%">top-10-pct-wealth</monitor>
62+
<note x="563" y="176" backgroundDark="0" fontSize="11" width="155" markdown="false" height="30" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Total wealth = $50,000</note>
63+
<plot x="233" autoPlotX="true" yMax="10000.0" autoPlotY="true" y="336" xMin="0.0" height="191" legend="true" xMax="10.0" yMin="0.0" width="334" display="wealth by percent">
6464
<setup></setup>
6565
<update></update>
6666
<pen interval="1.0" mode="0" display="top 10%" color="-2674135" legend="true">

IABM Textbook/chapter 3/DLA Extensions/DLA Simple Extension 1.nlogox

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ end
3535
; See Info tab for full copyright and license.]]></code>
3636
<widgets>
3737
<view x="211" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-100" height="607" showTickCounter="true" patchSize="3.0" fontSize="10" wrappingAllowedY="true" width="607" tickCounterLabel="ticks" maxPycor="100" updateMode="1" maxPxcor="100" minPxcor="-100"></view>
38-
<button x="40" y="40" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="63" sizeVersion="0">setup</button>
39-
<button x="110" y="40" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="63" sizeVersion="0">go</button>
40-
<slider x="10" step="1.0" y="90" max="100" display="wiggle-angle" height="33" min="0" direction="Horizontal" default="60.0" variable="wiggle-angle" units="degrees" width="189" sizeVersion="0"></slider>
41-
<slider x="10" step="1" y="130" max="5000" display="num-particles" height="33" min="0" direction="Horizontal" default="2500.0" variable="num-particles" width="189" sizeVersion="0"></slider>
42-
<slider x="10" step=".01" y="170" max="1" display="probability-of-sticking" height="33" min="0" direction="Horizontal" default="0.5" variable="probability-of-sticking" width="190" sizeVersion="0"></slider>
38+
<button x="40" y="40" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="63">setup</button>
39+
<button x="110" y="40" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="63">go</button>
40+
<slider x="10" step="1.0" y="97" max="100" width="189" display="wiggle-angle" height="50" min="0" direction="Horizontal" default="60.0" variable="wiggle-angle" units="degrees"></slider>
41+
<slider x="10" step="1" y="154" max="5000" width="189" display="num-particles" height="50" min="0" direction="Horizontal" default="2500.0" variable="num-particles"></slider>
42+
<slider x="10" step=".01" y="211" max="1" width="190" display="probability-of-sticking" height="50" min="0" direction="Horizontal" default="0.5" variable="probability-of-sticking"></slider>
4343
</widgets>
4444
<info><![CDATA[## ACKNOWLEDGMENT
4545

IABM Textbook/chapter 3/DLA Extensions/DLA Simple Extension 2.nlogox

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ end
4141
; See Info tab for full copyright and license.]]></code>
4242
<widgets>
4343
<view x="211" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-100" height="607" showTickCounter="true" patchSize="3.0" fontSize="10" wrappingAllowedY="true" width="607" tickCounterLabel="ticks" maxPycor="100" updateMode="1" maxPxcor="100" minPxcor="-100"></view>
44-
<button x="35" y="40" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="63" sizeVersion="0">setup</button>
45-
<button x="110" y="40" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="63" sizeVersion="0">go</button>
46-
<slider x="10" step="1.0" y="90" max="100" display="wiggle-angle" height="33" min="0" direction="Horizontal" default="60.0" variable="wiggle-angle" units="degrees" width="189" sizeVersion="0"></slider>
47-
<slider x="10" step="1" y="130" max="5000" display="num-particles" height="33" min="0" direction="Horizontal" default="2500.0" variable="num-particles" width="189" sizeVersion="0"></slider>
48-
<slider x="10" step=".01" y="170" max="1" display="probability-of-sticking" height="33" min="0" direction="Horizontal" default="0.5" variable="probability-of-sticking" width="190" sizeVersion="0"></slider>
49-
<switch x="10" y="215" height="33" on="true" variable="neighbor-influence?" display="neighbor-influence?" width="170" sizeVersion="0"></switch>
44+
<button x="35" y="40" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="63">setup</button>
45+
<button x="110" y="40" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="63">go</button>
46+
<slider x="10" step="1.0" y="97" max="100" width="189" display="wiggle-angle" height="50" min="0" direction="Horizontal" default="60.0" variable="wiggle-angle" units="degrees"></slider>
47+
<slider x="10" step="1" y="154" max="5000" width="189" display="num-particles" height="50" min="0" direction="Horizontal" default="2500.0" variable="num-particles"></slider>
48+
<slider x="10" step=".01" y="211" max="1" width="190" display="probability-of-sticking" height="50" min="0" direction="Horizontal" default="0.5" variable="probability-of-sticking"></slider>
49+
<switch x="10" y="273" height="40" on="true" variable="neighbor-influence?" width="190" display="neighbor-influence?"></switch>
5050
</widgets>
5151
<info><![CDATA[## ACKNOWLEDGMENT
5252

0 commit comments

Comments
 (0)