SimulationManager.html 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  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>SimulationManager</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="SimulationManager";
  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};
  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/SimulationManager.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/ObjectController.html" title="class in ui.controller"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../ui/controller/StoreController.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/SimulationManager.html" target="_top">Frames</a></li>
  57. <li><a href="SimulationManager.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 SimulationManager" class="title">Class SimulationManager</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.SimulationManager</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">SimulationManager</span>
  113. extends java.lang.Object</pre>
  114. <div class="block">Controller for Simulation.</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/SimulationManager.html#SimulationManager-ui.model.Model-">SimulationManager</a></span>(<a href="../../ui/model/Model.html" title="class in ui.model">Model</a>&nbsp;m)</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><a href="../../classes/SubNet.html" title="class in classes">SubNet</a></code></td>
  158. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#buildSubNet-classes.AbstractCpsObject-java.util.ArrayList-classes.SubNet-">buildSubNet</a></span>(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;cps,
  159. java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;visited,
  160. <a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN)</code>
  161. <div class="block">recursivly generates a subnet of all objects, that one specific object is
  162. connected to.</div>
  163. </td>
  164. </tr>
  165. <tr id="i1" class="rowColor">
  166. <td class="colFirst"><code>float</code></td>
  167. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#calculateEnergy-java.lang.String-classes.SubNet-int-">calculateEnergy</a></span>(java.lang.String&nbsp;type,
  168. <a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN,
  169. int&nbsp;x)</code>
  170. <div class="block">calculates the energy of either all producers or consumers.</div>
  171. </td>
  172. </tr>
  173. <tr id="i2" class="altColor">
  174. <td class="colFirst"><code>float</code></td>
  175. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#calculateMinimumEnergy-classes.SubNet-int-">calculateMinimumEnergy</a></span>(<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN,
  176. int&nbsp;x)</code>
  177. <div class="block">Calculate the Minimum Energy.</div>
  178. </td>
  179. </tr>
  180. <tr id="i3" class="rowColor">
  181. <td class="colFirst"><code>void</code></td>
  182. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#calculateStateForTimeStep-int-">calculateStateForTimeStep</a></span>(int&nbsp;x)</code>
  183. <div class="block">calculates the flow of the edges and the supply for objects.</div>
  184. </td>
  185. </tr>
  186. <tr id="i4" class="altColor">
  187. <td class="colFirst"><code>void</code></td>
  188. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#cleanObjectsToHandle--">cleanObjectsToHandle</a></span>()</code>
  189. <div class="block">ensures that objectsToHandle only contains HolonObjects.</div>
  190. </td>
  191. </tr>
  192. <tr id="i5" class="rowColor">
  193. <td class="colFirst"><code>void</code></td>
  194. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#copyObjects-java.util.ArrayList-">copyObjects</a></span>(java.util.ArrayList&lt;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&gt;&nbsp;toCopy)</code>
  195. <div class="block">copies the data of an array of Objects.</div>
  196. </td>
  197. </tr>
  198. <tr id="i6" class="altColor">
  199. <td class="colFirst"><code>java.lang.String</code></td>
  200. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#getString-java.util.ArrayList-">getString</a></span>(java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;tags)</code>
  201. <div class="block">Get String.</div>
  202. </td>
  203. </tr>
  204. <tr id="i7" class="rowColor">
  205. <td class="colFirst"><code>java.util.ArrayList&lt;<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&gt;</code></td>
  206. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#getSubNets--">getSubNets</a></span>()</code>
  207. <div class="block">Get all Subnets.</div>
  208. </td>
  209. </tr>
  210. <tr id="i8" class="altColor">
  211. <td class="colFirst"><code>boolean</code></td>
  212. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#legitState-classes.AbstractCpsObject-classes.AbstractCpsObject-">legitState</a></span>(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;neighbor,
  213. <a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;current)</code>
  214. <div class="block">is the Switch in a legitimate State.</div>
  215. </td>
  216. </tr>
  217. <tr id="i9" class="rowColor">
  218. <td class="colFirst"><code>java.util.ArrayList&lt;java.lang.Integer&gt;</code></td>
  219. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#mergeLists-java.util.ArrayList-java.util.ArrayList-">mergeLists</a></span>(java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;a,
  220. java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;b)</code>
  221. <div class="block">Merge the Lists.</div>
  222. </td>
  223. </tr>
  224. <tr id="i10" class="altColor">
  225. <td class="colFirst"><code>void</code></td>
  226. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#printNet--">printNet</a></span>()</code>
  227. <div class="block">Prints the Components auf all subnets.</div>
  228. </td>
  229. </tr>
  230. <tr id="i11" class="rowColor">
  231. <td class="colFirst"><code>void</code></td>
  232. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#printNodes-java.util.ArrayList-">printNodes</a></span>(java.util.ArrayList&lt;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&gt;&nbsp;nodes)</code>
  233. <div class="block">Print the nodes.</div>
  234. </td>
  235. </tr>
  236. <tr id="i12" class="altColor">
  237. <td class="colFirst"><code>void</code></td>
  238. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#removeFromToHandle-int-">removeFromToHandle</a></span>(int&nbsp;id)</code>
  239. <div class="block">removes an Object that already has been handled with.</div>
  240. </td>
  241. </tr>
  242. <tr id="i13" class="rowColor">
  243. <td class="colFirst"><code>void</code></td>
  244. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#reset--">reset</a></span>()</code>
  245. <div class="block">Reset all Data to the current state of the Model.</div>
  246. </td>
  247. </tr>
  248. <tr id="i14" class="altColor">
  249. <td class="colFirst"><code>void</code></td>
  250. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#resetConnections-classes.AbstractCpsObject-java.util.ArrayList-java.util.ArrayList-">resetConnections</a></span>(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;cps,
  251. java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;visitedObj,
  252. java.util.ArrayList&lt;<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&gt;&nbsp;visitedEdges)</code>
  253. <div class="block">Reset the Connection.</div>
  254. </td>
  255. </tr>
  256. <tr id="i15" class="rowColor">
  257. <td class="colFirst"><code>void</code></td>
  258. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#searchForSubNets--">searchForSubNets</a></span>()</code>
  259. <div class="block">generates all subNets from all objectsToHandle.</div>
  260. </td>
  261. </tr>
  262. <tr id="i16" class="altColor">
  263. <td class="colFirst"><code>void</code></td>
  264. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#setCanvas-ui.view.MyCanvas-">setCanvas</a></span>(<a href="../../ui/view/MyCanvas.html" title="class in ui.view">MyCanvas</a>&nbsp;can)</code>
  265. <div class="block">Set the Canvas.</div>
  266. </td>
  267. </tr>
  268. <tr id="i17" class="rowColor">
  269. <td class="colFirst"><code>void</code></td>
  270. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#setFlow-classes.SubNet-boolean-">setFlow</a></span>(<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN,
  271. boolean&nbsp;simulation)</code>
  272. <div class="block">Sets the Flow.</div>
  273. </td>
  274. </tr>
  275. <tr id="i18" class="altColor">
  276. <td class="colFirst"><code>void</code></td>
  277. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#setFlowModelation-classes.SubNet-">setFlowModelation</a></span>(<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN)</code>
  278. <div class="block">set the Flow Modelation.</div>
  279. </td>
  280. </tr>
  281. <tr id="i19" class="rowColor">
  282. <td class="colFirst"><code>void</code></td>
  283. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#setFlowSimRec-java.util.ArrayList-int-">setFlowSimRec</a></span>(java.util.ArrayList&lt;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&gt;&nbsp;nodes,
  284. int&nbsp;iter)</code>
  285. <div class="block">Set Flow Rimulation Rec.</div>
  286. </td>
  287. </tr>
  288. <tr id="i20" class="altColor">
  289. <td class="colFirst"><code>void</code></td>
  290. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#setFlowSimulation-classes.SubNet-">setFlowSimulation</a></span>(<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN)</code>
  291. <div class="block">Set Flow Simulation.</div>
  292. </td>
  293. </tr>
  294. <tr id="i21" class="rowColor">
  295. <td class="colFirst"><code>void</code></td>
  296. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/SimulationManager.html#setPseudoTags-java.util.ArrayList-">setPseudoTags</a></span>(java.util.ArrayList&lt;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&gt;&nbsp;nodes)</code>
  297. <div class="block">Set the Pseudo Tags.</div>
  298. </td>
  299. </tr>
  300. </table>
  301. <ul class="blockList">
  302. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  303. <!-- -->
  304. </a>
  305. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  306. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  307. </ul>
  308. </li>
  309. </ul>
  310. </li>
  311. </ul>
  312. </div>
  313. <div class="details">
  314. <ul class="blockList">
  315. <li class="blockList">
  316. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  317. <ul class="blockList">
  318. <li class="blockList"><a name="constructor.detail">
  319. <!-- -->
  320. </a>
  321. <h3>Constructor Detail</h3>
  322. <a name="SimulationManager-ui.model.Model-">
  323. <!-- -->
  324. </a>
  325. <ul class="blockListLast">
  326. <li class="blockList">
  327. <h4>SimulationManager</h4>
  328. <pre>public&nbsp;SimulationManager(<a href="../../ui/model/Model.html" title="class in ui.model">Model</a>&nbsp;m)</pre>
  329. <div class="block">Constructor.</div>
  330. <dl>
  331. <dt><span class="paramLabel">Parameters:</span></dt>
  332. <dd><code>m</code> - Model</dd>
  333. </dl>
  334. </li>
  335. </ul>
  336. </li>
  337. </ul>
  338. <!-- ============ METHOD DETAIL ========== -->
  339. <ul class="blockList">
  340. <li class="blockList"><a name="method.detail">
  341. <!-- -->
  342. </a>
  343. <h3>Method Detail</h3>
  344. <a name="calculateStateForTimeStep-int-">
  345. <!-- -->
  346. </a>
  347. <ul class="blockList">
  348. <li class="blockList">
  349. <h4>calculateStateForTimeStep</h4>
  350. <pre>public&nbsp;void&nbsp;calculateStateForTimeStep(int&nbsp;x)</pre>
  351. <div class="block">calculates the flow of the edges and the supply for objects.</div>
  352. <dl>
  353. <dt><span class="paramLabel">Parameters:</span></dt>
  354. <dd><code>x</code> - current Iteration</dd>
  355. </dl>
  356. </li>
  357. </ul>
  358. <a name="setFlow-classes.SubNet-boolean-">
  359. <!-- -->
  360. </a>
  361. <ul class="blockList">
  362. <li class="blockList">
  363. <h4>setFlow</h4>
  364. <pre>public&nbsp;void&nbsp;setFlow(<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN,
  365. boolean&nbsp;simulation)</pre>
  366. <div class="block">Sets the Flow.</div>
  367. <dl>
  368. <dt><span class="paramLabel">Parameters:</span></dt>
  369. <dd><code>sN</code> - Subnet</dd>
  370. <dd><code>simulation</code> - boolean if Simulation is on</dd>
  371. </dl>
  372. </li>
  373. </ul>
  374. <a name="setFlowModelation-classes.SubNet-">
  375. <!-- -->
  376. </a>
  377. <ul class="blockList">
  378. <li class="blockList">
  379. <h4>setFlowModelation</h4>
  380. <pre>public&nbsp;void&nbsp;setFlowModelation(<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN)</pre>
  381. <div class="block">set the Flow Modelation.</div>
  382. <dl>
  383. <dt><span class="paramLabel">Parameters:</span></dt>
  384. <dd><code>sN</code> - Subnet</dd>
  385. </dl>
  386. </li>
  387. </ul>
  388. <a name="setFlowSimulation-classes.SubNet-">
  389. <!-- -->
  390. </a>
  391. <ul class="blockList">
  392. <li class="blockList">
  393. <h4>setFlowSimulation</h4>
  394. <pre>public&nbsp;void&nbsp;setFlowSimulation(<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN)</pre>
  395. <div class="block">Set Flow Simulation.</div>
  396. <dl>
  397. <dt><span class="paramLabel">Parameters:</span></dt>
  398. <dd><code>sN</code> - Subnet</dd>
  399. </dl>
  400. </li>
  401. </ul>
  402. <a name="setFlowSimRec-java.util.ArrayList-int-">
  403. <!-- -->
  404. </a>
  405. <ul class="blockList">
  406. <li class="blockList">
  407. <h4>setFlowSimRec</h4>
  408. <pre>public&nbsp;void&nbsp;setFlowSimRec(java.util.ArrayList&lt;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&gt;&nbsp;nodes,
  409. int&nbsp;iter)</pre>
  410. <div class="block">Set Flow Rimulation Rec.</div>
  411. <dl>
  412. <dt><span class="paramLabel">Parameters:</span></dt>
  413. <dd><code>nodes</code> - the nodes</dd>
  414. <dd><code>iter</code> - the Iteration</dd>
  415. </dl>
  416. </li>
  417. </ul>
  418. <a name="setPseudoTags-java.util.ArrayList-">
  419. <!-- -->
  420. </a>
  421. <ul class="blockList">
  422. <li class="blockList">
  423. <h4>setPseudoTags</h4>
  424. <pre>public&nbsp;void&nbsp;setPseudoTags(java.util.ArrayList&lt;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&gt;&nbsp;nodes)</pre>
  425. <div class="block">Set the Pseudo Tags.</div>
  426. <dl>
  427. <dt><span class="paramLabel">Parameters:</span></dt>
  428. <dd><code>nodes</code> - Array of AbstractCpsObjects</dd>
  429. </dl>
  430. </li>
  431. </ul>
  432. <a name="printNodes-java.util.ArrayList-">
  433. <!-- -->
  434. </a>
  435. <ul class="blockList">
  436. <li class="blockList">
  437. <h4>printNodes</h4>
  438. <pre>public&nbsp;void&nbsp;printNodes(java.util.ArrayList&lt;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&gt;&nbsp;nodes)</pre>
  439. <div class="block">Print the nodes.</div>
  440. <dl>
  441. <dt><span class="paramLabel">Parameters:</span></dt>
  442. <dd><code>nodes</code> - Array of AbstractCpsObject</dd>
  443. </dl>
  444. </li>
  445. </ul>
  446. <a name="getString-java.util.ArrayList-">
  447. <!-- -->
  448. </a>
  449. <ul class="blockList">
  450. <li class="blockList">
  451. <h4>getString</h4>
  452. <pre>public&nbsp;java.lang.String&nbsp;getString(java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;tags)</pre>
  453. <div class="block">Get String.</div>
  454. <dl>
  455. <dt><span class="paramLabel">Parameters:</span></dt>
  456. <dd><code>tags</code> - the tags</dd>
  457. <dt><span class="returnLabel">Returns:</span></dt>
  458. <dd>the String</dd>
  459. </dl>
  460. </li>
  461. </ul>
  462. <a name="mergeLists-java.util.ArrayList-java.util.ArrayList-">
  463. <!-- -->
  464. </a>
  465. <ul class="blockList">
  466. <li class="blockList">
  467. <h4>mergeLists</h4>
  468. <pre>public&nbsp;java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;mergeLists(java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;a,
  469. java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;b)</pre>
  470. <div class="block">Merge the Lists.</div>
  471. <dl>
  472. <dt><span class="paramLabel">Parameters:</span></dt>
  473. <dd><code>a</code> - first liust</dd>
  474. <dd><code>b</code> - second list</dd>
  475. <dt><span class="returnLabel">Returns:</span></dt>
  476. <dd>the Result</dd>
  477. </dl>
  478. </li>
  479. </ul>
  480. <a name="resetConnections-classes.AbstractCpsObject-java.util.ArrayList-java.util.ArrayList-">
  481. <!-- -->
  482. </a>
  483. <ul class="blockList">
  484. <li class="blockList">
  485. <h4>resetConnections</h4>
  486. <pre>public&nbsp;void&nbsp;resetConnections(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;cps,
  487. java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;visitedObj,
  488. java.util.ArrayList&lt;<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&gt;&nbsp;visitedEdges)</pre>
  489. <div class="block">Reset the Connection.</div>
  490. <dl>
  491. <dt><span class="paramLabel">Parameters:</span></dt>
  492. <dd><code>cps</code> - CpsObject</dd>
  493. <dd><code>visitedObj</code> - the visited Objects</dd>
  494. <dd><code>visitedEdges</code> - the visited Edges</dd>
  495. </dl>
  496. </li>
  497. </ul>
  498. <a name="calculateEnergy-java.lang.String-classes.SubNet-int-">
  499. <!-- -->
  500. </a>
  501. <ul class="blockList">
  502. <li class="blockList">
  503. <h4>calculateEnergy</h4>
  504. <pre>public&nbsp;float&nbsp;calculateEnergy(java.lang.String&nbsp;type,
  505. <a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN,
  506. int&nbsp;x)</pre>
  507. <div class="block">calculates the energy of either all producers or consumers.</div>
  508. <dl>
  509. <dt><span class="paramLabel">Parameters:</span></dt>
  510. <dd><code>type</code> - Type</dd>
  511. <dd><code>sN</code> - Subnet</dd>
  512. <dd><code>x</code> - Integer</dd>
  513. <dt><span class="returnLabel">Returns:</span></dt>
  514. <dd>The Energy</dd>
  515. </dl>
  516. </li>
  517. </ul>
  518. <a name="calculateMinimumEnergy-classes.SubNet-int-">
  519. <!-- -->
  520. </a>
  521. <ul class="blockList">
  522. <li class="blockList">
  523. <h4>calculateMinimumEnergy</h4>
  524. <pre>public&nbsp;float&nbsp;calculateMinimumEnergy(<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN,
  525. int&nbsp;x)</pre>
  526. <div class="block">Calculate the Minimum Energy.</div>
  527. <dl>
  528. <dt><span class="paramLabel">Parameters:</span></dt>
  529. <dd><code>sN</code> - Subnet</dd>
  530. <dd><code>x</code> - Integer</dd>
  531. <dt><span class="returnLabel">Returns:</span></dt>
  532. <dd>the Calculated minimum Energy</dd>
  533. </dl>
  534. </li>
  535. </ul>
  536. <a name="searchForSubNets--">
  537. <!-- -->
  538. </a>
  539. <ul class="blockList">
  540. <li class="blockList">
  541. <h4>searchForSubNets</h4>
  542. <pre>public&nbsp;void&nbsp;searchForSubNets()</pre>
  543. <div class="block">generates all subNets from all objectsToHandle.</div>
  544. </li>
  545. </ul>
  546. <a name="buildSubNet-classes.AbstractCpsObject-java.util.ArrayList-classes.SubNet-">
  547. <!-- -->
  548. </a>
  549. <ul class="blockList">
  550. <li class="blockList">
  551. <h4>buildSubNet</h4>
  552. <pre>public&nbsp;<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;buildSubNet(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;cps,
  553. java.util.ArrayList&lt;java.lang.Integer&gt;&nbsp;visited,
  554. <a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&nbsp;sN)</pre>
  555. <div class="block">recursivly generates a subnet of all objects, that one specific object is
  556. connected to.</div>
  557. <dl>
  558. <dt><span class="paramLabel">Parameters:</span></dt>
  559. <dd><code>cps</code> - AbstractCpsObject</dd>
  560. <dd><code>visited</code> - visited Array of Integer</dd>
  561. <dd><code>sN</code> - Subnets</dd>
  562. <dt><span class="returnLabel">Returns:</span></dt>
  563. <dd>Subnet</dd>
  564. </dl>
  565. </li>
  566. </ul>
  567. <a name="legitState-classes.AbstractCpsObject-classes.AbstractCpsObject-">
  568. <!-- -->
  569. </a>
  570. <ul class="blockList">
  571. <li class="blockList">
  572. <h4>legitState</h4>
  573. <pre>public&nbsp;boolean&nbsp;legitState(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;neighbor,
  574. <a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;current)</pre>
  575. <div class="block">is the Switch in a legitimate State.</div>
  576. <dl>
  577. <dt><span class="paramLabel">Parameters:</span></dt>
  578. <dd><code>neighbor</code> - AbstractCpsObject</dd>
  579. <dd><code>current</code> - AbstractCpsObject</dd>
  580. <dt><span class="returnLabel">Returns:</span></dt>
  581. <dd>boolean</dd>
  582. </dl>
  583. </li>
  584. </ul>
  585. <a name="removeFromToHandle-int-">
  586. <!-- -->
  587. </a>
  588. <ul class="blockList">
  589. <li class="blockList">
  590. <h4>removeFromToHandle</h4>
  591. <pre>public&nbsp;void&nbsp;removeFromToHandle(int&nbsp;id)</pre>
  592. <div class="block">removes an Object that already has been handled with.</div>
  593. <dl>
  594. <dt><span class="paramLabel">Parameters:</span></dt>
  595. <dd><code>id</code> - the Object ID</dd>
  596. </dl>
  597. </li>
  598. </ul>
  599. <a name="cleanObjectsToHandle--">
  600. <!-- -->
  601. </a>
  602. <ul class="blockList">
  603. <li class="blockList">
  604. <h4>cleanObjectsToHandle</h4>
  605. <pre>public&nbsp;void&nbsp;cleanObjectsToHandle()</pre>
  606. <div class="block">ensures that objectsToHandle only contains HolonObjects.</div>
  607. </li>
  608. </ul>
  609. <a name="copyObjects-java.util.ArrayList-">
  610. <!-- -->
  611. </a>
  612. <ul class="blockList">
  613. <li class="blockList">
  614. <h4>copyObjects</h4>
  615. <pre>public&nbsp;void&nbsp;copyObjects(java.util.ArrayList&lt;<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&gt;&nbsp;toCopy)</pre>
  616. <div class="block">copies the data of an array of Objects.</div>
  617. <dl>
  618. <dt><span class="paramLabel">Parameters:</span></dt>
  619. <dd><code>toCopy</code> - the ArrayList of CpsObjects co Copy</dd>
  620. </dl>
  621. </li>
  622. </ul>
  623. <a name="printNet--">
  624. <!-- -->
  625. </a>
  626. <ul class="blockList">
  627. <li class="blockList">
  628. <h4>printNet</h4>
  629. <pre>public&nbsp;void&nbsp;printNet()</pre>
  630. <div class="block">Prints the Components auf all subnets.</div>
  631. </li>
  632. </ul>
  633. <a name="setCanvas-ui.view.MyCanvas-">
  634. <!-- -->
  635. </a>
  636. <ul class="blockList">
  637. <li class="blockList">
  638. <h4>setCanvas</h4>
  639. <pre>public&nbsp;void&nbsp;setCanvas(<a href="../../ui/view/MyCanvas.html" title="class in ui.view">MyCanvas</a>&nbsp;can)</pre>
  640. <div class="block">Set the Canvas.</div>
  641. <dl>
  642. <dt><span class="paramLabel">Parameters:</span></dt>
  643. <dd><code>can</code> - the Canvas</dd>
  644. </dl>
  645. </li>
  646. </ul>
  647. <a name="reset--">
  648. <!-- -->
  649. </a>
  650. <ul class="blockList">
  651. <li class="blockList">
  652. <h4>reset</h4>
  653. <pre>public&nbsp;void&nbsp;reset()</pre>
  654. <div class="block">Reset all Data to the current state of the Model.</div>
  655. </li>
  656. </ul>
  657. <a name="getSubNets--">
  658. <!-- -->
  659. </a>
  660. <ul class="blockListLast">
  661. <li class="blockList">
  662. <h4>getSubNets</h4>
  663. <pre>public&nbsp;java.util.ArrayList&lt;<a href="../../classes/SubNet.html" title="class in classes">SubNet</a>&gt;&nbsp;getSubNets()</pre>
  664. <div class="block">Get all Subnets.</div>
  665. <dl>
  666. <dt><span class="returnLabel">Returns:</span></dt>
  667. <dd>all Subnets</dd>
  668. </dl>
  669. </li>
  670. </ul>
  671. </li>
  672. </ul>
  673. </li>
  674. </ul>
  675. </div>
  676. </div>
  677. <!-- ========= END OF CLASS DATA ========= -->
  678. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  679. <div class="bottomNav"><a name="navbar.bottom">
  680. <!-- -->
  681. </a>
  682. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  683. <a name="navbar.bottom.firstrow">
  684. <!-- -->
  685. </a>
  686. <ul class="navList" title="Navigation">
  687. <li><a href="../../overview-summary.html">Overview</a></li>
  688. <li><a href="package-summary.html">Package</a></li>
  689. <li class="navBarCell1Rev">Class</li>
  690. <li><a href="class-use/SimulationManager.html">Use</a></li>
  691. <li><a href="package-tree.html">Tree</a></li>
  692. <li><a href="../../deprecated-list.html">Deprecated</a></li>
  693. <li><a href="../../index-files/index-1.html">Index</a></li>
  694. <li><a href="../../help-doc.html">Help</a></li>
  695. </ul>
  696. </div>
  697. <div class="subNav">
  698. <ul class="navList">
  699. <li><a href="../../ui/controller/ObjectController.html" title="class in ui.controller"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  700. <li><a href="../../ui/controller/StoreController.html" title="class in ui.controller"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  701. </ul>
  702. <ul class="navList">
  703. <li><a href="../../index.html?ui/controller/SimulationManager.html" target="_top">Frames</a></li>
  704. <li><a href="SimulationManager.html" target="_top">No&nbsp;Frames</a></li>
  705. </ul>
  706. <ul class="navList" id="allclasses_navbar_bottom">
  707. <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  708. </ul>
  709. <div>
  710. <script type="text/javascript"><!--
  711. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  712. if(window==top) {
  713. allClassesLink.style.display = "block";
  714. }
  715. else {
  716. allClassesLink.style.display = "none";
  717. }
  718. //-->
  719. </script>
  720. </div>
  721. <div>
  722. <ul class="subNavList">
  723. <li>Summary:&nbsp;</li>
  724. <li>Nested&nbsp;|&nbsp;</li>
  725. <li>Field&nbsp;|&nbsp;</li>
  726. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  727. <li><a href="#method.summary">Method</a></li>
  728. </ul>
  729. <ul class="subNavList">
  730. <li>Detail:&nbsp;</li>
  731. <li>Field&nbsp;|&nbsp;</li>
  732. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  733. <li><a href="#method.detail">Method</a></li>
  734. </ul>
  735. </div>
  736. <a name="skip.navbar.bottom">
  737. <!-- -->
  738. </a></div>
  739. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  740. </body>
  741. </html>