Control.html 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="de">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_74) on Tue Sep 27 12:48:17 CEST 2016 -->
  6. <title>Control</title>
  7. <meta name="date" content="2016-09-27">
  8. <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="Control";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="class-use/Control.html">Use</a></li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../deprecated-list.html">Deprecated</a></li>
  46. <li><a href="../../index-files/index-1.html">Index</a></li>
  47. <li><a href="../../help-doc.html">Help</a></li>
  48. </ul>
  49. </div>
  50. <div class="subNav">
  51. <ul class="navList">
  52. <li><a href="../../ui/controller/ConsoleController.html" title="class in ui.controller"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../ui/controller/GlobalController.html" title="class in ui.controller"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../index.html?ui/controller/Control.html" target="_top">Frames</a></li>
  57. <li><a href="Control.html" target="_top">No&nbsp;Frames</a></li>
  58. </ul>
  59. <ul class="navList" id="allclasses_navbar_top">
  60. <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  61. </ul>
  62. <div>
  63. <script type="text/javascript"><!--
  64. allClassesLink = document.getElementById("allclasses_navbar_top");
  65. if(window==top) {
  66. allClassesLink.style.display = "block";
  67. }
  68. else {
  69. allClassesLink.style.display = "none";
  70. }
  71. //-->
  72. </script>
  73. </div>
  74. <div>
  75. <ul class="subNavList">
  76. <li>Summary:&nbsp;</li>
  77. <li>Nested&nbsp;|&nbsp;</li>
  78. <li>Field&nbsp;|&nbsp;</li>
  79. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  80. <li><a href="#method.summary">Method</a></li>
  81. </ul>
  82. <ul class="subNavList">
  83. <li>Detail:&nbsp;</li>
  84. <li>Field&nbsp;|&nbsp;</li>
  85. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  86. <li><a href="#method.detail">Method</a></li>
  87. </ul>
  88. </div>
  89. <a name="skip.navbar.top">
  90. <!-- -->
  91. </a></div>
  92. <!-- ========= END OF TOP NAVBAR ========= -->
  93. <!-- ======== START OF CLASS DATA ======== -->
  94. <div class="header">
  95. <div class="subTitle">ui.controller</div>
  96. <h2 title="Class Control" class="title">Class Control</h2>
  97. </div>
  98. <div class="contentContainer">
  99. <ul class="inheritance">
  100. <li>java.lang.Object</li>
  101. <li>
  102. <ul class="inheritance">
  103. <li>ui.controller.Control</li>
  104. </ul>
  105. </li>
  106. </ul>
  107. <div class="description">
  108. <ul class="blockList">
  109. <li class="blockList">
  110. <hr>
  111. <br>
  112. <pre>public class <span class="typeNameLabel">Control</span>
  113. extends java.lang.Object</pre>
  114. <div class="block">The Class represents the controller in the model, controller view Pattern.</div>
  115. <dl>
  116. <dt><span class="simpleTagLabel">Author:</span></dt>
  117. <dd>Gruppe14</dd>
  118. </dl>
  119. </li>
  120. </ul>
  121. </div>
  122. <div class="summary">
  123. <ul class="blockList">
  124. <li class="blockList">
  125. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  126. <ul class="blockList">
  127. <li class="blockList"><a name="constructor.summary">
  128. <!-- -->
  129. </a>
  130. <h3>Constructor Summary</h3>
  131. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  132. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  133. <tr>
  134. <th class="colOne" scope="col">Constructor and Description</th>
  135. </tr>
  136. <tr class="altColor">
  137. <td class="colOne"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#Control-ui.model.Model-">Control</a></span>(<a href="../../ui/model/Model.html" title="class in ui.model">Model</a>&nbsp;model)</code>
  138. <div class="block">Constructor.</div>
  139. </td>
  140. </tr>
  141. </table>
  142. </li>
  143. </ul>
  144. <!-- ========== METHOD SUMMARY =========== -->
  145. <ul class="blockList">
  146. <li class="blockList"><a name="method.summary">
  147. <!-- -->
  148. </a>
  149. <h3>Method Summary</h3>
  150. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  151. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  152. <tr>
  153. <th class="colFirst" scope="col">Modifier and Type</th>
  154. <th class="colLast" scope="col">Method and Description</th>
  155. </tr>
  156. <tr id="i0" class="altColor">
  157. <td class="colFirst"><code>void</code></td>
  158. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addCategory-java.lang.String-">addCategory</a></span>(java.lang.String&nbsp;cat)</code>
  159. <div class="block">Adds New Category into Model.</div>
  160. </td>
  161. </tr>
  162. <tr id="i1" class="rowColor">
  163. <td class="colFirst"><code>void</code></td>
  164. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addEdgeOnCanvas-classes.CpsEdge-">addEdgeOnCanvas</a></span>(<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&nbsp;edge)</code>
  165. <div class="block">Add an edge to the Canvas.</div>
  166. </td>
  167. </tr>
  168. <tr id="i2" class="altColor">
  169. <td class="colFirst"><code>void</code></td>
  170. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addElementCanvasObject-int-java.lang.String-int-float-">addElementCanvasObject</a></span>(int&nbsp;id,
  171. java.lang.String&nbsp;ele,
  172. int&nbsp;amount,
  173. float&nbsp;energy)</code>
  174. <div class="block">Add a new Element into a Object on the Canvas.</div>
  175. </td>
  176. </tr>
  177. <tr id="i3" class="rowColor">
  178. <td class="colFirst"><code>void</code></td>
  179. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addElementCategoryObject-java.lang.String-java.lang.String-java.lang.String-int-float-">addElementCategoryObject</a></span>(java.lang.String&nbsp;catName,
  180. java.lang.String&nbsp;objName,
  181. java.lang.String&nbsp;eleName,
  182. int&nbsp;amount,
  183. float&nbsp;energy)</code>
  184. <div class="block">Add a new Element into a Object in Category.</div>
  185. </td>
  186. </tr>
  187. <tr id="i4" class="altColor">
  188. <td class="colFirst"><code>void</code></td>
  189. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addObject-classes.Category-java.lang.String-java.util.ArrayList-java.lang.String-">addObject</a></span>(<a href="../../classes/Category.html" title="class in classes">Category</a>&nbsp;cat,
  190. java.lang.String&nbsp;obj,
  191. java.util.ArrayList&lt;<a href="../../classes/HolonElement.html" title="class in classes">HolonElement</a>&gt;&nbsp;ele,
  192. java.lang.String&nbsp;img)</code>
  193. <div class="block">Add new Holon Object to a Category.</div>
  194. </td>
  195. </tr>
  196. <tr id="i5" class="rowColor">
  197. <td class="colFirst"><code>void</code></td>
  198. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addObjectCanvas-classes.AbstractCpsObject-">addObjectCanvas</a></span>(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;object)</code>
  199. <div class="block">Add a new Object.</div>
  200. </td>
  201. </tr>
  202. <tr id="i6" class="altColor">
  203. <td class="colFirst"><code>void</code></td>
  204. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addSelectedObject-classes.AbstractCpsObject-">addSelectedObject</a></span>(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;obj)</code>
  205. <div class="block">add an Object to selectedObject.</div>
  206. </td>
  207. </tr>
  208. <tr id="i7" class="rowColor">
  209. <td class="colFirst"><code>void</code></td>
  210. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addSwitch-classes.Category-java.lang.String-">addSwitch</a></span>(<a href="../../classes/Category.html" title="class in classes">Category</a>&nbsp;cat,
  211. java.lang.String&nbsp;obj)</code>
  212. <div class="block">Add new Holon Switch to a Category.</div>
  213. </td>
  214. </tr>
  215. <tr id="i8" class="altColor">
  216. <td class="colFirst"><code>void</code></td>
  217. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addTextToConsole-java.lang.String-">addTextToConsole</a></span>(java.lang.String&nbsp;text)</code>
  218. <div class="block">Print Text on the console in black and font size 12.</div>
  219. </td>
  220. </tr>
  221. <tr id="i9" class="rowColor">
  222. <td class="colFirst"><code>void</code></td>
  223. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addTextToConsole-java.lang.String-java.awt.Color-int-boolean-boolean-boolean-">addTextToConsole</a></span>(java.lang.String&nbsp;text,
  224. java.awt.Color&nbsp;color,
  225. int&nbsp;p,
  226. boolean&nbsp;bold,
  227. boolean&nbsp;italic,
  228. boolean&nbsp;nl)</code>
  229. <div class="block">Getter for selected CpsObject.</div>
  230. </td>
  231. </tr>
  232. <tr id="i10" class="altColor">
  233. <td class="colFirst"><code>void</code></td>
  234. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#addTransformer-classes.Category-java.lang.String-">addTransformer</a></span>(<a href="../../classes/Category.html" title="class in classes">Category</a>&nbsp;cat,
  235. java.lang.String&nbsp;obj)</code>
  236. <div class="block">Add new Holon Transformer to a Category.</div>
  237. </td>
  238. </tr>
  239. <tr id="i11" class="rowColor">
  240. <td class="colFirst"><code>void</code></td>
  241. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#autoSave--">autoSave</a></span>()</code>
  242. <div class="block">make an autosave.</div>
  243. </td>
  244. </tr>
  245. <tr id="i12" class="altColor">
  246. <td class="colFirst"><code>void</code></td>
  247. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#calculateStateForCurrentTimeStep--">calculateStateForCurrentTimeStep</a></span>()</code>
  248. <div class="block">calculates the flow of the edges and the supply for objects for the
  249. current Timestep.</div>
  250. </td>
  251. </tr>
  252. <tr id="i13" class="rowColor">
  253. <td class="colFirst"><code>void</code></td>
  254. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#calculateStateForTimeStep-int-">calculateStateForTimeStep</a></span>(int&nbsp;x)</code>
  255. <div class="block">calculates the flow of the edges and the supply for objects.</div>
  256. </td>
  257. </tr>
  258. <tr id="i14" class="altColor">
  259. <td class="colFirst"><code>void</code></td>
  260. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#clearConsole--">clearConsole</a></span>()</code>
  261. <div class="block">Clears the console.</div>
  262. </td>
  263. </tr>
  264. <tr id="i15" class="rowColor">
  265. <td class="colFirst"><code>void</code></td>
  266. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#copyObjects--">copyObjects</a></span>()</code>
  267. <div class="block">Copy all Selected Objects.</div>
  268. </td>
  269. </tr>
  270. <tr id="i16" class="altColor">
  271. <td class="colFirst"><code>void</code></td>
  272. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#cutObjects--">cutObjects</a></span>()</code>
  273. <div class="block">Cut all Selected Objects.</div>
  274. </td>
  275. </tr>
  276. <tr id="i17" class="rowColor">
  277. <td class="colFirst"><code>void</code></td>
  278. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#delCanvasObject-classes.AbstractCpsObject-">delCanvasObject</a></span>(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;obj)</code>
  279. <div class="block">Deletes an CpsObject on the Canvas and its connections.</div>
  280. </td>
  281. </tr>
  282. <tr id="i18" class="altColor">
  283. <td class="colFirst"><code>void</code></td>
  284. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#deleteCategory-java.lang.String-">deleteCategory</a></span>(java.lang.String&nbsp;cat)</code>
  285. <div class="block">delete a given Category.</div>
  286. </td>
  287. </tr>
  288. <tr id="i19" class="rowColor">
  289. <td class="colFirst"><code>void</code></td>
  290. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#deleteDirectory-java.io.File-">deleteDirectory</a></span>(java.io.File&nbsp;path)</code>
  291. <div class="block">Delete a Directory.</div>
  292. </td>
  293. </tr>
  294. <tr id="i20" class="altColor">
  295. <td class="colFirst"><code>void</code></td>
  296. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#deleteElementCanvas-classes.HolonObject-classes.HolonElement-">deleteElementCanvas</a></span>(<a href="../../classes/HolonObject.html" title="class in classes">HolonObject</a>&nbsp;obj,
  297. <a href="../../classes/HolonElement.html" title="class in classes">HolonElement</a>&nbsp;ele)</code>
  298. <div class="block">deletes a Element from a given Object.</div>
  299. </td>
  300. </tr>
  301. <tr id="i21" class="rowColor">
  302. <td class="colFirst"><code>void</code></td>
  303. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#deleteElementCanvas-int-int-">deleteElementCanvas</a></span>(int&nbsp;id,
  304. int&nbsp;elementid)</code>
  305. <div class="block">deletes a Element from a given Canvas Object.</div>
  306. </td>
  307. </tr>
  308. <tr id="i22" class="altColor">
  309. <td class="colFirst"><code>void</code></td>
  310. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#deleteSelectedObject-classes.AbstractCpsObject-">deleteSelectedObject</a></span>(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;obj)</code>
  311. <div class="block">deletes a selectedObject.</div>
  312. </td>
  313. </tr>
  314. <tr id="i23" class="rowColor">
  315. <td class="colFirst"><code>void</code></td>
  316. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#delObjectCategory-java.lang.String-java.lang.String-">delObjectCategory</a></span>(java.lang.String&nbsp;cat,
  317. java.lang.String&nbsp;obj)</code>
  318. <div class="block">Delete an Object from a Category.</div>
  319. </td>
  320. </tr>
  321. <tr id="i24" class="altColor">
  322. <td class="colFirst"><code><a href="../../ui/model/Model.html" title="class in ui.model">Model</a></code></td>
  323. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#getModel--">getModel</a></span>()</code>
  324. <div class="block">Getter for Model.</div>
  325. </td>
  326. </tr>
  327. <tr id="i25" class="rowColor">
  328. <td class="colFirst"><code>java.lang.String</code></td>
  329. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#getRedoSave--">getRedoSave</a></span>()</code>
  330. <div class="block">Returns the redo save.</div>
  331. </td>
  332. </tr>
  333. <tr id="i26" class="altColor">
  334. <td class="colFirst"><code>int</code></td>
  335. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#getScale--">getScale</a></span>()</code>
  336. <div class="block">Returns SCALE.</div>
  337. </td>
  338. </tr>
  339. <tr id="i27" class="rowColor">
  340. <td class="colFirst"><code>int</code></td>
  341. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#getScaleDiv2--">getScaleDiv2</a></span>()</code>
  342. <div class="block">Returns SCALE Divided by 2.</div>
  343. </td>
  344. </tr>
  345. <tr id="i28" class="altColor">
  346. <td class="colFirst"><code><a href="../../ui/controller/SimulationManager.html" title="class in ui.controller">SimulationManager</a></code></td>
  347. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#getSimManager--">getSimManager</a></span>()</code>
  348. <div class="block">get the Simulation Manager.</div>
  349. </td>
  350. </tr>
  351. <tr id="i29" class="rowColor">
  352. <td class="colFirst"><code>java.lang.String</code></td>
  353. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#getUndoSave--">getUndoSave</a></span>()</code>
  354. <div class="block">Returns the undo save.</div>
  355. </td>
  356. </tr>
  357. <tr id="i30" class="altColor">
  358. <td class="colFirst"><code>void</code></td>
  359. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#initListener-interfaces.CategoryListener-">initListener</a></span>(<a href="../../interfaces/CategoryListener.html" title="interface in interfaces">CategoryListener</a>&nbsp;catLis)</code>
  360. <div class="block">Init the CategoryListener.</div>
  361. </td>
  362. </tr>
  363. <tr id="i31" class="rowColor">
  364. <td class="colFirst"><code>void</code></td>
  365. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#loadFile-java.lang.String-">loadFile</a></span>(java.lang.String&nbsp;path)</code>
  366. <div class="block">Reads the the JSON File and load the state into the Model.</div>
  367. </td>
  368. </tr>
  369. <tr id="i32" class="altColor">
  370. <td class="colFirst"><code>void</code></td>
  371. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#pasteObjects-java.awt.Point-">pasteObjects</a></span>(java.awt.Point&nbsp;point)</code>
  372. <div class="block">Paste all Selected Objects.</div>
  373. </td>
  374. </tr>
  375. <tr id="i33" class="rowColor">
  376. <td class="colFirst"><code>void</code></td>
  377. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#removeEdgesOnCanvas-classes.CpsEdge-">removeEdgesOnCanvas</a></span>(<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&nbsp;edge)</code>
  378. <div class="block">Removes an Edge from the Canvas.</div>
  379. </td>
  380. </tr>
  381. <tr id="i34" class="altColor">
  382. <td class="colFirst"><code>void</code></td>
  383. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#resetCategorys--">resetCategorys</a></span>()</code>
  384. <div class="block">init default category and objects.</div>
  385. </td>
  386. </tr>
  387. <tr id="i35" class="rowColor">
  388. <td class="colFirst"><code>void</code></td>
  389. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#saveFile-java.lang.String-">saveFile</a></span>(java.lang.String&nbsp;path)</code>
  390. <div class="block">Writes the current State of the Modelling into a JSON File which can be
  391. loaded.</div>
  392. </td>
  393. </tr>
  394. <tr id="i36" class="altColor">
  395. <td class="colFirst"><code><a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a></code></td>
  396. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#searchByID-int-">searchByID</a></span>(int&nbsp;id)</code>
  397. <div class="block">Search for Object by ID.</div>
  398. </td>
  399. </tr>
  400. <tr id="i37" class="rowColor">
  401. <td class="colFirst"><code><a href="../../classes/Category.html" title="class in classes">Category</a></code></td>
  402. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#searchCategory-java.lang.String-">searchCategory</a></span>(java.lang.String&nbsp;cat)</code>
  403. <div class="block">search for category.</div>
  404. </td>
  405. </tr>
  406. <tr id="i38" class="altColor">
  407. <td class="colFirst"><code><a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a></code></td>
  408. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#searchCategoryObject-java.lang.String-java.lang.String-">searchCategoryObject</a></span>(java.lang.String&nbsp;category,
  409. java.lang.String&nbsp;object)</code>
  410. <div class="block">Search for Object in a Category.</div>
  411. </td>
  412. </tr>
  413. <tr id="i39" class="rowColor">
  414. <td class="colFirst"><code>void</code></td>
  415. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#setCanvas-ui.view.MyCanvas-">setCanvas</a></span>(<a href="../../ui/view/MyCanvas.html" title="class in ui.view">MyCanvas</a>&nbsp;can)</code>
  416. <div class="block">Set the Canvas.</div>
  417. </td>
  418. </tr>
  419. <tr id="i40" class="altColor">
  420. <td class="colFirst"><code>void</code></td>
  421. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#setClipboardObjects-java.util.ArrayList-">setClipboardObjects</a></span>(java.util.ArrayList&lt;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&gt;&nbsp;list)</code>
  422. <div class="block">Sets the ClipboardObjects.</div>
  423. </td>
  424. </tr>
  425. <tr id="i41" class="rowColor">
  426. <td class="colFirst"><code>void</code></td>
  427. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#setCurIteration-int-">setCurIteration</a></span>(int&nbsp;curit)</code>
  428. <div class="block">sets the current Iteration.</div>
  429. </td>
  430. </tr>
  431. <tr id="i42" class="altColor">
  432. <td class="colFirst"><code>void</code></td>
  433. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#setIsSimulation-boolean-">setIsSimulation</a></span>(boolean&nbsp;b)</code>
  434. <div class="block">Set if its simulating or not.</div>
  435. </td>
  436. </tr>
  437. <tr id="i43" class="rowColor">
  438. <td class="colFirst"><code>void</code></td>
  439. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#setScale-int-">setScale</a></span>(int&nbsp;s)</code>
  440. <div class="block">Changes the value of SCALE and SCALEDIV2.</div>
  441. </td>
  442. </tr>
  443. <tr id="i44" class="altColor">
  444. <td class="colFirst"><code>void</code></td>
  445. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#setSelectedObjectID-int-">setSelectedObjectID</a></span>(int&nbsp;id)</code>
  446. <div class="block">Returns the ID of the selected Object 0 = no Object is selected.</div>
  447. </td>
  448. </tr>
  449. <tr id="i45" class="rowColor">
  450. <td class="colFirst"><code>void</code></td>
  451. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#setSelecteEdge-classes.CpsEdge-">setSelecteEdge</a></span>(<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&nbsp;edge)</code>
  452. <div class="block">Set the selected Edge.</div>
  453. </td>
  454. </tr>
  455. <tr id="i46" class="altColor">
  456. <td class="colFirst"><code>void</code></td>
  457. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/Control.html#setTimerSpeed-int-">setTimerSpeed</a></span>(int&nbsp;t)</code>
  458. <div class="block">Set the timerSpeed.</div>
  459. </td>
  460. </tr>
  461. </table>
  462. <ul class="blockList">
  463. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  464. <!-- -->
  465. </a>
  466. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  467. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  468. </ul>
  469. </li>
  470. </ul>
  471. </li>
  472. </ul>
  473. </div>
  474. <div class="details">
  475. <ul class="blockList">
  476. <li class="blockList">
  477. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  478. <ul class="blockList">
  479. <li class="blockList"><a name="constructor.detail">
  480. <!-- -->
  481. </a>
  482. <h3>Constructor Detail</h3>
  483. <a name="Control-ui.model.Model-">
  484. <!-- -->
  485. </a>
  486. <ul class="blockListLast">
  487. <li class="blockList">
  488. <h4>Control</h4>
  489. <pre>public&nbsp;Control(<a href="../../ui/model/Model.html" title="class in ui.model">Model</a>&nbsp;model)</pre>
  490. <div class="block">Constructor.</div>
  491. <dl>
  492. <dt><span class="paramLabel">Parameters:</span></dt>
  493. <dd><code>model</code> - the Model</dd>
  494. </dl>
  495. </li>
  496. </ul>
  497. </li>
  498. </ul>
  499. <!-- ============ METHOD DETAIL ========== -->
  500. <ul class="blockList">
  501. <li class="blockList"><a name="method.detail">
  502. <!-- -->
  503. </a>
  504. <h3>Method Detail</h3>
  505. <a name="deleteDirectory-java.io.File-">
  506. <!-- -->
  507. </a>
  508. <ul class="blockList">
  509. <li class="blockList">
  510. <h4>deleteDirectory</h4>
  511. <pre>public&nbsp;void&nbsp;deleteDirectory(java.io.File&nbsp;path)</pre>
  512. <div class="block">Delete a Directory.</div>
  513. <dl>
  514. <dt><span class="paramLabel">Parameters:</span></dt>
  515. <dd><code>path</code> - to delete</dd>
  516. </dl>
  517. </li>
  518. </ul>
  519. <a name="searchByID-int-">
  520. <!-- -->
  521. </a>
  522. <ul class="blockList">
  523. <li class="blockList">
  524. <h4>searchByID</h4>
  525. <pre>public&nbsp;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;searchByID(int&nbsp;id)</pre>
  526. <div class="block">Search for Object by ID.</div>
  527. <dl>
  528. <dt><span class="paramLabel">Parameters:</span></dt>
  529. <dd><code>id</code> - the id of the Object</dd>
  530. <dt><span class="returnLabel">Returns:</span></dt>
  531. <dd>the CpsObject</dd>
  532. </dl>
  533. </li>
  534. </ul>
  535. <a name="searchCategoryObject-java.lang.String-java.lang.String-">
  536. <!-- -->
  537. </a>
  538. <ul class="blockList">
  539. <li class="blockList">
  540. <h4>searchCategoryObject</h4>
  541. <pre>public&nbsp;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;searchCategoryObject(java.lang.String&nbsp;category,
  542. java.lang.String&nbsp;object)</pre>
  543. <div class="block">Search for Object in a Category.</div>
  544. <dl>
  545. <dt><span class="paramLabel">Parameters:</span></dt>
  546. <dd><code>category</code> - name of the Category</dd>
  547. <dd><code>object</code> - Name of the Object</dd>
  548. <dt><span class="returnLabel">Returns:</span></dt>
  549. <dd>The Object</dd>
  550. </dl>
  551. </li>
  552. </ul>
  553. <a name="searchCategory-java.lang.String-">
  554. <!-- -->
  555. </a>
  556. <ul class="blockList">
  557. <li class="blockList">
  558. <h4>searchCategory</h4>
  559. <pre>public&nbsp;<a href="../../classes/Category.html" title="class in classes">Category</a>&nbsp;searchCategory(java.lang.String&nbsp;cat)</pre>
  560. <div class="block">search for category.</div>
  561. <dl>
  562. <dt><span class="paramLabel">Parameters:</span></dt>
  563. <dd><code>cat</code> - name of the Category</dd>
  564. <dt><span class="returnLabel">Returns:</span></dt>
  565. <dd>the Category</dd>
  566. </dl>
  567. </li>
  568. </ul>
  569. <a name="resetCategorys--">
  570. <!-- -->
  571. </a>
  572. <ul class="blockList">
  573. <li class="blockList">
  574. <h4>resetCategorys</h4>
  575. <pre>public&nbsp;void&nbsp;resetCategorys()</pre>
  576. <div class="block">init default category and objects.</div>
  577. </li>
  578. </ul>
  579. <a name="addCategory-java.lang.String-">
  580. <!-- -->
  581. </a>
  582. <ul class="blockList">
  583. <li class="blockList">
  584. <h4>addCategory</h4>
  585. <pre>public&nbsp;void&nbsp;addCategory(java.lang.String&nbsp;cat)</pre>
  586. <div class="block">Adds New Category into Model.</div>
  587. <dl>
  588. <dt><span class="paramLabel">Parameters:</span></dt>
  589. <dd><code>cat</code> - name of the new Category</dd>
  590. </dl>
  591. </li>
  592. </ul>
  593. <a name="addObject-classes.Category-java.lang.String-java.util.ArrayList-java.lang.String-">
  594. <!-- -->
  595. </a>
  596. <ul class="blockList">
  597. <li class="blockList">
  598. <h4>addObject</h4>
  599. <pre>public&nbsp;void&nbsp;addObject(<a href="../../classes/Category.html" title="class in classes">Category</a>&nbsp;cat,
  600. java.lang.String&nbsp;obj,
  601. java.util.ArrayList&lt;<a href="../../classes/HolonElement.html" title="class in classes">HolonElement</a>&gt;&nbsp;ele,
  602. java.lang.String&nbsp;img)</pre>
  603. <div class="block">Add new Holon Object to a Category.</div>
  604. <dl>
  605. <dt><span class="paramLabel">Parameters:</span></dt>
  606. <dd><code>cat</code> - Category</dd>
  607. <dd><code>obj</code> - New Object Name</dd>
  608. <dd><code>ele</code> - Array of Elements</dd>
  609. <dd><code>img</code> - the image Path</dd>
  610. </dl>
  611. </li>
  612. </ul>
  613. <a name="addTransformer-classes.Category-java.lang.String-">
  614. <!-- -->
  615. </a>
  616. <ul class="blockList">
  617. <li class="blockList">
  618. <h4>addTransformer</h4>
  619. <pre>public&nbsp;void&nbsp;addTransformer(<a href="../../classes/Category.html" title="class in classes">Category</a>&nbsp;cat,
  620. java.lang.String&nbsp;obj)</pre>
  621. <div class="block">Add new Holon Transformer to a Category.</div>
  622. <dl>
  623. <dt><span class="paramLabel">Parameters:</span></dt>
  624. <dd><code>cat</code> - Category</dd>
  625. <dd><code>obj</code> - New Object Name</dd>
  626. </dl>
  627. </li>
  628. </ul>
  629. <a name="addSwitch-classes.Category-java.lang.String-">
  630. <!-- -->
  631. </a>
  632. <ul class="blockList">
  633. <li class="blockList">
  634. <h4>addSwitch</h4>
  635. <pre>public&nbsp;void&nbsp;addSwitch(<a href="../../classes/Category.html" title="class in classes">Category</a>&nbsp;cat,
  636. java.lang.String&nbsp;obj)</pre>
  637. <div class="block">Add new Holon Switch to a Category.</div>
  638. <dl>
  639. <dt><span class="paramLabel">Parameters:</span></dt>
  640. <dd><code>cat</code> - Category</dd>
  641. <dd><code>obj</code> - New Object Name</dd>
  642. </dl>
  643. </li>
  644. </ul>
  645. <a name="deleteCategory-java.lang.String-">
  646. <!-- -->
  647. </a>
  648. <ul class="blockList">
  649. <li class="blockList">
  650. <h4>deleteCategory</h4>
  651. <pre>public&nbsp;void&nbsp;deleteCategory(java.lang.String&nbsp;cat)</pre>
  652. <div class="block">delete a given Category.</div>
  653. <dl>
  654. <dt><span class="paramLabel">Parameters:</span></dt>
  655. <dd><code>cat</code> - the Category</dd>
  656. </dl>
  657. </li>
  658. </ul>
  659. <a name="delObjectCategory-java.lang.String-java.lang.String-">
  660. <!-- -->
  661. </a>
  662. <ul class="blockList">
  663. <li class="blockList">
  664. <h4>delObjectCategory</h4>
  665. <pre>public&nbsp;void&nbsp;delObjectCategory(java.lang.String&nbsp;cat,
  666. java.lang.String&nbsp;obj)</pre>
  667. <div class="block">Delete an Object from a Category.</div>
  668. <dl>
  669. <dt><span class="paramLabel">Parameters:</span></dt>
  670. <dd><code>cat</code> - the Category</dd>
  671. <dd><code>obj</code> - the Object</dd>
  672. </dl>
  673. </li>
  674. </ul>
  675. <a name="deleteSelectedObject-classes.AbstractCpsObject-">
  676. <!-- -->
  677. </a>
  678. <ul class="blockList">
  679. <li class="blockList">
  680. <h4>deleteSelectedObject</h4>
  681. <pre>public&nbsp;void&nbsp;deleteSelectedObject(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;obj)</pre>
  682. <div class="block">deletes a selectedObject.</div>
  683. <dl>
  684. <dt><span class="paramLabel">Parameters:</span></dt>
  685. <dd><code>obj</code> - Cpsobject</dd>
  686. </dl>
  687. </li>
  688. </ul>
  689. <a name="addSelectedObject-classes.AbstractCpsObject-">
  690. <!-- -->
  691. </a>
  692. <ul class="blockList">
  693. <li class="blockList">
  694. <h4>addSelectedObject</h4>
  695. <pre>public&nbsp;void&nbsp;addSelectedObject(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;obj)</pre>
  696. <div class="block">add an Object to selectedObject.</div>
  697. <dl>
  698. <dt><span class="paramLabel">Parameters:</span></dt>
  699. <dd><code>obj</code> - AbstractCpsobject</dd>
  700. </dl>
  701. </li>
  702. </ul>
  703. <a name="addEdgeOnCanvas-classes.CpsEdge-">
  704. <!-- -->
  705. </a>
  706. <ul class="blockList">
  707. <li class="blockList">
  708. <h4>addEdgeOnCanvas</h4>
  709. <pre>public&nbsp;void&nbsp;addEdgeOnCanvas(<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&nbsp;edge)</pre>
  710. <div class="block">Add an edge to the Canvas.</div>
  711. <dl>
  712. <dt><span class="paramLabel">Parameters:</span></dt>
  713. <dd><code>edge</code> - the edge</dd>
  714. </dl>
  715. </li>
  716. </ul>
  717. <a name="removeEdgesOnCanvas-classes.CpsEdge-">
  718. <!-- -->
  719. </a>
  720. <ul class="blockList">
  721. <li class="blockList">
  722. <h4>removeEdgesOnCanvas</h4>
  723. <pre>public&nbsp;void&nbsp;removeEdgesOnCanvas(<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&nbsp;edge)</pre>
  724. <div class="block">Removes an Edge from the Canvas.</div>
  725. <dl>
  726. <dt><span class="paramLabel">Parameters:</span></dt>
  727. <dd><code>edge</code> - the edge to remove</dd>
  728. </dl>
  729. </li>
  730. </ul>
  731. <a name="setSelecteEdge-classes.CpsEdge-">
  732. <!-- -->
  733. </a>
  734. <ul class="blockList">
  735. <li class="blockList">
  736. <h4>setSelecteEdge</h4>
  737. <pre>public&nbsp;void&nbsp;setSelecteEdge(<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&nbsp;edge)</pre>
  738. <div class="block">Set the selected Edge.</div>
  739. <dl>
  740. <dt><span class="paramLabel">Parameters:</span></dt>
  741. <dd><code>edge</code> - that is selected</dd>
  742. </dl>
  743. </li>
  744. </ul>
  745. <a name="addObjectCanvas-classes.AbstractCpsObject-">
  746. <!-- -->
  747. </a>
  748. <ul class="blockList">
  749. <li class="blockList">
  750. <h4>addObjectCanvas</h4>
  751. <pre>public&nbsp;void&nbsp;addObjectCanvas(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;object)</pre>
  752. <div class="block">Add a new Object.</div>
  753. <dl>
  754. <dt><span class="paramLabel">Parameters:</span></dt>
  755. <dd><code>object</code> - the Object</dd>
  756. </dl>
  757. </li>
  758. </ul>
  759. <a name="setSelectedObjectID-int-">
  760. <!-- -->
  761. </a>
  762. <ul class="blockList">
  763. <li class="blockList">
  764. <h4>setSelectedObjectID</h4>
  765. <pre>public&nbsp;void&nbsp;setSelectedObjectID(int&nbsp;id)</pre>
  766. <div class="block">Returns the ID of the selected Object 0 = no Object is selected.</div>
  767. <dl>
  768. <dt><span class="paramLabel">Parameters:</span></dt>
  769. <dd><code>id</code> - the ID of the selected Object</dd>
  770. </dl>
  771. </li>
  772. </ul>
  773. <a name="delCanvasObject-classes.AbstractCpsObject-">
  774. <!-- -->
  775. </a>
  776. <ul class="blockList">
  777. <li class="blockList">
  778. <h4>delCanvasObject</h4>
  779. <pre>public&nbsp;void&nbsp;delCanvasObject(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;obj)</pre>
  780. <div class="block">Deletes an CpsObject on the Canvas and its connections.</div>
  781. <dl>
  782. <dt><span class="paramLabel">Parameters:</span></dt>
  783. <dd><code>obj</code> - AbstractCpsObject</dd>
  784. </dl>
  785. </li>
  786. </ul>
  787. <a name="addElementCanvasObject-int-java.lang.String-int-float-">
  788. <!-- -->
  789. </a>
  790. <ul class="blockList">
  791. <li class="blockList">
  792. <h4>addElementCanvasObject</h4>
  793. <pre>public&nbsp;void&nbsp;addElementCanvasObject(int&nbsp;id,
  794. java.lang.String&nbsp;ele,
  795. int&nbsp;amount,
  796. float&nbsp;energy)</pre>
  797. <div class="block">Add a new Element into a Object on the Canvas.</div>
  798. <dl>
  799. <dt><span class="paramLabel">Parameters:</span></dt>
  800. <dd><code>id</code> - the Object ID</dd>
  801. <dd><code>ele</code> - the Name of the Element</dd>
  802. <dd><code>amount</code> - the Amount</dd>
  803. <dd><code>energy</code> - the Energy</dd>
  804. </dl>
  805. </li>
  806. </ul>
  807. <a name="addElementCategoryObject-java.lang.String-java.lang.String-java.lang.String-int-float-">
  808. <!-- -->
  809. </a>
  810. <ul class="blockList">
  811. <li class="blockList">
  812. <h4>addElementCategoryObject</h4>
  813. <pre>public&nbsp;void&nbsp;addElementCategoryObject(java.lang.String&nbsp;catName,
  814. java.lang.String&nbsp;objName,
  815. java.lang.String&nbsp;eleName,
  816. int&nbsp;amount,
  817. float&nbsp;energy)</pre>
  818. <div class="block">Add a new Element into a Object in Category.</div>
  819. <dl>
  820. <dt><span class="paramLabel">Parameters:</span></dt>
  821. <dd><code>catName</code> - the Category</dd>
  822. <dd><code>objName</code> - the Object</dd>
  823. <dd><code>eleName</code> - the Element Name</dd>
  824. <dd><code>amount</code> - the amount</dd>
  825. <dd><code>energy</code> - the Energy</dd>
  826. </dl>
  827. </li>
  828. </ul>
  829. <a name="deleteElementCanvas-int-int-">
  830. <!-- -->
  831. </a>
  832. <ul class="blockList">
  833. <li class="blockList">
  834. <h4>deleteElementCanvas</h4>
  835. <pre>public&nbsp;void&nbsp;deleteElementCanvas(int&nbsp;id,
  836. int&nbsp;elementid)</pre>
  837. <div class="block">deletes a Element from a given Canvas Object.</div>
  838. <dl>
  839. <dt><span class="paramLabel">Parameters:</span></dt>
  840. <dd><code>id</code> - the ID</dd>
  841. <dd><code>elementid</code> - the Element ID</dd>
  842. </dl>
  843. </li>
  844. </ul>
  845. <a name="deleteElementCanvas-classes.HolonObject-classes.HolonElement-">
  846. <!-- -->
  847. </a>
  848. <ul class="blockList">
  849. <li class="blockList">
  850. <h4>deleteElementCanvas</h4>
  851. <pre>public&nbsp;void&nbsp;deleteElementCanvas(<a href="../../classes/HolonObject.html" title="class in classes">HolonObject</a>&nbsp;obj,
  852. <a href="../../classes/HolonElement.html" title="class in classes">HolonElement</a>&nbsp;ele)</pre>
  853. <div class="block">deletes a Element from a given Object.</div>
  854. <dl>
  855. <dt><span class="paramLabel">Parameters:</span></dt>
  856. <dd><code>obj</code> - the Oject</dd>
  857. <dd><code>ele</code> - the Element</dd>
  858. </dl>
  859. </li>
  860. </ul>
  861. <a name="setClipboardObjects-java.util.ArrayList-">
  862. <!-- -->
  863. </a>
  864. <ul class="blockList">
  865. <li class="blockList">
  866. <h4>setClipboardObjects</h4>
  867. <pre>public&nbsp;void&nbsp;setClipboardObjects(java.util.ArrayList&lt;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&gt;&nbsp;list)</pre>
  868. <div class="block">Sets the ClipboardObjects.</div>
  869. <dl>
  870. <dt><span class="paramLabel">Parameters:</span></dt>
  871. <dd><code>list</code> - Array of Objects</dd>
  872. </dl>
  873. </li>
  874. </ul>
  875. <a name="getScale--">
  876. <!-- -->
  877. </a>
  878. <ul class="blockList">
  879. <li class="blockList">
  880. <h4>getScale</h4>
  881. <pre>public&nbsp;int&nbsp;getScale()</pre>
  882. <div class="block">Returns SCALE.</div>
  883. <dl>
  884. <dt><span class="returnLabel">Returns:</span></dt>
  885. <dd>SCALE</dd>
  886. </dl>
  887. </li>
  888. </ul>
  889. <a name="getScaleDiv2--">
  890. <!-- -->
  891. </a>
  892. <ul class="blockList">
  893. <li class="blockList">
  894. <h4>getScaleDiv2</h4>
  895. <pre>public&nbsp;int&nbsp;getScaleDiv2()</pre>
  896. <div class="block">Returns SCALE Divided by 2.</div>
  897. <dl>
  898. <dt><span class="returnLabel">Returns:</span></dt>
  899. <dd>SCALE Divided by 2</dd>
  900. </dl>
  901. </li>
  902. </ul>
  903. <a name="setScale-int-">
  904. <!-- -->
  905. </a>
  906. <ul class="blockList">
  907. <li class="blockList">
  908. <h4>setScale</h4>
  909. <pre>public&nbsp;void&nbsp;setScale(int&nbsp;s)</pre>
  910. <div class="block">Changes the value of SCALE and SCALEDIV2.</div>
  911. <dl>
  912. <dt><span class="paramLabel">Parameters:</span></dt>
  913. <dd><code>s</code> - Scale</dd>
  914. </dl>
  915. </li>
  916. </ul>
  917. <a name="setCurIteration-int-">
  918. <!-- -->
  919. </a>
  920. <ul class="blockList">
  921. <li class="blockList">
  922. <h4>setCurIteration</h4>
  923. <pre>public&nbsp;void&nbsp;setCurIteration(int&nbsp;curit)</pre>
  924. <div class="block">sets the current Iteration.</div>
  925. <dl>
  926. <dt><span class="paramLabel">Parameters:</span></dt>
  927. <dd><code>curit</code> - the current Iteration</dd>
  928. </dl>
  929. </li>
  930. </ul>
  931. <a name="saveFile-java.lang.String-">
  932. <!-- -->
  933. </a>
  934. <ul class="blockList">
  935. <li class="blockList">
  936. <h4>saveFile</h4>
  937. <pre>public&nbsp;void&nbsp;saveFile(java.lang.String&nbsp;path)
  938. throws java.io.IOException</pre>
  939. <div class="block">Writes the current State of the Modelling into a JSON File which can be
  940. loaded.</div>
  941. <dl>
  942. <dt><span class="paramLabel">Parameters:</span></dt>
  943. <dd><code>path</code> - the Path</dd>
  944. <dt><span class="throwsLabel">Throws:</span></dt>
  945. <dd><code>java.io.IOException</code> - exception</dd>
  946. </dl>
  947. </li>
  948. </ul>
  949. <a name="loadFile-java.lang.String-">
  950. <!-- -->
  951. </a>
  952. <ul class="blockList">
  953. <li class="blockList">
  954. <h4>loadFile</h4>
  955. <pre>public&nbsp;void&nbsp;loadFile(java.lang.String&nbsp;path)
  956. throws java.io.IOException</pre>
  957. <div class="block">Reads the the JSON File and load the state into the Model.</div>
  958. <dl>
  959. <dt><span class="paramLabel">Parameters:</span></dt>
  960. <dd><code>path</code> - the Path</dd>
  961. <dt><span class="throwsLabel">Throws:</span></dt>
  962. <dd><code>java.io.IOException</code> - exception</dd>
  963. </dl>
  964. </li>
  965. </ul>
  966. <a name="initListener-interfaces.CategoryListener-">
  967. <!-- -->
  968. </a>
  969. <ul class="blockList">
  970. <li class="blockList">
  971. <h4>initListener</h4>
  972. <pre>public&nbsp;void&nbsp;initListener(<a href="../../interfaces/CategoryListener.html" title="interface in interfaces">CategoryListener</a>&nbsp;catLis)</pre>
  973. <div class="block">Init the CategoryListener.</div>
  974. <dl>
  975. <dt><span class="paramLabel">Parameters:</span></dt>
  976. <dd><code>catLis</code> - the CategoryListener</dd>
  977. </dl>
  978. </li>
  979. </ul>
  980. <a name="calculateStateForCurrentTimeStep--">
  981. <!-- -->
  982. </a>
  983. <ul class="blockList">
  984. <li class="blockList">
  985. <h4>calculateStateForCurrentTimeStep</h4>
  986. <pre>public&nbsp;void&nbsp;calculateStateForCurrentTimeStep()</pre>
  987. <div class="block">calculates the flow of the edges and the supply for objects for the
  988. current Timestep.</div>
  989. </li>
  990. </ul>
  991. <a name="calculateStateForTimeStep-int-">
  992. <!-- -->
  993. </a>
  994. <ul class="blockList">
  995. <li class="blockList">
  996. <h4>calculateStateForTimeStep</h4>
  997. <pre>public&nbsp;void&nbsp;calculateStateForTimeStep(int&nbsp;x)</pre>
  998. <div class="block">calculates the flow of the edges and the supply for objects.</div>
  999. <dl>
  1000. <dt><span class="paramLabel">Parameters:</span></dt>
  1001. <dd><code>x</code> - current Iteration</dd>
  1002. </dl>
  1003. </li>
  1004. </ul>
  1005. <a name="setCanvas-ui.view.MyCanvas-">
  1006. <!-- -->
  1007. </a>
  1008. <ul class="blockList">
  1009. <li class="blockList">
  1010. <h4>setCanvas</h4>
  1011. <pre>public&nbsp;void&nbsp;setCanvas(<a href="../../ui/view/MyCanvas.html" title="class in ui.view">MyCanvas</a>&nbsp;can)</pre>
  1012. <div class="block">Set the Canvas.</div>
  1013. <dl>
  1014. <dt><span class="paramLabel">Parameters:</span></dt>
  1015. <dd><code>can</code> - the Canvas</dd>
  1016. </dl>
  1017. </li>
  1018. </ul>
  1019. <a name="autoSave--">
  1020. <!-- -->
  1021. </a>
  1022. <ul class="blockList">
  1023. <li class="blockList">
  1024. <h4>autoSave</h4>
  1025. <pre>public&nbsp;void&nbsp;autoSave()
  1026. throws java.io.IOException</pre>
  1027. <div class="block">make an autosave.</div>
  1028. <dl>
  1029. <dt><span class="throwsLabel">Throws:</span></dt>
  1030. <dd><code>java.io.IOException</code> - Exception</dd>
  1031. </dl>
  1032. </li>
  1033. </ul>
  1034. <a name="getUndoSave--">
  1035. <!-- -->
  1036. </a>
  1037. <ul class="blockList">
  1038. <li class="blockList">
  1039. <h4>getUndoSave</h4>
  1040. <pre>public&nbsp;java.lang.String&nbsp;getUndoSave()</pre>
  1041. <div class="block">Returns the undo save.</div>
  1042. <dl>
  1043. <dt><span class="returnLabel">Returns:</span></dt>
  1044. <dd>the undo save</dd>
  1045. </dl>
  1046. </li>
  1047. </ul>
  1048. <a name="getRedoSave--">
  1049. <!-- -->
  1050. </a>
  1051. <ul class="blockList">
  1052. <li class="blockList">
  1053. <h4>getRedoSave</h4>
  1054. <pre>public&nbsp;java.lang.String&nbsp;getRedoSave()</pre>
  1055. <div class="block">Returns the redo save.</div>
  1056. <dl>
  1057. <dt><span class="returnLabel">Returns:</span></dt>
  1058. <dd>the redo save</dd>
  1059. </dl>
  1060. </li>
  1061. </ul>
  1062. <a name="copyObjects--">
  1063. <!-- -->
  1064. </a>
  1065. <ul class="blockList">
  1066. <li class="blockList">
  1067. <h4>copyObjects</h4>
  1068. <pre>public&nbsp;void&nbsp;copyObjects()</pre>
  1069. <div class="block">Copy all Selected Objects.</div>
  1070. </li>
  1071. </ul>
  1072. <a name="pasteObjects-java.awt.Point-">
  1073. <!-- -->
  1074. </a>
  1075. <ul class="blockList">
  1076. <li class="blockList">
  1077. <h4>pasteObjects</h4>
  1078. <pre>public&nbsp;void&nbsp;pasteObjects(java.awt.Point&nbsp;point)</pre>
  1079. <div class="block">Paste all Selected Objects.</div>
  1080. <dl>
  1081. <dt><span class="paramLabel">Parameters:</span></dt>
  1082. <dd><code>point</code> - the mouse Position</dd>
  1083. </dl>
  1084. </li>
  1085. </ul>
  1086. <a name="cutObjects--">
  1087. <!-- -->
  1088. </a>
  1089. <ul class="blockList">
  1090. <li class="blockList">
  1091. <h4>cutObjects</h4>
  1092. <pre>public&nbsp;void&nbsp;cutObjects()</pre>
  1093. <div class="block">Cut all Selected Objects.</div>
  1094. </li>
  1095. </ul>
  1096. <a name="getModel--">
  1097. <!-- -->
  1098. </a>
  1099. <ul class="blockList">
  1100. <li class="blockList">
  1101. <h4>getModel</h4>
  1102. <pre>public&nbsp;<a href="../../ui/model/Model.html" title="class in ui.model">Model</a>&nbsp;getModel()</pre>
  1103. <div class="block">Getter for Model.</div>
  1104. <dl>
  1105. <dt><span class="returnLabel">Returns:</span></dt>
  1106. <dd>the Model</dd>
  1107. </dl>
  1108. </li>
  1109. </ul>
  1110. <a name="getSimManager--">
  1111. <!-- -->
  1112. </a>
  1113. <ul class="blockList">
  1114. <li class="blockList">
  1115. <h4>getSimManager</h4>
  1116. <pre>public&nbsp;<a href="../../ui/controller/SimulationManager.html" title="class in ui.controller">SimulationManager</a>&nbsp;getSimManager()</pre>
  1117. <div class="block">get the Simulation Manager.</div>
  1118. <dl>
  1119. <dt><span class="returnLabel">Returns:</span></dt>
  1120. <dd>the Simulation Manager</dd>
  1121. </dl>
  1122. </li>
  1123. </ul>
  1124. <a name="addTextToConsole-java.lang.String-java.awt.Color-int-boolean-boolean-boolean-">
  1125. <!-- -->
  1126. </a>
  1127. <ul class="blockList">
  1128. <li class="blockList">
  1129. <h4>addTextToConsole</h4>
  1130. <pre>public&nbsp;void&nbsp;addTextToConsole(java.lang.String&nbsp;text,
  1131. java.awt.Color&nbsp;color,
  1132. int&nbsp;p,
  1133. boolean&nbsp;bold,
  1134. boolean&nbsp;italic,
  1135. boolean&nbsp;nl)</pre>
  1136. <div class="block">Getter for selected CpsObject.</div>
  1137. <dl>
  1138. <dt><span class="paramLabel">Parameters:</span></dt>
  1139. <dd><code>text</code> - String the Text</dd>
  1140. <dd><code>color</code> - the color of the Text</dd>
  1141. <dd><code>p</code> - size of the Text</dd>
  1142. <dd><code>bold</code> - bold or not</dd>
  1143. <dd><code>italic</code> - italic or not</dd>
  1144. <dd><code>nl</code> - new line or not</dd>
  1145. </dl>
  1146. </li>
  1147. </ul>
  1148. <a name="addTextToConsole-java.lang.String-">
  1149. <!-- -->
  1150. </a>
  1151. <ul class="blockList">
  1152. <li class="blockList">
  1153. <h4>addTextToConsole</h4>
  1154. <pre>public&nbsp;void&nbsp;addTextToConsole(java.lang.String&nbsp;text)</pre>
  1155. <div class="block">Print Text on the console in black and font size 12.</div>
  1156. <dl>
  1157. <dt><span class="paramLabel">Parameters:</span></dt>
  1158. <dd><code>text</code> - String the Text</dd>
  1159. </dl>
  1160. </li>
  1161. </ul>
  1162. <a name="clearConsole--">
  1163. <!-- -->
  1164. </a>
  1165. <ul class="blockList">
  1166. <li class="blockList">
  1167. <h4>clearConsole</h4>
  1168. <pre>public&nbsp;void&nbsp;clearConsole()</pre>
  1169. <div class="block">Clears the console.</div>
  1170. </li>
  1171. </ul>
  1172. <a name="setTimerSpeed-int-">
  1173. <!-- -->
  1174. </a>
  1175. <ul class="blockList">
  1176. <li class="blockList">
  1177. <h4>setTimerSpeed</h4>
  1178. <pre>public&nbsp;void&nbsp;setTimerSpeed(int&nbsp;t)</pre>
  1179. <div class="block">Set the timerSpeed.</div>
  1180. <dl>
  1181. <dt><span class="paramLabel">Parameters:</span></dt>
  1182. <dd><code>t</code> - interval in ms</dd>
  1183. </dl>
  1184. </li>
  1185. </ul>
  1186. <a name="setIsSimulation-boolean-">
  1187. <!-- -->
  1188. </a>
  1189. <ul class="blockListLast">
  1190. <li class="blockList">
  1191. <h4>setIsSimulation</h4>
  1192. <pre>public&nbsp;void&nbsp;setIsSimulation(boolean&nbsp;b)</pre>
  1193. <div class="block">Set if its simulating or not.</div>
  1194. <dl>
  1195. <dt><span class="paramLabel">Parameters:</span></dt>
  1196. <dd><code>b</code> - isSimulation</dd>
  1197. </dl>
  1198. </li>
  1199. </ul>
  1200. </li>
  1201. </ul>
  1202. </li>
  1203. </ul>
  1204. </div>
  1205. </div>
  1206. <!-- ========= END OF CLASS DATA ========= -->
  1207. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  1208. <div class="bottomNav"><a name="navbar.bottom">
  1209. <!-- -->
  1210. </a>
  1211. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  1212. <a name="navbar.bottom.firstrow">
  1213. <!-- -->
  1214. </a>
  1215. <ul class="navList" title="Navigation">
  1216. <li><a href="../../overview-summary.html">Overview</a></li>
  1217. <li><a href="package-summary.html">Package</a></li>
  1218. <li class="navBarCell1Rev">Class</li>
  1219. <li><a href="class-use/Control.html">Use</a></li>
  1220. <li><a href="package-tree.html">Tree</a></li>
  1221. <li><a href="../../deprecated-list.html">Deprecated</a></li>
  1222. <li><a href="../../index-files/index-1.html">Index</a></li>
  1223. <li><a href="../../help-doc.html">Help</a></li>
  1224. </ul>
  1225. </div>
  1226. <div class="subNav">
  1227. <ul class="navList">
  1228. <li><a href="../../ui/controller/ConsoleController.html" title="class in ui.controller"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  1229. <li><a href="../../ui/controller/GlobalController.html" title="class in ui.controller"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  1230. </ul>
  1231. <ul class="navList">
  1232. <li><a href="../../index.html?ui/controller/Control.html" target="_top">Frames</a></li>
  1233. <li><a href="Control.html" target="_top">No&nbsp;Frames</a></li>
  1234. </ul>
  1235. <ul class="navList" id="allclasses_navbar_bottom">
  1236. <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  1237. </ul>
  1238. <div>
  1239. <script type="text/javascript"><!--
  1240. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  1241. if(window==top) {
  1242. allClassesLink.style.display = "block";
  1243. }
  1244. else {
  1245. allClassesLink.style.display = "none";
  1246. }
  1247. //-->
  1248. </script>
  1249. </div>
  1250. <div>
  1251. <ul class="subNavList">
  1252. <li>Summary:&nbsp;</li>
  1253. <li>Nested&nbsp;|&nbsp;</li>
  1254. <li>Field&nbsp;|&nbsp;</li>
  1255. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  1256. <li><a href="#method.summary">Method</a></li>
  1257. </ul>
  1258. <ul class="subNavList">
  1259. <li>Detail:&nbsp;</li>
  1260. <li>Field&nbsp;|&nbsp;</li>
  1261. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  1262. <li><a href="#method.detail">Method</a></li>
  1263. </ul>
  1264. </div>
  1265. <a name="skip.navbar.bottom">
  1266. <!-- -->
  1267. </a></div>
  1268. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  1269. </body>
  1270. </html>