|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<model version="NetLogo 7.0.0-beta1" snapToGrid="true"> |
| 2 | +<model version="NetLogo 7.0.0-beta0" snapToGrid="true"> |
3 | 3 | <code><![CDATA[turtles-own |
4 | 4 | [ |
5 | 5 | temp ;; specific turtle's temperature |
@@ -119,34 +119,13 @@ end |
119 | 119 | ; Copyright 2002 Uri Wilensky. |
120 | 120 | ; See Info tab for full copyright and license.]]></code> |
121 | 121 | <widgets> |
122 | | - <view x="430" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="-17" height="424" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="false" width="424" tickCounterLabel="ticks" maxPycor="17" updateMode="1" maxPxcor="17" minPxcor="-17"></view> |
123 | | - <slider x="10" step="1" y="45" max="100" width="250" display="room-temp" height="50" min="-20" direction="Horizontal" default="20.0" variable="room-temp"></slider> |
124 | | - <slider x="10" step="10" y="100" max="2500" width="250" display="init-metal-temp" height="50" min="1550" direction="Horizontal" default="1550.0" variable="init-metal-temp"></slider> |
125 | | - <slider x="10" step="1" y="155" max="1500" width="250" display="melting-temp" height="50" min="500" direction="Horizontal" default="551.0" variable="melting-temp"></slider> |
126 | | - <slider x="270" step="2" y="155" max="33" width="150" display="box-width" height="50" min="3" direction="Horizontal" default="33.0" variable="box-width" units="atoms"></slider> |
127 | | - <slider x="270" step="1" y="210" max="100" width="150" display="fill-percentage" height="50" min="1" direction="Horizontal" default="85.0" variable="fill-percentage" units="%"></slider> |
128 | | - <button x="270" y="110" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="70" display="go once">go</button> |
129 | | - <button x="350" y="110" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="70" display="go">go</button> |
130 | | - <switch x="65" y="225" height="37" on="true" variable="histogram?" width="124" display="histogram?"></switch> |
131 | | - <monitor x="75" precision="3" y="270" height="60" fontSize="11" width="102" display="ave-metal-temp">ave-metal-temp</monitor> |
132 | | - <button x="310" y="65" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="70">setup</button> |
133 | | - <plot x="10" autoPlotX="true" yMax="1550.0" autoPlotY="true" yAxis="ave-metal-temp" y="480" xMin="0.0" height="201" legend="true" xMax="100.0" yMin="20.0" width="275" xAxis="time" display="Average Metal Temperature"> |
134 | | - <setup>set-plot-y-range room-temp init-metal-temp</setup> |
135 | | - <update>if not histogram? [ stop ]</update> |
136 | | - <pen interval="1.0" mode="0" display="ave-metal-temp" color="-2674135" legend="false"> |
137 | | - <setup></setup> |
138 | | - <update>plot ave-metal-temp</update> |
139 | | - </pen> |
140 | | - </plot> |
141 | | - <plot x="295" autoPlotX="true" yMax="625.0" autoPlotY="true" yAxis="crystal quant." y="480" xMin="0.0" height="201" legend="false" xMax="100.0" yMin="0.0" width="275" xAxis="time" display="Number Solidified"> |
142 | | - <setup>set-plot-y-range 0 count turtles</setup> |
143 | | - <update></update> |
144 | | - <pen interval="1.0" mode="0" display="amount" color="-16777216" legend="false"> |
145 | | - <setup></setup> |
146 | | - <update>plot num-frozen</update> |
147 | | - </pen> |
148 | | - </plot> |
149 | | - <plot x="580" autoPlotX="false" yMax="625.0" autoPlotY="false" yAxis="quantity" y="480" xMin="0.0" height="201" legend="true" xMax="8.0" yMin="0.0" width="275" xAxis="colors" display="Temperatures"> |
| 122 | + <view x="320" wrappingAllowedX="false" y="7" frameRate="30.0" minPycor="-17" height="424" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="false" width="424" tickCounterLabel="ticks" maxPycor="17" updateMode="1" maxPxcor="17" minPxcor="-17"></view> |
| 123 | + <slider x="10" step="2" y="7" max="33" width="250" display="box-width" height="50" min="3" direction="Horizontal" default="33.0" variable="box-width" units="atoms"></slider> |
| 124 | + <slider x="10" step="1" y="285" max="100" width="250" display="room-temp" height="50" min="-20" direction="Horizontal" default="20.0" variable="room-temp"></slider> |
| 125 | + <slider x="10" step="1" y="230" max="1500" width="250" display="melting-temp" height="50" min="500" direction="Horizontal" default="551.0" variable="melting-temp"></slider> |
| 126 | + <slider x="10" step="10" y="115" max="2500" width="250" display="init-metal-temp" height="50" min="1550" direction="Horizontal" default="1550.0" variable="init-metal-temp"></slider> |
| 127 | + <slider x="10" step="1" y="60" max="100" width="250" display="fill-percentage" height="50" min="1" direction="Horizontal" default="85.0" variable="fill-percentage" units="%"></slider> |
| 128 | + <plot x="10" autoPlotX="false" yMax="625.0" autoPlotY="false" yAxis="quantity" y="340" xMin="0.0" height="201" legend="true" xMax="8.0" yMin="0.0" width="250" xAxis="colors" display="Temperatures"> |
150 | 129 | <setup><![CDATA[set-plot-y-range 0 count turtles |
151 | 130 | set-histogram-num-bars 1 + (length colors) |
152 | 131 |
|
@@ -178,6 +157,27 @@ foreach colors [ c -> |
178 | 157 | ]]]></update> |
179 | 158 | </pen> |
180 | 159 | </plot> |
| 160 | + <plot x="550" autoPlotX="true" yMax="625.0" autoPlotY="true" yAxis="crystal quant." y="440" xMin="0.0" height="201" legend="false" xMax="100.0" yMin="0.0" width="275" xAxis="time" display="Number Solidified"> |
| 161 | + <setup>set-plot-y-range 0 count turtles</setup> |
| 162 | + <update></update> |
| 163 | + <pen interval="1.0" mode="0" display="amount" color="-16777216" legend="false"> |
| 164 | + <setup></setup> |
| 165 | + <update>plot num-frozen</update> |
| 166 | + </pen> |
| 167 | + </plot> |
| 168 | + <plot x="265" autoPlotX="true" yMax="1550.0" autoPlotY="true" yAxis="ave-metal-temp" y="440" xMin="0.0" height="201" legend="true" xMax="100.0" yMin="20.0" width="275" xAxis="time" display="Average Metal Temperature"> |
| 169 | + <setup>set-plot-y-range room-temp init-metal-temp</setup> |
| 170 | + <update>if not histogram? [ stop ]</update> |
| 171 | + <pen interval="1.0" mode="0" display="ave-metal-temp" color="-2674135" legend="false"> |
| 172 | + <setup></setup> |
| 173 | + <update>plot ave-metal-temp</update> |
| 174 | + </pen> |
| 175 | + </plot> |
| 176 | + <button x="9" y="175" height="45" disableUntilTicks="false" forever="false" kind="Observer" width="75">setup</button> |
| 177 | + <button x="92" y="175" height="45" disableUntilTicks="true" forever="false" kind="Observer" width="80" display="go once">go</button> |
| 178 | + <button x="180" y="175" height="45" disableUntilTicks="true" forever="true" kind="Observer" width="80" display="go">go</button> |
| 179 | + <monitor x="141" precision="3" y="545" height="60" fontSize="11" width="115" display="ave-metal-temp">ave-metal-temp</monitor> |
| 180 | + <switch x="10" y="545" height="40" on="true" variable="histogram?" width="120" display="histogram?"></switch> |
181 | 181 | </widgets> |
182 | 182 | <info><![CDATA[## WHAT IS IT? |
183 | 183 |
|
|
0 commit comments