This project simulates the turing machine https://cromer.cl/mt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

412 lines
14 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="es">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_131) on Sat Jul 08 14:54:03 CLT 2017 -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf8">
  7. <title>Estado</title>
  8. <meta name="date" content="2017-07-08">
  9. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  10. <script type="text/javascript" src="../../../script.js"></script>
  11. </head>
  12. <body>
  13. <script type="text/javascript"><!--
  14. try {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="Estado";
  17. }
  18. }
  19. catch(err) {
  20. }
  21. //-->
  22. var methods = {"i0":10,"i1":10,"i2":10,"i3":10};
  23. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  24. var altColor = "altColor";
  25. var rowColor = "rowColor";
  26. var tableTab = "tableTab";
  27. var activeTableTab = "activeTableTab";
  28. </script>
  29. <noscript>
  30. <div>JavaScript is disabled on your browser.</div>
  31. </noscript>
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <div class="topNav"><a name="navbar.top">
  34. <!-- -->
  35. </a>
  36. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  37. <a name="navbar.top.firstrow">
  38. <!-- -->
  39. </a>
  40. <ul class="navList" title="Navigation">
  41. <li><a href="../../../cl/cromer/mt/package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="class-use/Estado.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="../../../cl/cromer/mt/Enlace.html" title="class in cl.cromer.mt"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../cl/cromer/mt/EstadosFinales.html" title="class in cl.cromer.mt"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../index.html?cl/cromer/mt/Estado.html" target="_top">Frames</a></li>
  57. <li><a href="Estado.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><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&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">cl.cromer.mt</div>
  96. <h2 title="Class Estado" class="title">Class Estado</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>cl.cromer.mt.Estado</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">Estado</span>
  113. extends java.lang.Object</pre>
  114. <div class="block">Clase que almanecerá un estado con su subindices y sus enlaces adyacentes</div>
  115. </li>
  116. </ul>
  117. </div>
  118. <div class="summary">
  119. <ul class="blockList">
  120. <li class="blockList">
  121. <!-- =========== FIELD SUMMARY =========== -->
  122. <ul class="blockList">
  123. <li class="blockList"><a name="field.summary">
  124. <!-- -->
  125. </a>
  126. <h3>Field Summary</h3>
  127. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  128. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  129. <tr>
  130. <th class="colFirst" scope="col">Modifier and Type</th>
  131. <th class="colLast" scope="col">Field and Description</th>
  132. </tr>
  133. <tr class="altColor">
  134. <td class="colFirst"><code>private java.util.ArrayList&lt;<a href="../../../cl/cromer/mt/Enlace.html" title="class in cl.cromer.mt">Enlace</a>&gt;</code></td>
  135. <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#enlaces">enlaces</a></span></code>
  136. <div class="block">Los enlaces que tiene este estado</div>
  137. </td>
  138. </tr>
  139. <tr class="rowColor">
  140. <td class="colFirst"><code>private int</code></td>
  141. <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#q">q</a></span></code>
  142. <div class="block">El estado actual</div>
  143. </td>
  144. </tr>
  145. </table>
  146. </li>
  147. </ul>
  148. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  149. <ul class="blockList">
  150. <li class="blockList"><a name="constructor.summary">
  151. <!-- -->
  152. </a>
  153. <h3>Constructor Summary</h3>
  154. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  155. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  156. <tr>
  157. <th class="colOne" scope="col">Constructor and Description</th>
  158. </tr>
  159. <tr class="altColor">
  160. <td class="colOne"><code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#Estado-int-">Estado</a></span>(int&nbsp;q)</code>
  161. <div class="block">Contructor de la clase</div>
  162. </td>
  163. </tr>
  164. </table>
  165. </li>
  166. </ul>
  167. <!-- ========== METHOD SUMMARY =========== -->
  168. <ul class="blockList">
  169. <li class="blockList"><a name="method.summary">
  170. <!-- -->
  171. </a>
  172. <h3>Method Summary</h3>
  173. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  174. <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>
  175. <tr>
  176. <th class="colFirst" scope="col">Modifier and Type</th>
  177. <th class="colLast" scope="col">Method and Description</th>
  178. </tr>
  179. <tr id="i0" class="altColor">
  180. <td class="colFirst"><code>void</code></td>
  181. <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#crearEnlace-char-cl.cromer.mt.Estado-char-char-">crearEnlace</a></span>(char&nbsp;si,
  182. <a href="../../../cl/cromer/mt/Estado.html" title="class in cl.cromer.mt">Estado</a>&nbsp;qj,
  183. char&nbsp;sj,
  184. char&nbsp;mover)</code>
  185. <div class="block">Crea un enlace entre dos estados ó a si mismo</div>
  186. </td>
  187. </tr>
  188. <tr id="i1" class="rowColor">
  189. <td class="colFirst"><code>java.util.ArrayList&lt;<a href="../../../cl/cromer/mt/Enlace.html" title="class in cl.cromer.mt">Enlace</a>&gt;</code></td>
  190. <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#getEnlaces--">getEnlaces</a></span>()</code>
  191. <div class="block">Retorna una lista con los enlaces de un estado</div>
  192. </td>
  193. </tr>
  194. <tr id="i2" class="altColor">
  195. <td class="colFirst"><code>int</code></td>
  196. <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#getQ--">getQ</a></span>()</code>
  197. <div class="block">Retorna el subindice asociado al estado</div>
  198. </td>
  199. </tr>
  200. <tr id="i3" class="rowColor">
  201. <td class="colFirst"><code>java.lang.String</code></td>
  202. <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#toString--">toString</a></span>()</code>
  203. <div class="block">Retorna un String con la/s función/es de transición asociado a un estado</div>
  204. </td>
  205. </tr>
  206. </table>
  207. <ul class="blockList">
  208. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  209. <!-- -->
  210. </a>
  211. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  212. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
  213. </ul>
  214. </li>
  215. </ul>
  216. </li>
  217. </ul>
  218. </div>
  219. <div class="details">
  220. <ul class="blockList">
  221. <li class="blockList">
  222. <!-- ============ FIELD DETAIL =========== -->
  223. <ul class="blockList">
  224. <li class="blockList"><a name="field.detail">
  225. <!-- -->
  226. </a>
  227. <h3>Field Detail</h3>
  228. <a name="q">
  229. <!-- -->
  230. </a>
  231. <ul class="blockList">
  232. <li class="blockList">
  233. <h4>q</h4>
  234. <pre>private final&nbsp;int q</pre>
  235. <div class="block">El estado actual</div>
  236. </li>
  237. </ul>
  238. <a name="enlaces">
  239. <!-- -->
  240. </a>
  241. <ul class="blockListLast">
  242. <li class="blockList">
  243. <h4>enlaces</h4>
  244. <pre>private final&nbsp;java.util.ArrayList&lt;<a href="../../../cl/cromer/mt/Enlace.html" title="class in cl.cromer.mt">Enlace</a>&gt; enlaces</pre>
  245. <div class="block">Los enlaces que tiene este estado</div>
  246. </li>
  247. </ul>
  248. </li>
  249. </ul>
  250. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  251. <ul class="blockList">
  252. <li class="blockList"><a name="constructor.detail">
  253. <!-- -->
  254. </a>
  255. <h3>Constructor Detail</h3>
  256. <a name="Estado-int-">
  257. <!-- -->
  258. </a>
  259. <ul class="blockListLast">
  260. <li class="blockList">
  261. <h4>Estado</h4>
  262. <pre>public&nbsp;Estado(int&nbsp;q)</pre>
  263. <div class="block">Contructor de la clase</div>
  264. <dl>
  265. <dt><span class="paramLabel">Parameters:</span></dt>
  266. <dd><code>q</code> - Subindice del estado</dd>
  267. </dl>
  268. </li>
  269. </ul>
  270. </li>
  271. </ul>
  272. <!-- ============ METHOD DETAIL ========== -->
  273. <ul class="blockList">
  274. <li class="blockList"><a name="method.detail">
  275. <!-- -->
  276. </a>
  277. <h3>Method Detail</h3>
  278. <a name="getEnlaces--">
  279. <!-- -->
  280. </a>
  281. <ul class="blockList">
  282. <li class="blockList">
  283. <h4>getEnlaces</h4>
  284. <pre>public&nbsp;java.util.ArrayList&lt;<a href="../../../cl/cromer/mt/Enlace.html" title="class in cl.cromer.mt">Enlace</a>&gt;&nbsp;getEnlaces()</pre>
  285. <div class="block">Retorna una lista con los enlaces de un estado</div>
  286. <dl>
  287. <dt><span class="returnLabel">Returns:</span></dt>
  288. <dd>ArrayList de Enlaces</dd>
  289. </dl>
  290. </li>
  291. </ul>
  292. <a name="getQ--">
  293. <!-- -->
  294. </a>
  295. <ul class="blockList">
  296. <li class="blockList">
  297. <h4>getQ</h4>
  298. <pre>public&nbsp;int&nbsp;getQ()</pre>
  299. <div class="block">Retorna el subindice asociado al estado</div>
  300. <dl>
  301. <dt><span class="returnLabel">Returns:</span></dt>
  302. <dd>Subindice</dd>
  303. </dl>
  304. </li>
  305. </ul>
  306. <a name="crearEnlace-char-cl.cromer.mt.Estado-char-char-">
  307. <!-- -->
  308. </a>
  309. <ul class="blockList">
  310. <li class="blockList">
  311. <h4>crearEnlace</h4>
  312. <pre>public&nbsp;void&nbsp;crearEnlace(char&nbsp;si,
  313. <a href="../../../cl/cromer/mt/Estado.html" title="class in cl.cromer.mt">Estado</a>&nbsp;qj,
  314. char&nbsp;sj,
  315. char&nbsp;mover)</pre>
  316. <div class="block">Crea un enlace entre dos estados ó a si mismo</div>
  317. <dl>
  318. <dt><span class="paramLabel">Parameters:</span></dt>
  319. <dd><code>si</code> - Simbolo a analizar en la cadena</dd>
  320. <dd><code>qj</code> - Estado adyacente</dd>
  321. <dd><code>sj</code> - Simbolo que escribe en la cadena</dd>
  322. <dd><code>mover</code> - Movimiento del cabezal (indice de la cadena)</dd>
  323. </dl>
  324. </li>
  325. </ul>
  326. <a name="toString--">
  327. <!-- -->
  328. </a>
  329. <ul class="blockListLast">
  330. <li class="blockList">
  331. <h4>toString</h4>
  332. <pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
  333. <div class="block">Retorna un String con la/s función/es de transición asociado a un estado</div>
  334. <dl>
  335. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  336. <dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  337. <dt><span class="returnLabel">Returns:</span></dt>
  338. <dd>String con la/s función/es</dd>
  339. </dl>
  340. </li>
  341. </ul>
  342. </li>
  343. </ul>
  344. </li>
  345. </ul>
  346. </div>
  347. </div>
  348. <!-- ========= END OF CLASS DATA ========= -->
  349. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  350. <div class="bottomNav"><a name="navbar.bottom">
  351. <!-- -->
  352. </a>
  353. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  354. <a name="navbar.bottom.firstrow">
  355. <!-- -->
  356. </a>
  357. <ul class="navList" title="Navigation">
  358. <li><a href="../../../cl/cromer/mt/package-summary.html">Package</a></li>
  359. <li class="navBarCell1Rev">Class</li>
  360. <li><a href="class-use/Estado.html">Use</a></li>
  361. <li><a href="package-tree.html">Tree</a></li>
  362. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  363. <li><a href="../../../index-files/index-1.html">Index</a></li>
  364. <li><a href="../../../help-doc.html">Help</a></li>
  365. </ul>
  366. </div>
  367. <div class="subNav">
  368. <ul class="navList">
  369. <li><a href="../../../cl/cromer/mt/Enlace.html" title="class in cl.cromer.mt"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  370. <li><a href="../../../cl/cromer/mt/EstadosFinales.html" title="class in cl.cromer.mt"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  371. </ul>
  372. <ul class="navList">
  373. <li><a href="../../../index.html?cl/cromer/mt/Estado.html" target="_top">Frames</a></li>
  374. <li><a href="Estado.html" target="_top">No&nbsp;Frames</a></li>
  375. </ul>
  376. <ul class="navList" id="allclasses_navbar_bottom">
  377. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  378. </ul>
  379. <div>
  380. <script type="text/javascript"><!--
  381. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  382. if(window==top) {
  383. allClassesLink.style.display = "block";
  384. }
  385. else {
  386. allClassesLink.style.display = "none";
  387. }
  388. //-->
  389. </script>
  390. </div>
  391. <div>
  392. <ul class="subNavList">
  393. <li>Summary:&nbsp;</li>
  394. <li>Nested&nbsp;|&nbsp;</li>
  395. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  396. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  397. <li><a href="#method.summary">Method</a></li>
  398. </ul>
  399. <ul class="subNavList">
  400. <li>Detail:&nbsp;</li>
  401. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  402. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  403. <li><a href="#method.detail">Method</a></li>
  404. </ul>
  405. </div>
  406. <a name="skip.navbar.bottom">
  407. <!-- -->
  408. </a></div>
  409. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  410. </body>
  411. </html>