Skip to content

Commit d0dd8d7

Browse files
committed
Convert Urban Suite to new sizes
1 parent 63b3c85 commit d0dd8d7

11 files changed

Lines changed: 154 additions & 154 deletions

Curricular Models/Urban Suite/Urban Suite - Awareness.nlogox

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,10 @@ end
112112
; Copyright 2007 Uri Wilensky.
113113
; See Info tab for full copyright and license.]]></code>
114114
<widgets>
115-
<view x="315" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="0" height="460" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="448" tickCounterLabel="ticks" maxPycor="37" updateMode="1" maxPxcor="36" minPxcor="0"></view>
116-
<button x="10" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="65" sizeVersion="0">setup</button>
117-
<button x="10" y="50" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="65" sizeVersion="0">go</button>
118-
<monitor x="10" precision="2" y="285" height="45" fontSize="11" display="Activist" width="65" sizeVersion="0">count turtles with [color = 64]</monitor>
119-
<slider x="80" step="10" y="10" max="300" display="people" height="33" min="0" direction="Horizontal" default="60.0" variable="people" width="105" sizeVersion="0"></slider>
120-
<monitor x="235" precision="3" y="285" height="45" fontSize="11" display="Unaware" width="70" sizeVersion="0">count turtles with [color = gray]</monitor>
121-
<plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Amount" y="135" xMin="0.0" height="150" legend="true" xMax="3.0" yMin="0.0" xAxis="Time" display="Level of Awareness" width="295" sizeVersion="0">
115+
<view x="435" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="0" height="460" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="448" tickCounterLabel="ticks" maxPycor="37" updateMode="1" maxPxcor="36" minPxcor="0"></view>
116+
<monitor x="10" precision="2" y="408" height="60" fontSize="11" width="100" display="Activist">count turtles with [color = 64]</monitor>
117+
<slider x="80" step="10" y="10" max="300" width="150" display="people" height="50" min="0" direction="Horizontal" default="60.0" variable="people"></slider>
118+
<plot x="10" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Amount" y="186" xMin="0.0" height="217" legend="true" xMax="3.0" yMin="0.0" width="295" xAxis="Time" display="Level of Awareness">
122119
<setup></setup>
123120
<update></update>
124121
<pen interval="1.0" mode="0" display="Activist" color="-14439633" legend="true">
@@ -138,22 +135,25 @@ end
138135
<update>plot count turtles with [ unaware? ]</update>
139136
</pen>
140137
</plot>
141-
<slider x="80" step="5" y="50" max="100" display="centers" height="33" min="0" direction="Horizontal" default="20.0" variable="centers" width="105" sizeVersion="0"></slider>
142-
<monitor x="10" precision="3" y="345" height="45" fontSize="11" display="Avg. Awareness" width="100" sizeVersion="0">mean [awareness] of turtles</monitor>
143-
<plot x="110" autoPlotX="true" yMax="20.0" autoPlotY="true" yAxis="Avg. awareness" y="345" xMin="0.0" height="165" legend="false" xMax="50.0" yMin="0.0" xAxis="Time" display="Avg. Awareness" width="195" sizeVersion="0">
138+
<slider x="80" step="5" y="67" max="100" width="150" display="centers" height="50" min="0" direction="Horizontal" default="20.0" variable="centers"></slider>
139+
<monitor x="115" precision="3" y="408" height="60" fontSize="11" width="100" display="Well Informed">count turtles with [color = 66]</monitor>
140+
<monitor x="220" precision="3" y="408" height="60" fontSize="11" width="100" display="Aware">count turtles with [color = 68]</monitor>
141+
<slider x="10" step="5" y="124" max="500" width="175" display="non-usage-limit" height="50" min="0" direction="Horizontal" default="100.0" variable="non-usage-limit" units="ticks"></slider>
142+
<button x="240" y="10" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="110">place-centers</button>
143+
<button x="10" y="10" height="52" disableUntilTicks="false" forever="false" kind="Observer" width="65" display="setup">setup</button>
144+
<button x="10" y="67" height="50" disableUntilTicks="true" forever="true" kind="Observer" width="65" display="go">go</button>
145+
<monitor x="326" precision="3" y="408" height="60" fontSize="11" width="100" display="Unaware">count turtles with [color = gray]</monitor>
146+
<plot x="116" autoPlotX="true" yMax="20.0" autoPlotY="true" yAxis="Avg. awareness" y="474" xMin="0.0" height="191" legend="false" xMax="50.0" yMin="0.0" width="310" xAxis="Time" display="Avg. Awareness">
144147
<setup></setup>
145148
<update></update>
146149
<pen interval="1.0" mode="0" display="Awareness" color="-16777216" legend="true">
147150
<setup></setup>
148151
<update>plot mean [ awareness ] of turtles</update>
149152
</pen>
150153
</plot>
151-
<monitor x="75" precision="3" y="285" height="45" fontSize="11" display="Well Informed" width="90" sizeVersion="0">count turtles with [color = 66]</monitor>
152-
<monitor x="165" precision="3" y="285" height="45" fontSize="11" display="Aware" width="70" sizeVersion="0">count turtles with [color = 68]</monitor>
153-
<monitor x="10" precision="3" y="410" height="45" fontSize="11" display="Centers" width="100" sizeVersion="0">count patches with [ pcolor != black ]</monitor>
154-
<monitor x="10" precision="3" y="455" height="45" fontSize="11" display="Avg. Non-usage" width="100" sizeVersion="0">mean [non-usage] of patches with [ pcolor != black ]</monitor>
155-
<slider x="10" step="5" y="90" max="500" display="non-usage-limit" height="33" min="0" direction="Horizontal" default="100.0" variable="non-usage-limit" units="ticks" width="175" sizeVersion="0"></slider>
156-
<button x="195" y="10" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="110" sizeVersion="0">place-centers</button>
154+
<monitor x="10" precision="3" y="605" height="60" fontSize="11" width="100" display="Avg. Non-usage">mean [non-usage] of patches with [ pcolor != black ]</monitor>
155+
<monitor x="10" precision="3" y="540" height="60" fontSize="11" width="100" display="Centers">count patches with [ pcolor != black ]</monitor>
156+
<monitor x="10" precision="3" y="474" height="60" fontSize="11" width="100" display="Avg. Awareness">mean [awareness] of turtles</monitor>
157157
</widgets>
158158
<info><![CDATA[## WHAT IS IT?
159159

Curricular Models/Urban Suite/Urban Suite - Cells.nlogox

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,41 +106,41 @@ end
106106
; Copyright 2007 Uri Wilensky.
107107
; See Info tab for full copyright and license.]]></code>
108108
<widgets>
109-
<view x="320" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-40" height="409" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="409" tickCounterLabel="ticks" maxPycor="40" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
110-
<button x="5" actionKey="S" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="70" sizeVersion="0">setup</button>
111-
<button x="5" actionKey="N" y="45" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="step" width="70" sizeVersion="0">go</button>
112-
<button x="165" actionKey="F" y="10" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="go" width="60" sizeVersion="0"> go</button>
113-
<chooser x="5" y="155" height="45" variable="neighborhood" current="0" display="neighborhood" width="141" sizeVersion="0">
109+
<view x="361" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-40" height="409" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="true" width="409" tickCounterLabel="ticks" maxPycor="40" updateMode="1" maxPxcor="40" minPxcor="-40"></view>
110+
<button x="5" actionKey="S" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="70">setup</button>
111+
<button x="5" actionKey="N" y="55" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="70" display="step">go</button>
112+
<button x="165" actionKey="F" y="10" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="60" display="go"> go</button>
113+
<chooser x="5" y="178" height="60" variable="neighborhood" current="0" width="141" display="neighborhood">
114114
<choice type="string" value="von-neumann"></choice>
115115
<choice type="string" value="moore"></choice>
116116
<choice type="string" value="displaced-von-n"></choice>
117117
<choice type="string" value="h"></choice>
118118
<choice type="string" value="moore-von-n"></choice>
119119
</chooser>
120-
<slider x="5" step="1" y="257" max="100" display="probability" height="33" min="0" direction="Horizontal" default="100.0" variable="probability" units="percent" width="188" sizeVersion="0"></slider>
121-
<button x="80" actionKey="G" y="10" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="go * 40" width="82" sizeVersion="0">repeat 40 [ go ]</button>
122-
<button x="80" actionKey="R" y="45" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="random seed" width="145" sizeVersion="0">create-random-seed</button>
123-
<chooser x="150" y="155" height="45" variable="n-count" current="1" display="n-count" width="92" sizeVersion="0">
120+
<slider x="5" step="1" y="295" max="100" width="188" display="probability" height="50" min="0" direction="Horizontal" default="100.0" variable="probability" units="percent"></slider>
121+
<button x="80" actionKey="G" y="10" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="82" display="go * 40">repeat 40 [ go ]</button>
122+
<button x="80" actionKey="R" y="55" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="145" display="random seed">create-random-seed</button>
123+
<chooser x="150" y="178" height="60" variable="n-count" current="1" width="100" display="n-count">
124124
<choice type="string" value="&gt; 0"></choice>
125125
<choice type="string" value="= 1"></choice>
126126
<choice type="string" value="&lt;= 2"></choice>
127127
</chooser>
128-
<plot x="5" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="cells" y="300" xMin="0.0" height="150" legend="false" xMax="10.0" yMin="0.0" xAxis="time" display="live cells" width="300" sizeVersion="0">
128+
<plot x="5" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="cells" y="355" xMin="0.0" height="175" legend="false" xMax="10.0" yMin="0.0" width="300" xAxis="time" display="live cells">
129129
<setup></setup>
130130
<update></update>
131131
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
132132
<setup></setup>
133133
<update></update>
134134
</pen>
135135
</plot>
136-
<note x="8" y="96" height="60" backgroundDark="0" fontSize="11" width="255" markdown="false" textColorLight="-16777216" backgroundLight="0">A cell may be turned on if the number
136+
<note x="8" y="113" backgroundDark="0" fontSize="11" width="255" markdown="false" height="60" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">A cell may be turned on if the number
137137
of cells in its neighborhood that are
138138
already on, is greater than 0 and
139139
satisfies the n-count expression.</note>
140-
<note x="8" y="221" height="34" backgroundDark="0" fontSize="11" width="257" markdown="false" textColorLight="-16777216" backgroundLight="0">The chance each eligible cell
140+
<note x="8" y="259" backgroundDark="0" fontSize="11" width="257" markdown="false" height="34" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">The chance each eligible cell
141141
has of turning on:</note>
142-
<slider x="199" step="1" y="257" max="100" display="age-limit" height="33" min="0" direction="Horizontal" default="55.0" variable="age-limit" width="109" sizeVersion="0"></slider>
143-
<button x="322" actionKey="C" y="449" height="33" disableUntilTicks="true" forever="true" kind="Observer" display="cycle colors" width="110" sizeVersion="0">ask patches with [ on? ] [ set pcolor pcolor - 0.01 ]
142+
<slider x="199" step="1" y="295" max="100" width="150" display="age-limit" height="50" min="0" direction="Horizontal" default="55.0" variable="age-limit"></slider>
143+
<button x="322" actionKey="C" y="489" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="110" display="cycle colors">ask patches with [ on? ] [ set pcolor pcolor - 0.01 ]
144144
display</button>
145145
</widgets>
146146
<info><![CDATA[## WHAT IS IT?

Curricular Models/Urban Suite/Urban Suite - Economic Disparity.nlogox

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,10 @@ end
310310
; See Info tab for full copyright and license.]]></code>
311311
<widgets>
312312
<view x="350" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-44" height="449" showTickCounter="true" patchSize="5.0" fontSize="10" wrappingAllowedY="false" width="449" tickCounterLabel="ticks" maxPycor="44" updateMode="1" maxPxcor="44" minPxcor="-44"></view>
313-
<button x="60" y="15" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="78" sizeVersion="0">setup</button>
314-
<button x="140" y="15" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="76" sizeVersion="0">go</button>
315-
<slider x="10" step="1" y="140" max="30" display="number-of-tests" height="33" min="0" direction="Horizontal" default="15.0" variable="number-of-tests" width="160" sizeVersion="0"></slider>
316-
<plot x="10" autoPlotX="true" yMax="20.0" autoPlotY="true" yAxis="# cells" y="285" xMin="0.0" height="200" legend="true" xMax="100.0" yMin="0.0" xAxis="time" display="Travel Distance" width="325" sizeVersion="0">
313+
<button x="60" y="15" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="78">setup</button>
314+
<button x="140" y="15" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="76">go</button>
315+
<slider x="10" step="1" y="161" max="30" width="160" display="number-of-tests" height="50" min="0" direction="Horizontal" default="15.0" variable="number-of-tests"></slider>
316+
<plot x="10" autoPlotX="true" yMax="20.0" autoPlotY="true" yAxis="# cells" y="383" xMin="0.0" height="216" legend="true" xMax="100.0" yMin="0.0" width="325" xAxis="time" display="Travel Distance">
317317
<setup></setup>
318318
<update></update>
319319
<pen interval="1.0" mode="0" display="rich" color="-3508570" legend="true">
@@ -325,28 +325,28 @@ end
325325
<update>plot median [ min [distance myself] of jobs ] of poor</update>
326326
</pen>
327327
</plot>
328-
<button x="218" y="15" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="go-once" width="78" sizeVersion="0">go</button>
329-
<button x="35" y="60" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="view price" width="90" sizeVersion="0">set view-mode "price"
328+
<button x="218" y="15" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="78" display="go-once">go</button>
329+
<button x="35" y="67" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="90" display="view price">set view-mode "price"
330330
update-view</button>
331-
<button x="130" y="60" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="view quality" width="90" sizeVersion="0">set view-mode "quality"
331+
<button x="130" y="67" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="90" display="view quality">set view-mode "quality"
332332
update-view</button>
333-
<slider x="10" step="10" y="175" max="500" display="residents-per-job" height="33" min="0" direction="Horizontal" default="100.0" variable="residents-per-job" width="160" sizeVersion="0"></slider>
334-
<slider x="175" step="1" y="210" max="15" display="poor-per-step" height="33" min="0" direction="Horizontal" default="5.0" variable="poor-per-step" width="160" sizeVersion="0"></slider>
335-
<slider x="175" step="1" y="245" max="15" display="rich-per-step" height="33" min="0" direction="Horizontal" default="5.0" variable="rich-per-step" width="160" sizeVersion="0"></slider>
336-
<button x="225" y="60" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="view dist" width="90" sizeVersion="0">set view-mode "dist"
333+
<slider x="10" step="10" y="216" max="500" width="160" display="residents-per-job" height="50" min="0" direction="Horizontal" default="100.0" variable="residents-per-job"></slider>
334+
<slider x="175" step="1" y="271" max="15" width="160" display="poor-per-step" height="50" min="0" direction="Horizontal" default="5.0" variable="poor-per-step"></slider>
335+
<slider x="175" step="1" y="326" max="15" width="160" display="rich-per-step" height="50" min="0" direction="Horizontal" default="5.0" variable="rich-per-step"></slider>
336+
<button x="225" y="67" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="90" display="view dist">set view-mode "dist"
337337
update-view</button>
338-
<slider x="175" step=".1" y="140" max="1" display="poor-price-priority" height="33" min="-1" direction="Horizontal" default="0.0" variable="poor-price-priority" width="160" sizeVersion="0"></slider>
339-
<slider x="175" step="0.1" y="175" max="1" display="rich-quality-priority" height="33" min="-1" direction="Horizontal" default="0.0" variable="rich-quality-priority" width="160" sizeVersion="0"></slider>
340-
<slider x="10" step="1" y="210" max="20" display="max-jobs" height="33" min="5" direction="Horizontal" default="10.0" variable="max-jobs" width="160" sizeVersion="0"></slider>
341-
<slider x="10" step="1" y="245" max="15" display="death-rate" height="33" min="0" direction="Horizontal" default="4.0" variable="death-rate" width="160" sizeVersion="0"></slider>
342-
<monitor x="810" precision="17" y="11" height="45" fontSize="11" display="# of jobs" width="75" sizeVersion="0">count jobs</monitor>
343-
<monitor x="810" precision="17" y="61" height="45" fontSize="11" display="population" width="75" sizeVersion="0">count poor + count rich</monitor>
344-
<button x="54" y="99" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="view rich-utility" width="115" sizeVersion="0">set view-mode "rich-utility"
338+
<slider x="175" step=".1" y="161" max="1" width="160" display="poor-price-priority" height="50" min="-1" direction="Horizontal" default="0.0" variable="poor-price-priority"></slider>
339+
<slider x="175" step="0.1" y="216" max="1" width="160" display="rich-quality-priority" height="50" min="-1" direction="Horizontal" default="0.0" variable="rich-quality-priority"></slider>
340+
<slider x="10" step="1" y="271" max="20" width="160" display="max-jobs" height="50" min="5" direction="Horizontal" default="10.0" variable="max-jobs"></slider>
341+
<slider x="10" step="1" y="326" max="15" width="160" display="death-rate" height="50" min="0" direction="Horizontal" default="4.0" variable="death-rate"></slider>
342+
<monitor x="810" precision="17" y="11" height="60" fontSize="11" width="100" display="# of jobs">count jobs</monitor>
343+
<monitor x="810" precision="17" y="76" height="60" fontSize="11" width="100" display="population">count poor + count rich</monitor>
344+
<button x="54" y="113" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="115" display="view rich-utility">set view-mode "rich-utility"
345345
update-view</button>
346-
<button x="175" y="100" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="view poor-utility" width="119" sizeVersion="0">set view-mode "poor-utility"
346+
<button x="175" y="114" height="40" disableUntilTicks="true" forever="false" kind="Observer" width="119" display="view poor-utility">set view-mode "poor-utility"
347347
update-view</button>
348-
<monitor x="810" precision="17" y="111" height="45" fontSize="11" display="poor pop" width="75" sizeVersion="0">count poor</monitor>
349-
<monitor x="810" precision="17" y="161" height="45" fontSize="11" display="rich pop" width="75" sizeVersion="0">count rich</monitor>
348+
<monitor x="810" precision="17" y="141" height="60" fontSize="11" width="100" display="poor pop">count poor</monitor>
349+
<monitor x="810" precision="17" y="206" height="60" fontSize="11" width="100" display="rich pop">count rich</monitor>
350350
</widgets>
351351
<info><![CDATA[## WHAT IS IT?
352352

0 commit comments

Comments
 (0)