verifica_se_primo.ivp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <element class="edu.cmu.cs.stage3.alice.core.World" name="main">
  2. <child filename="renderTarget">1_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.RenderTarget" name="renderTarget">
  3. <property name="data">
  4. </property>
  5. </element>1_CDATA_END</child>
  6. <child filename="play">1_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.response.UserDefinedResponse" name="play">
  7. <child filename="n">2_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.Variable" name="n">
  8. <property class="java.lang.Double" name="value">1.0</property>
  9. <property name="valueClass">java.lang.Number</property>
  10. <property name="data">
  11. </property>
  12. </element>2_CDATA_END</child>
  13. <child filename="__Unnamed1__">2_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.response.PropertyAnimation">
  14. <child filename="__Unnamed0__">3_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.ask.AskUserForNumber">
  15. <property name="title">Question</property>
  16. <property name="question">Digite um número</property>
  17. <property name="data">
  18. <entry>
  19. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  20. <value class="java.lang.String">question</value>
  21. </entry>
  22. </property>
  23. </element>3_CDATA_END</child>
  24. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="element">play.n</property>
  25. <property name="propertyName">value</property>
  26. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="value">play.__Unnamed1__.__Unnamed0__</property>
  27. <property class="edu.cmu.cs.stage3.util.HowMuch" name="howMuch">edu.cmu.cs.stage3.util.HowMuch[INSTANCE_AND_PARTS]</property>
  28. <property class="edu.cmu.cs.stage3.alice.core.style.TraditionalAnimationStyle" name="style">edu.cmu.cs.stage3.alice.core.style.TraditionalAnimationStyle[BEGIN_AND_END_GENTLY]</property>
  29. <property class="java.lang.Integer" name="duration">0</property>
  30. <property name="data">
  31. <entry>
  32. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  33. <value class="java.lang.String">element,propertyName,value</value>
  34. </entry>
  35. </property>
  36. </element>2_CDATA_END</child>
  37. <child filename="__Unnamed2__">2_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.response.IfElseInOrder">
  38. <child filename="__Unnamed0__">3_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.userdefined.CallToUserDefinedQuestion">
  39. <child filename="numero">4_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.Variable" name="numero">
  40. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="value">play.n</property>
  41. <property name="valueClass">java.lang.Number</property>
  42. <property name="data">
  43. </property>
  44. </element>4_CDATA_END</child>
  45. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="userDefinedQuestion">verificaPrimo</property>
  46. <property componentClass="edu.cmu.cs.stage3.alice.core.Variable" name="requiredActualParameters">
  47. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">play.__Unnamed2__.__Unnamed0__.numero</item>
  48. </property>
  49. <property name="data">
  50. <entry>
  51. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  52. <value class="java.lang.String">userDefinedQuestion,requiredActualParameters</value>
  53. </entry>
  54. </property>
  55. </element>3_CDATA_END</child>
  56. <child filename="__Unnamed1__">3_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.response.Print">
  57. <property name="text">O número digitado é primo</property>
  58. <property name="object">
  59. </property>
  60. <property name="addNewLine">true</property>
  61. <property class="java.lang.Double" name="duration">0.0</property>
  62. <property name="data">
  63. </property>
  64. </element>3_CDATA_END</child>
  65. <child filename="__Unnamed2__">3_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.response.Print">
  66. <property name="text">O número digitado não é primo</property>
  67. <property name="object">
  68. </property>
  69. <property name="addNewLine">true</property>
  70. <property class="java.lang.Double" name="duration">0.0</property>
  71. <property name="data">
  72. </property>
  73. </element>3_CDATA_END</child>
  74. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="condition">play.__Unnamed2__.__Unnamed0__</property>
  75. <property componentClass="edu.cmu.cs.stage3.alice.core.Response" name="elseComponentResponses">
  76. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">play.__Unnamed2__.__Unnamed2__</item>
  77. </property>
  78. <property componentClass="edu.cmu.cs.stage3.alice.core.Response" name="componentResponses">
  79. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">play.__Unnamed2__.__Unnamed1__</item>
  80. </property>
  81. <property class="java.lang.Double" name="duration">1.0</property>
  82. <property name="data">
  83. </property>
  84. </element>2_CDATA_END</child>
  85. <child filename="__Unnamed3__">2_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.response.Print">
  86. <property name="text">
  87. </property>
  88. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="object">play.n</property>
  89. <property name="addNewLine">true</property>
  90. <property class="java.lang.Double" name="duration">0.0</property>
  91. <property name="data">
  92. </property>
  93. </element>2_CDATA_END</child>
  94. <property componentClass="edu.cmu.cs.stage3.alice.core.Variable" name="localVariables">
  95. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">play.n</item>
  96. </property>
  97. <property componentClass="edu.cmu.cs.stage3.alice.core.Response" name="componentResponses">
  98. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">play.__Unnamed1__</item>
  99. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">play.__Unnamed3__</item>
  100. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">play.__Unnamed2__</item>
  101. </property>
  102. </element>1_CDATA_END</child>
  103. <child filename="behavior0">1_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.behavior.WorldStartBehavior" name="behavior0">
  104. <child filename="__Unnamed0__">2_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.response.CallToUserDefinedResponse">
  105. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="userDefinedResponse">play</property>
  106. <property name="requiredActualParameters">
  107. </property>
  108. <property class="java.lang.Double" name="duration">1.0</property>
  109. <property name="data">
  110. <entry>
  111. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  112. <value class="java.lang.String">requiredActualParameters,userDefinedResponse</value>
  113. </entry>
  114. </property>
  115. </element>2_CDATA_END</child>
  116. <child filename="__Unnamed1__">2_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.response.CallToUserDefinedResponse">
  117. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="userDefinedResponse">play</property>
  118. <property name="requiredActualParameters">
  119. </property>
  120. <property class="java.lang.Double" name="duration">1.0</property>
  121. <property name="data">
  122. <entry>
  123. <key class="java.lang.String">PropertyViewController_propertyOwner</key>
  124. <value class="java.lang.String">triggerResponse</value>
  125. </entry>
  126. <entry>
  127. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  128. <value class="java.lang.String">userDefinedResponse,requiredActualParameters</value>
  129. </entry>
  130. </property>
  131. </element>2_CDATA_END</child>
  132. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="triggerResponse">behavior0.__Unnamed1__</property>
  133. <property class="edu.cmu.cs.stage3.alice.core.behavior.MultipleRuntimeResponsePolicy" name="multipleRuntimeResponsePolicy">edu.cmu.cs.stage3.alice.core.behavior.MultipleRuntimeResponsePolicy[ENQUEUE_MULTIPLE]</property>
  134. <property name="isEnabled">true</property>
  135. <property name="data">
  136. </property>
  137. </element>1_CDATA_END</child>
  138. <child filename="verificaPrimo">1_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.userdefined.UserDefinedQuestion" name="verificaPrimo">
  139. <child filename="__Unnamed0__">2_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.userdefined.Return">
  140. <property class="java.lang.Boolean" name="value">true</property>
  141. <property name="valueClass">java.lang.Boolean</property>
  142. <property name="data">
  143. <entry>
  144. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  145. <value class="java.lang.String">value</value>
  146. </entry>
  147. </property>
  148. </element>2_CDATA_END</child>
  149. <child filename="__Unnamed1__">2_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.userdefined.IfElse">
  150. <child filename="__Unnamed0__">3_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.NumberIsLessThan">
  151. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="a">verificaPrimo.numero</property>
  152. <property class="java.lang.Double" name="b">2.0</property>
  153. <property name="data">
  154. <entry>
  155. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  156. <value class="java.lang.String">a,b</value>
  157. </entry>
  158. </property>
  159. </element>3_CDATA_END</child>
  160. <child filename="__Unnamed1__">3_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.userdefined.Return">
  161. <property class="java.lang.Boolean" name="value">false</property>
  162. <property name="valueClass">java.lang.Boolean</property>
  163. <property name="data">
  164. <entry>
  165. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  166. <value class="java.lang.String">value</value>
  167. </entry>
  168. </property>
  169. </element>3_CDATA_END</child>
  170. <child filename="__Unnamed2__">3_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.userdefined.LoopN">
  171. <child filename="index">4_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.Variable" name="index">
  172. <property name="value">
  173. </property>
  174. <property name="valueClass">java.lang.Number</property>
  175. <property name="data">
  176. </property>
  177. </element>4_CDATA_END</child>
  178. <child filename="__Unnamed1__">4_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.userdefined.IfElse">
  179. <child filename="__Unnamed0__">5_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.NumberIsEqualTo">
  180. <child filename="__Unnamed0__">6_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.math.IEEERemainder">
  181. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="a">verificaPrimo.numero</property>
  182. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="b">verificaPrimo.__Unnamed1__.__Unnamed2__.index</property>
  183. <property name="data">
  184. <entry>
  185. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  186. <value class="java.lang.String">a,b</value>
  187. </entry>
  188. </property>
  189. </element>6_CDATA_END</child>
  190. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="a">verificaPrimo.__Unnamed1__.__Unnamed2__.__Unnamed1__.__Unnamed0__.__Unnamed0__</property>
  191. <property class="java.lang.Double" name="b">0.0</property>
  192. <property name="data">
  193. <entry>
  194. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  195. <value class="java.lang.String">a,b</value>
  196. </entry>
  197. </property>
  198. </element>5_CDATA_END</child>
  199. <child filename="__Unnamed1__">5_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.userdefined.Return">
  200. <property class="java.lang.Boolean" name="value">false</property>
  201. <property name="valueClass">java.lang.Boolean</property>
  202. <property name="data">
  203. <entry>
  204. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  205. <value class="java.lang.String">value</value>
  206. </entry>
  207. </property>
  208. </element>5_CDATA_END</child>
  209. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="condition">verificaPrimo.__Unnamed1__.__Unnamed2__.__Unnamed1__.__Unnamed0__</property>
  210. <property name="elseComponents">
  211. </property>
  212. <property componentClass="edu.cmu.cs.stage3.alice.core.question.userdefined.Component" name="components">
  213. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">verificaPrimo.__Unnamed1__.__Unnamed2__.__Unnamed1__.__Unnamed1__</item>
  214. </property>
  215. <property name="data">
  216. </property>
  217. </element>4_CDATA_END</child>
  218. <property class="java.lang.Double" name="count">Infinity</property>
  219. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="index">verificaPrimo.__Unnamed1__.__Unnamed2__.index</property>
  220. <property class="java.lang.Integer" name="start">2</property>
  221. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="end">verificaPrimo.numero</property>
  222. <property class="java.lang.Double" name="increment">1.0</property>
  223. <property componentClass="edu.cmu.cs.stage3.alice.core.question.userdefined.Component" name="components">
  224. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">verificaPrimo.__Unnamed1__.__Unnamed2__.__Unnamed1__</item>
  225. </property>
  226. <property name="data">
  227. <entry>
  228. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.editors.compositeeditor class="java.lang.String">IS_COMPLICATED_LOOP_KEY</key>
  229. <value class="java.lang.Boolean">true</value>
  230. </entry>
  231. </property>
  232. </element>3_CDATA_END</child>
  233. <child filename="__Unnamed3__">3_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.NumberIsLessThanOrEqualTo">
  234. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="a">verificaPrimo.numero</property>
  235. <property class="java.lang.Double" name="b">2.0</property>
  236. <property name="data">
  237. <entry>
  238. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  239. <value class="java.lang.String">a,b</value>
  240. </entry>
  241. </property>
  242. </element>3_CDATA_END</child>
  243. <child filename="__Unnamed4__">3_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.question.NumberIsLessThan">
  244. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="a">verificaPrimo.numero</property>
  245. <property class="java.lang.Double" name="b">2.0</property>
  246. <property name="data">
  247. <entry>
  248. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.visibleProperties</key>
  249. <value class="java.lang.String">a,b</value>
  250. </entry>
  251. </property>
  252. </element>3_CDATA_END</child>
  253. <property criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion" name="condition">verificaPrimo.__Unnamed1__.__Unnamed4__</property>
  254. <property componentClass="edu.cmu.cs.stage3.alice.core.question.userdefined.Component" name="elseComponents">
  255. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">verificaPrimo.__Unnamed1__.__Unnamed2__</item>
  256. </property>
  257. <property componentClass="edu.cmu.cs.stage3.alice.core.question.userdefined.Component" name="components">
  258. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">verificaPrimo.__Unnamed1__.__Unnamed1__</item>
  259. </property>
  260. <property name="data">
  261. </property>
  262. </element>2_CDATA_END</child>
  263. <child filename="numero">2_CDATA_INIT<element class="edu.cmu.cs.stage3.alice.core.Variable" name="numero">
  264. <property class="java.lang.Double" name="value">1.0</property>
  265. <property name="valueClass">java.lang.Number</property>
  266. <property name="data">
  267. </property>
  268. </element>2_CDATA_END</child>
  269. <property name="valueClass">java.lang.Boolean</property>
  270. <property componentClass="edu.cmu.cs.stage3.alice.core.question.userdefined.Component" name="components">
  271. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">verificaPrimo.__Unnamed1__</item>
  272. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">verificaPrimo.__Unnamed0__</item>
  273. </property>
  274. <property componentClass="edu.cmu.cs.stage3.alice.core.Variable" name="requiredFormalParameters">
  275. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">verificaPrimo.numero</item>
  276. </property>
  277. <property name="keywordFormalParameters">
  278. </property>
  279. <property name="localVariables">
  280. </property>
  281. <property name="data">
  282. </property>
  283. </element>1_CDATA_END</child>
  284. <property componentClass="edu.cmu.cs.stage3.alice.core.Response" name="responses">
  285. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">play</item>
  286. </property>
  287. <property componentClass="edu.cmu.cs.stage3.alice.core.Behavior" name="behaviors">
  288. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">behavior0</item>
  289. </property>
  290. <property name="variables">
  291. </property>
  292. <property componentClass="edu.cmu.cs.stage3.alice.core.Question" name="questions">
  293. <item criterionClass="edu.cmu.cs.stage3.alice.core.criterion.InternalReferenceKeyedCriterion">verificaPrimo</item>
  294. </property>
  295. <property name="data">
  296. <entry>
  297. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.playCount</key>
  298. <value class="java.lang.String">7</value>
  299. </entry>
  300. <entry>
  301. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.tabObjects</key>
  302. <value class="java.lang.String">main.play:main.verificaPrimo:</value>
  303. </entry>
  304. <entry>
  305. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.worldOpenTime</key>
  306. <value class="java.lang.String">5369157</value>
  307. </entry>
  308. <entry>
  309. <key class="java.lang.String">edu.cmu.cs.stage3.alice.authoringtool.saveCount</key>
  310. <value class="java.lang.String">20</value>
  311. </entry>
  312. </property>
  313. </element>