Skip to content

Commit 5745250

Browse files
committed
Convert HubNet Activities to new sizes
1 parent 0ceedfd commit 5745250

25 files changed

Lines changed: 710 additions & 710 deletions

HubNet Activities/BeeSmart HubNet.nlogox

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -518,12 +518,12 @@ end
518518
; See Info tab for full copyright and license.]]></code>
519519
<widgets>
520520
<view x="210" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-18" height="485" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="false" width="485" tickCounterLabel="ticks" maxPycor="18" updateMode="1" maxPxcor="18" minPxcor="-18"></view>
521-
<button x="14" y="10" height="48" disableUntilTicks="false" forever="false" kind="Observer" width="80" sizeVersion="0">setup</button>
522-
<button x="114" y="10" height="48" disableUntilTicks="true" forever="true" kind="Observer" width="81" sizeVersion="0">go</button>
523-
<slider x="10" step="1" y="177" max="10" display="student-vision-radius" height="33" min="1" direction="Horizontal" default="10.0" variable="student-vision-radius" width="185" sizeVersion="0"></slider>
524-
<slider x="10" step="1" y="95" max="9" display="number-of-sites" height="33" min="2" direction="Horizontal" default="9.0" variable="number-of-sites" width="185" sizeVersion="0"></slider>
525-
<monitor x="12" precision="17" y="265" height="45" fontSize="11" display="Best site discovered?" width="183" sizeVersion="0">[ color = true-color ] of max-one-of sites [ quality ]</monitor>
526-
<plot x="707" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Bee Count" y="10" xMin="0.0" height="253" legend="false" xMax="10.0" yMin="0.0" xAxis="Sites" display="Current Sites Support" width="307" sizeVersion="0">
521+
<button x="14" y="10" height="48" disableUntilTicks="false" forever="false" kind="Observer" width="80">setup</button>
522+
<button x="114" y="10" height="48" disableUntilTicks="true" forever="true" kind="Observer" width="81">go</button>
523+
<slider x="10" step="1" y="211" max="10" width="185" display="student-vision-radius" height="50" min="1" direction="Horizontal" default="10.0" variable="student-vision-radius"></slider>
524+
<slider x="10" step="1" y="95" max="9" width="185" display="number-of-sites" height="50" min="2" direction="Horizontal" default="9.0" variable="number-of-sites"></slider>
525+
<monitor x="12" precision="17" y="316" height="60" fontSize="11" width="183" display="Best site discovered?">[ color = true-color ] of max-one-of sites [ quality ]</monitor>
526+
<plot x="707" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Bee Count" y="10" xMin="0.0" height="253" legend="false" xMax="10.0" yMin="0.0" width="307" xAxis="Sites" display="Current Sites Support">
527527
<setup></setup>
528528
<update></update>
529529
<pen interval="1.0" mode="1" display="pen-0" color="-16777216" legend="true">
@@ -535,7 +535,7 @@ let supporting-bees (turtle-set students robots) with [ is-site? supported-site
535535
histogram [ position supported-site sites-by-quality ] of supporting-bees</update>
536536
</pen>
537537
</plot>
538-
<plot x="708" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Bee Count" y="268" xMin="0.0" height="253" legend="false" xMax="10.0" yMin="0.0" xAxis="Ticks" display="Sites Support Over Time" width="307" sizeVersion="0">
538+
<plot x="708" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="Bee Count" y="268" xMin="0.0" height="253" legend="false" xMax="10.0" yMin="0.0" width="307" xAxis="Ticks" display="Sites Support Over Time">
539539
<setup>ask sites [
540540
create-temporary-plot-pen (word self)
541541
set-plot-pen-color true-color
@@ -545,9 +545,9 @@ histogram [ position supported-site sites-by-quality ] of supporting-bees</updat
545545
plot count (turtle-set students robots) with [ supported-site = myself ]
546546
]</update>
547547
</plot>
548-
<input x="14" multiline="false" y="407" height="60" variable="filename" type="string" width="179" sizeVersion="0">history.csv</input>
549-
<button x="14" y="473" height="46" disableUntilTicks="true" forever="false" kind="Observer" display="save history" width="179" sizeVersion="0">save-history</button>
550-
<slider x="10" step="10" y="136" max="100" display="number-of-robots" height="33" min="0" direction="Horizontal" default="100.0" variable="number-of-robots" width="185" sizeVersion="0"></slider>
548+
<input x="14" multiline="false" y="473" height="60" variable="filename" type="string" width="179">history.csv</input>
549+
<button x="14" y="539" height="46" disableUntilTicks="true" forever="false" kind="Observer" width="179" display="save history">save-history</button>
550+
<slider x="10" step="10" y="153" max="100" width="185" display="number-of-robots" height="50" min="0" direction="Horizontal" default="100.0" variable="number-of-robots"></slider>
551551
</widgets>
552552
<info><![CDATA[## WHAT IS IT?
553553
@@ -1698,23 +1698,23 @@ To inquire about commercial licenses for either NetLogo or specific models from
16981698
</shape>
16991699
</linkShapes>
17001700
<hubNetClient>
1701-
<view x="300" wrappingAllowedX="true" y="25" frameRate="30.0" minPycor="-18" height="429" showTickCounter="true" patchSize="12.0" fontSize="13" wrappingAllowedY="true" width="429" tickCounterLabel="ticks" maxPycor="18" updateMode="1" maxPxcor="18" minPxcor="-18"></view>
1702-
<button x="104" actionKey="W" y="82" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="up" width="83" sizeVersion="0"></button>
1703-
<button x="104" actionKey="S" y="129" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="down" width="84" sizeVersion="0"></button>
1704-
<button x="9" actionKey="A" y="129" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="left" width="78" sizeVersion="0"></button>
1705-
<button x="205" actionKey="D" y="129" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="right" width="79" sizeVersion="0"></button>
1706-
<button x="9" actionKey="Q" y="185" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="dance" width="79" sizeVersion="0"></button>
1707-
<button x="205" actionKey="R" y="185" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="revisit" width="79" sizeVersion="0"></button>
1708-
<monitor x="11" precision="3" y="339" height="49" fontSize="11" display="dances-made" width="131" sizeVersion="0"></monitor>
1709-
<monitor x="11" precision="3" y="291" height="49" fontSize="11" display="dance-length" width="131" sizeVersion="0"></monitor>
1710-
<monitor x="11" precision="3" y="243" height="49" fontSize="11" display="target-quality" width="131" sizeVersion="0"></monitor>
1711-
<monitor x="8" precision="3" y="26" height="49" fontSize="11" display="Message" width="275" sizeVersion="0"></monitor>
1712-
<monitor x="156" precision="3" y="243" height="49" fontSize="11" display="interest-in-target" width="129" sizeVersion="0"></monitor>
1713-
<monitor x="11" precision="3" y="387" height="49" fontSize="11" display="summary" width="274" sizeVersion="0"></monitor>
1714-
<note x="14" y="441" height="28" backgroundDark="0" fontSize="11" width="252" markdown="false" textColorLight="-16777216" backgroundLight="0">[T Q R] : ticks, target-quality, recruited</note>
1715-
<monitor x="156" precision="3" y="339" height="49" fontSize="11" display="ticks" width="129" sizeVersion="0"></monitor>
1716-
<monitor x="156" precision="3" y="291" height="49" fontSize="11" display="bees-recruited" width="129" sizeVersion="0"></monitor>
1717-
<button x="104" actionKey="G" y="185" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="give-up" width="84" sizeVersion="0"></button>
1701+
<view x="300" wrappingAllowedX="false" y="25" frameRate="30.0" minPycor="-18" height="429" showTickCounter="true" patchSize="13.0" fontSize="13" wrappingAllowedY="false" width="429" tickCounterLabel="ticks" maxPycor="18" updateMode="1" maxPxcor="18" minPxcor="-18"></view>
1702+
<button x="104" actionKey="W" y="82" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="83" display="up"></button>
1703+
<button x="104" actionKey="S" y="129" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="84" display="down"></button>
1704+
<button x="9" actionKey="A" y="129" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="78" display="left"></button>
1705+
<button x="205" actionKey="D" y="129" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="79" display="right"></button>
1706+
<button x="9" actionKey="Q" y="185" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="79" display="dance"></button>
1707+
<button x="205" actionKey="R" y="185" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="79" display="revisit"></button>
1708+
<monitor x="11" precision="3" y="351" height="49" fontSize="11" width="131" display="dances-made"></monitor>
1709+
<monitor x="11" precision="3" y="297" height="49" fontSize="11" width="131" display="dance-length"></monitor>
1710+
<monitor x="11" precision="3" y="243" height="49" fontSize="11" width="131" display="target-quality"></monitor>
1711+
<monitor x="8" precision="3" y="26" height="49" fontSize="11" width="275" display="Message"></monitor>
1712+
<monitor x="156" precision="3" y="243" height="49" fontSize="11" width="129" display="interest-in-target"></monitor>
1713+
<monitor x="11" precision="3" y="405" height="49" fontSize="11" width="274" display="summary"></monitor>
1714+
<note x="14" y="459" backgroundDark="0" fontSize="11" width="252" markdown="false" height="28" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">[T Q R] : ticks, target-quality, recruited</note>
1715+
<monitor x="156" precision="3" y="351" height="49" fontSize="11" width="129" display="ticks"></monitor>
1716+
<monitor x="156" precision="3" y="297" height="49" fontSize="11" width="129" display="bees-recruited"></monitor>
1717+
<button x="104" actionKey="G" y="185" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="84" display="give-up"></button>
17181718
</hubNetClient>
17191719
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
17201720
</model>

HubNet Activities/Code Examples/Client Overrides Example HubNet.nlogox

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ end
9393
; copyright and related or neighboring rights to this model.</code>
9494
<widgets>
9595
<view x="231" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-10" height="424" showTickCounter="false" patchSize="20.0" fontSize="10" wrappingAllowedY="false" width="424" tickCounterLabel="ticks" maxPycor="10" updateMode="1" maxPxcor="10" minPxcor="-10"></view>
96-
<button x="42" y="51" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="71" sizeVersion="0">setup</button>
97-
<button x="115" y="51" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="71" sizeVersion="0">go</button>
98-
<note x="15" y="92" height="45" backgroundDark="0" fontSize="12" width="212" markdown="false" textColorLight="-16777216" backgroundLight="0">Users click on their client view
96+
<button x="42" y="51" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="71">setup</button>
97+
<button x="115" y="51" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="71">go</button>
98+
<note x="15" y="99" backgroundDark="0" fontSize="12" width="212" markdown="false" height="45" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Users click on their client view
9999
to reveal the color of patches
100100
at that location.</note>
101101
</widgets>
@@ -834,7 +834,7 @@ This model demonstrates basic usage of HUBNET-SEND-OVERRIDE and HUBNET-CLEAR-OVE
834834
</shape>
835835
</linkShapes>
836836
<hubNetClient>
837-
<view x="12" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-10" height="430" showTickCounter="true" patchSize="12.0" fontSize="13" wrappingAllowedY="true" width="430" tickCounterLabel="ticks" maxPycor="10" updateMode="1" maxPxcor="10" minPxcor="-10"></view>
837+
<view x="12" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-10" height="430" showTickCounter="true" patchSize="20.0" fontSize="13" wrappingAllowedY="false" width="430" tickCounterLabel="ticks" maxPycor="10" updateMode="1" maxPxcor="10" minPxcor="-10"></view>
838838
</hubNetClient>
839839
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
840840
</model>

HubNet Activities/Code Examples/Client Perspective Example HubNet.nlogox

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ end
100100
; copyright and related or neighboring rights to this model.</code>
101101
<widgets>
102102
<view x="88" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-10" height="424" showTickCounter="false" patchSize="20.0" fontSize="10" wrappingAllowedY="false" width="424" tickCounterLabel="ticks" maxPycor="10" updateMode="1" maxPxcor="10" minPxcor="-10"></view>
103-
<button x="12" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="71" sizeVersion="0">setup</button>
104-
<button x="12" y="44" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="71" sizeVersion="0">go</button>
105-
<button x="135" y="506" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="319" sizeVersion="0">ask students [ hubnet-send-follow user-id self radius ]</button>
106-
<button x="135" y="540" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="319" sizeVersion="0">ask students [ hubnet-send-watch user-id self ]</button>
107-
<button x="135" y="574" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="319" sizeVersion="0">ask students [ hubnet-reset-perspective user-id ]</button>
108-
<slider x="210" step="1" y="471" max="max-pxcor" display="radius" height="33" min="0" direction="Horizontal" default="2.0" variable="radius" width="172" sizeVersion="0"></slider>
103+
<button x="12" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="71">setup</button>
104+
<button x="12" y="55" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="71">go</button>
105+
<button x="135" y="526" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="319">ask students [ hubnet-send-follow user-id self radius ]</button>
106+
<button x="135" y="571" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="319">ask students [ hubnet-send-watch user-id self ]</button>
107+
<button x="135" y="616" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="319">ask students [ hubnet-reset-perspective user-id ]</button>
108+
<slider x="210" step="1" y="471" max="max-pxcor" width="172" display="radius" height="50" min="0" direction="Horizontal" default="2.0" variable="radius"></slider>
109109
</widgets>
110110
<info><![CDATA[## WHAT IS IT?
111111
@@ -826,13 +826,13 @@ Make sure that the "Mirror 2D view on clients" box is selected on the HubNet Con
826826
</shape>
827827
</linkShapes>
828828
<hubNetClient>
829-
<view x="252" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-10" height="420" showTickCounter="true" patchSize="12.0" fontSize="13" wrappingAllowedY="true" width="420" tickCounterLabel="ticks" maxPycor="10" updateMode="1" maxPxcor="10" minPxcor="-10"></view>
830-
<button x="85" actionKey="I" y="121" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="up" width="62" sizeVersion="0"></button>
831-
<button x="85" actionKey="K" y="187" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="down" width="65" sizeVersion="0"></button>
832-
<button x="147" actionKey="L" y="154" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="right" width="63" sizeVersion="0"></button>
833-
<button x="23" actionKey="J" y="154" height="33" disableUntilTicks="false" forever="false" kind="Observer" display="left" width="62" sizeVersion="0"></button>
834-
<slider x="39" step="1.0" y="78" max="5.0" display="step-size" height="33" min="1.0" direction="Horizontal" default="2.0" variable="step-size" width="150" sizeVersion="0"></slider>
835-
<monitor x="70" precision="0" y="21" height="49" fontSize="11" display="location" width="87" sizeVersion="0"></monitor>
829+
<view x="252" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-10" height="420" showTickCounter="true" patchSize="20.0" fontSize="13" wrappingAllowedY="false" width="420" tickCounterLabel="ticks" maxPycor="10" updateMode="1" maxPxcor="10" minPxcor="-10"></view>
830+
<button x="85" actionKey="I" y="138" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="62" display="up"></button>
831+
<button x="85" actionKey="K" y="209" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="65" display="down"></button>
832+
<button x="147" actionKey="L" y="171" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="63" display="right"></button>
833+
<button x="23" actionKey="J" y="171" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="62" display="left"></button>
834+
<slider x="39" step="1.0" y="78" max="5.0" width="150" display="step-size" height="50" min="1.0" direction="Horizontal" default="2.0" variable="step-size"></slider>
835+
<monitor x="70" precision="0" y="21" height="49" fontSize="11" width="87" display="location"></monitor>
836836
</hubNetClient>
837837
<previewCommands>need-to-manually-make-preview-for-this-model</previewCommands>
838838
</model>

0 commit comments

Comments
 (0)