Skip to content

Commit 48ee015

Browse files
committed
Changes to Disease Solo, Robotic Factory, and Pursuit
1 parent 4c827d0 commit 48ee015

3 files changed

Lines changed: 74 additions & 74 deletions

File tree

Sample Models/Biology/Disease Solo.nlogox

Lines changed: 22 additions & 22 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-beta0" snapToGrid="true">
33
<code><![CDATA[;;;;;;;;;;;;;;;;;;
44
;; Declarations ;;
55
;;;;;;;;;;;;;;;;;;
@@ -161,11 +161,16 @@ end
161161
; Copyright 2005 Uri Wilensky.
162162
; See Info tab for full copyright and license.]]></code>
163163
<widgets>
164-
<view x="245" wrappingAllowedX="false" y="10" frameRate="10.0" minPycor="-12" height="379" showTickCounter="true" patchSize="15.0" fontSize="10" wrappingAllowedY="false" width="319" tickCounterLabel="ticks" maxPycor="12" updateMode="1" maxPxcor="10" minPxcor="-10"></view>
165-
<button x="24" y="46" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup/clear" width="102" sizeVersion="0">setup-clear</button>
166-
<button x="24" y="114" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="102" sizeVersion="0">go</button>
167-
<slider x="21" step="1" y="151" max="100" display="infection-chance" height="33" min="0" direction="Horizontal" default="100.0" variable="infection-chance" units="%" width="179" sizeVersion="0"></slider>
168-
<plot x="10" autoPlotX="true" yMax="6.0" autoPlotY="true" yAxis="sick" y="239" xMin="0.0" height="177" legend="false" xMax="10.0" yMin="0.0" xAxis="time" display="Number Sick" width="230" sizeVersion="0">
164+
<view x="281" wrappingAllowedX="false" y="10" frameRate="10.0" minPycor="-12" height="472" showTickCounter="true" patchSize="18.72" fontSize="10" wrappingAllowedY="false" width="397" tickCounterLabel="ticks" maxPycor="12" updateMode="1" maxPxcor="10" minPxcor="-10"></view>
165+
<button x="24" y="65" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="102" display="setup/clear">setup-clear</button>
166+
<button x="24" y="145" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="102">go</button>
167+
<button x="24" y="105" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="102" display="setup/keep">setup-keep</button>
168+
<note x="138" y="115" backgroundDark="0" fontSize="11" width="97" markdown="false" height="24" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">keeps old plots</note>
169+
<note x="138" y="74" backgroundDark="0" fontSize="11" width="97" markdown="false" height="24" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">clears old plots
170+
</note>
171+
<slider x="21" step="1" y="10" max="300" width="250" display="num-androids" height="50" min="1" direction="Horizontal" default="60.0" variable="num-androids"></slider>
172+
<slider x="21" step="1" y="184" max="100" width="250" display="infection-chance" height="50" min="0" direction="Horizontal" default="100.0" variable="infection-chance" units="%"></slider>
173+
<plot x="21" autoPlotX="true" yMax="6.0" autoPlotY="true" yAxis="sick" y="304" xMin="0.0" height="177" legend="false" xMax="10.0" yMin="0.0" width="250" xAxis="time" display="Number Sick">
169174
<setup>create-temporary-plot-pen word "run " run-number
170175
set-plot-pen-color item (run-number mod 5)
171176
[blue red green orange violet]</setup>
@@ -175,22 +180,17 @@ set-plot-pen-color item (run-number mod 5)
175180
<update></update>
176181
</pen>
177182
</plot>
178-
<slider x="21" step="1" y="10" max="300" display="num-androids" height="33" min="1" direction="Horizontal" default="60.0" variable="num-androids" width="179" sizeVersion="0"></slider>
179-
<monitor x="80" precision="0" y="191" height="45" fontSize="11" display="Number Sick" width="90" sizeVersion="0">num-sick</monitor>
180-
<button x="614" actionKey="I" y="61" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="up" width="69" sizeVersion="0">move 0</button>
181-
<button x="654" actionKey="L" y="94" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="right" width="63" sizeVersion="0">move 90</button>
182-
<button x="584" actionKey="J" y="94" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="left" width="62" sizeVersion="0">move 270</button>
183-
<button x="615" actionKey="K" y="126" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="down" width="69" sizeVersion="0">move 180</button>
184-
<switch x="595" y="337" height="33" on="false" variable="avoid?" display="avoid?" width="103" sizeVersion="0"></switch>
185-
<switch x="595" y="373" height="33" on="false" variable="chase?" display="chase?" width="103" sizeVersion="0"></switch>
186-
<note x="583" y="34" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">person:</note>
187-
<note x="591" y="313" height="18" textColorLight="-16777216" fontSize="11" width="150" markdown="false">androids:</note>
188-
<button x="24" y="80" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup/keep" width="102" sizeVersion="0">setup-keep</button>
189-
<note x="138" y="92" height="18" textColorLight="-16777216" fontSize="11" width="97" markdown="false">keeps old plots</note>
190-
<note x="138" y="57" height="18" textColorLight="-16777216" fontSize="11" width="97" markdown="false">clears old plots
191-
</note>
192-
<slider x="577" step="1" y="164" max="5" display="step-size" height="33" min="1" direction="Horizontal" default="1.0" variable="step-size" width="149" sizeVersion="0"></slider>
193-
<button x="127" y="114" height="33" disableUntilTicks="true" forever="false" kind="Observer" width="102" sizeVersion="0">infect</button>
183+
<monitor x="92" precision="0" y="240" height="60" fontSize="11" width="100" display="Number Sick">num-sick</monitor>
184+
<note x="695" y="16" backgroundDark="0" fontSize="11" width="150" markdown="false" height="24" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">person:</note>
185+
<slider x="689" step="1" y="158" max="5" width="250" display="step-size" height="50" min="1" direction="Horizontal" default="1.0" variable="step-size"></slider>
186+
<button x="789" actionKey="K" y="119" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="69" display="down">move 180</button>
187+
<button x="745" actionKey="J" y="80" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="62" display="left">move 270</button>
188+
<button x="845" actionKey="L" y="80" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="63" display="right">move 90</button>
189+
<button x="790" actionKey="I" y="40" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="69" display="up">move 0</button>
190+
<button x="130" y="145" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="102">infect</button>
191+
<switch x="699" y="445" height="37" on="false" variable="chase?" width="103" display="chase?"></switch>
192+
<switch x="699" y="405" height="37" on="false" variable="avoid?" width="103" display="avoid?"></switch>
193+
<note x="695" y="375" backgroundDark="0" fontSize="11" width="150" markdown="false" height="24" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">androids:</note>
194194
</widgets>
195195
<info><![CDATA[## WHAT IS IT?
196196

Sample Models/Computer Science/Robotic Factory.nlogox

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,11 @@ end
333333
; Copyright 2021 Uri Wilensky.
334334
; See Info tab for full copyright and license.]]></code>
335335
<widgets>
336-
<view x="210" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-16" height="796" showTickCounter="true" patchSize="24.0" fontSize="10" wrappingAllowedY="false" width="796" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
337-
<button x="30" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="setup" width="65" sizeVersion="0">setup
338-
setup</button>
339-
<button x="100" y="10" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="63" sizeVersion="0">go</button>
340-
<monitor x="20" precision="17" y="105" height="45" fontSize="11" display="Products Ready for Van" width="155" sizeVersion="0">sum [ supply ] of storages</monitor>
341-
<slider x="5" step="1" y="215" max="1000" display="full-charge" height="33" min="0" direction="Horizontal" default="350.0" variable="full-charge" units="energy" width="200" sizeVersion="0"></slider>
342-
<plot x="1026" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Percentage of Time" y="12" xMin="0.0" height="150" legend="false" xMax="10.0" yMin="0.0" xAxis="Time" display="Percentage Time Robots Idle" width="200" sizeVersion="0">
336+
<view x="260" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-16" height="679" showTickCounter="true" patchSize="20.455" fontSize="10" wrappingAllowedY="false" width="679" tickCounterLabel="ticks" maxPycor="16" updateMode="1" maxPxcor="16" minPxcor="-16"></view>
337+
<slider x="5" step="1" y="264" max="1000" width="250" display="full-charge" height="50" min="0" direction="Horizontal" default="350.0" variable="full-charge" units="energy"></slider>
338+
<slider x="5" step="1" y="316" max="300" width="250" display="just-in-time-supply-robot" height="50" min="0" direction="Horizontal" default="150.0" variable="just-in-time-supply-robot"></slider>
339+
<slider x="5" step="1" y="212" max="20" width="250" display="number-of-robots" height="50" min="3" direction="Horizontal" default="5.0" variable="number-of-robots"></slider>
340+
<plot x="945" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Percentage of Time" y="12" xMin="0.0" height="150" legend="false" xMax="10.0" yMin="0.0" width="342" xAxis="Time" display="Percentage Time Robots Idle">
343341
<setup></setup>
344342
<update></update>
345343
<pen interval="1.0" mode="0" display="default" color="-16777216" legend="true">
@@ -349,19 +347,31 @@ setup</button>
349347
]]]></update>
350348
</pen>
351349
</plot>
352-
<switch x="5" y="335" height="33" on="true" variable="make-trails?" display="make-trails?" width="200" sizeVersion="0"></switch>
353-
<monitor x="20" precision="17" y="55" height="45" fontSize="11" display="New Sheets" width="155" sizeVersion="0">sum [ supply ] of loading-docks</monitor>
354-
<plot x="1026" autoPlotX="true" yMax="4.0" autoPlotY="true" yAxis="Percent of Robots" y="168" xMin="0.0" height="150" legend="false" xMax="600.0" yMin="0.0" xAxis="Time" display="Robots' Energy" width="200" sizeVersion="0">
350+
<plot x="945" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Orders" y="165" xMin="0.0" height="185" legend="true" xMax="10.0" yMin="0.0" width="342" xAxis="Time" display="Outstanding Orders">
351+
<setup></setup>
352+
<update></update>
353+
<pen interval="1.0" mode="0" display="Total Orders" color="-16777216" legend="true">
354+
<setup></setup>
355+
<update>plot count orders</update>
356+
</pen>
357+
<pen interval="1.0" mode="0" display="Deluxe Orders" color="-7500403" legend="true">
358+
<setup></setup>
359+
<update>plot count orders with [ type-of-order = 1 ]</update>
360+
</pen>
361+
<pen interval="1.0" mode="0" display="Standard Orders" color="-2674135" legend="true">
362+
<setup></setup>
363+
<update>plot count orders with [ type-of-order = 0 ]</update>
364+
</pen>
365+
</plot>
366+
<plot x="945" autoPlotX="true" yMax="4.0" autoPlotY="true" yAxis="Percent of Robots" y="355" xMin="0.0" height="180" legend="false" xMax="600.0" yMin="0.0" width="342" xAxis="Time" display="Robots' Energy">
355367
<setup></setup>
356368
<update></update>
357369
<pen interval="1.0" mode="1" display="default" color="-16777216" legend="true">
358370
<setup></setup>
359371
<update>histogram [ energy ] of robots</update>
360372
</pen>
361373
</plot>
362-
<slider x="5" step="1" y="250" max="300" display="just-in-time-supply-robot" height="33" min="0" direction="Horizontal" default="150.0" variable="just-in-time-supply-robot" width="200" sizeVersion="0"></slider>
363-
<switch x="5" y="295" height="33" on="true" variable="show-agent-name?" display="show-agent-name?" width="200" sizeVersion="0"></switch>
364-
<plot x="1026" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Supply" y="322" xMin="0.0" height="150" legend="true" xMax="10.0" yMin="0.0" xAxis="Time" display="Supply of Machines" width="293" sizeVersion="0">
374+
<plot x="945" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Supply" y="540" xMin="0.0" height="185" legend="true" xMax="10.0" yMin="0.0" width="342" xAxis="Time" display="Supply of Machines">
365375
<setup></setup>
366376
<update></update>
367377
<pen interval="1.0" mode="0" display="Finishers" color="-16777216" legend="true">
@@ -381,23 +391,13 @@ setup</button>
381391
<update>plot sum [ supply ] of loading-docks</update>
382392
</pen>
383393
</plot>
384-
<plot x="1230" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Orders" y="12" xMin="0.0" height="151" legend="true" xMax="10.0" yMin="0.0" xAxis="Time" display="Outstanding Orders" width="342" sizeVersion="0">
385-
<setup></setup>
386-
<update></update>
387-
<pen interval="1.0" mode="0" display="Total Orders" color="-16777216" legend="true">
388-
<setup></setup>
389-
<update>plot count orders</update>
390-
</pen>
391-
<pen interval="1.0" mode="0" display="Deluxe Orders" color="-7500403" legend="true">
392-
<setup></setup>
393-
<update>plot count orders with [ type-of-order = 1 ]</update>
394-
</pen>
395-
<pen interval="1.0" mode="0" display="Standard Orders" color="-2674135" legend="true">
396-
<setup></setup>
397-
<update>plot count orders with [ type-of-order = 0 ]</update>
398-
</pen>
399-
</plot>
400-
<slider x="5" step="1" y="180" max="20" display="number-of-robots" height="33" min="3" direction="Horizontal" default="5.0" variable="number-of-robots" width="200" sizeVersion="0"></slider>
394+
<switch x="25" y="376" height="37" on="true" variable="show-agent-name?" width="200" display="show-agent-name?"></switch>
395+
<switch x="25" y="420" height="37" on="true" variable="make-trails?" width="200" display="make-trails?"></switch>
396+
<monitor x="45" precision="17" y="142" height="60" fontSize="11" width="155" display="Products Ready for Van">sum [ supply ] of storages</monitor>
397+
<monitor x="45" precision="17" y="77" height="60" fontSize="11" width="155" display="New Sheets">sum [ supply ] of loading-docks</monitor>
398+
<button x="125" y="20" height="45" disableUntilTicks="true" forever="true" kind="Observer" width="75">go</button>
399+
<button x="45" y="20" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="75" display="setup">setup
400+
setup</button>
401401
</widgets>
402402
<info><![CDATA[## WHAT IS IT?
403403

0 commit comments

Comments
 (0)