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.

Estado.html 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  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 Fri Jul 07 00:26:38 CLT 2017 -->
  6. <title>Estado</title>
  7. <meta name="date" content="2017-07-07">
  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 = "Estado";
  16. }
  17. }
  18. catch (err) {
  19. }
  20. //-->
  21. var methods = {"i0": 10, "i1": 10, "i2": 10, "i3": 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>
  36. </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>
  53. <a href="../../../cl/cromer/mt/Enlace.html" title="class in cl.cromer.mt"><span class="typeNameLink">Prev&nbsp;Class</span></a>
  54. </li>
  55. <li>
  56. <a href="../../../cl/cromer/mt/EstadosFinales.html" title="class in cl.cromer.mt"><span class="typeNameLink">Next&nbsp;Class</span></a>
  57. </li>
  58. </ul>
  59. <ul class="navList">
  60. <li><a href="../../../index.html?cl/cromer/mt/Estado.html" target="_top">Frames</a></li>
  61. <li><a href="Estado.html" target="_top">No&nbsp;Frames</a></li>
  62. </ul>
  63. <ul class="navList" id="allclasses_navbar_top">
  64. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  65. </ul>
  66. <div>
  67. <script type="text/javascript"><!--
  68. allClassesLink = document.getElementById("allclasses_navbar_top");
  69. if (window == top) {
  70. allClassesLink.style.display = "block";
  71. }
  72. else {
  73. allClassesLink.style.display = "none";
  74. }
  75. //-->
  76. </script>
  77. </div>
  78. <div>
  79. <ul class="subNavList">
  80. <li>Summary:&nbsp;</li>
  81. <li>Nested&nbsp;|&nbsp;</li>
  82. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  83. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  84. <li><a href="#method.summary">Method</a></li>
  85. </ul>
  86. <ul class="subNavList">
  87. <li>Detail:&nbsp;</li>
  88. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  89. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  90. <li><a href="#method.detail">Method</a></li>
  91. </ul>
  92. </div>
  93. <a name="skip.navbar.top">
  94. <!-- -->
  95. </a></div>
  96. <!-- ========= END OF TOP NAVBAR ========= -->
  97. <!-- ======== START OF CLASS DATA ======== -->
  98. <div class="header">
  99. <div class="subTitle">cl.cromer.mt</div>
  100. <h2 title="Class Estado" class="title">Class Estado</h2>
  101. </div>
  102. <div class="contentContainer">
  103. <ul class="inheritance">
  104. <li>java.lang.Object</li>
  105. <li>
  106. <ul class="inheritance">
  107. <li>cl.cromer.mt.Estado</li>
  108. </ul>
  109. </li>
  110. </ul>
  111. <div class="description">
  112. <ul class="blockList">
  113. <li class="blockList">
  114. <hr>
  115. <br>
  116. <pre>public class <span class="typeNameLabel">Estado</span>
  117. extends java.lang.Object</pre>
  118. <div class="block">Clase que almanecerá un estado con su subindices y sus enlaces adyacentes
  119. </div>
  120. </li>
  121. </ul>
  122. </div>
  123. <div class="summary">
  124. <ul class="blockList">
  125. <li class="blockList">
  126. <!-- =========== FIELD SUMMARY =========== -->
  127. <ul class="blockList">
  128. <li class="blockList"><a name="field.summary">
  129. <!-- -->
  130. </a>
  131. <h3>Field Summary</h3>
  132. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  133. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  134. <tr>
  135. <th class="colFirst" scope="col">Modifier and Type</th>
  136. <th class="colLast" scope="col">Field and Description</th>
  137. </tr>
  138. <tr class="altColor">
  139. <td class="colFirst"><code>private
  140. java.util.ArrayList&lt;<a href="../../../cl/cromer/mt/Enlace.html" title="class in cl.cromer.mt">Enlace</a>&gt;</code>
  141. </td>
  142. <td class="colLast">
  143. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#enlaces">enlaces</a></span></code>&nbsp;
  144. </td>
  145. </tr>
  146. <tr class="rowColor">
  147. <td class="colFirst"><code>private int</code></td>
  148. <td class="colLast">
  149. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#q">q</a></span></code>&nbsp;
  150. </td>
  151. </tr>
  152. </table>
  153. </li>
  154. </ul>
  155. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  156. <ul class="blockList">
  157. <li class="blockList"><a name="constructor.summary">
  158. <!-- -->
  159. </a>
  160. <h3>Constructor Summary</h3>
  161. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  162. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  163. <tr>
  164. <th class="colOne" scope="col">Constructor and Description</th>
  165. </tr>
  166. <tr class="altColor">
  167. <td class="colOne">
  168. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#Estado-int-">Estado</a></span>(int&nbsp;q)</code>
  169. <div class="block">Contructor de la clase</div>
  170. </td>
  171. </tr>
  172. </table>
  173. </li>
  174. </ul>
  175. <!-- ========== METHOD SUMMARY =========== -->
  176. <ul class="blockList">
  177. <li class="blockList"><a name="method.summary">
  178. <!-- -->
  179. </a>
  180. <h3>Method Summary</h3>
  181. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  182. <caption>
  183. <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>
  184. </caption>
  185. <tr>
  186. <th class="colFirst" scope="col">Modifier and Type</th>
  187. <th class="colLast" scope="col">Method and Description</th>
  188. </tr>
  189. <tr id="i0" class="altColor">
  190. <td class="colFirst"><code>void</code></td>
  191. <td class="colLast">
  192. <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,
  193. <a href="../../../cl/cromer/mt/Estado.html" title="class in cl.cromer.mt">Estado</a>&nbsp;qj,
  194. char&nbsp;sj,
  195. char&nbsp;mover)</code>
  196. <div class="block">Crea un enlace entre dos estados ó a si mismo</div>
  197. </td>
  198. </tr>
  199. <tr id="i1" class="rowColor">
  200. <td class="colFirst">
  201. <code>java.util.ArrayList&lt;<a href="../../../cl/cromer/mt/Enlace.html" title="class in cl.cromer.mt">Enlace</a>&gt;</code>
  202. </td>
  203. <td class="colLast">
  204. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#getEnlaces--">getEnlaces</a></span>()</code>
  205. <div class="block">Retorna una lista con los enlaces de un estado</div>
  206. </td>
  207. </tr>
  208. <tr id="i2" class="altColor">
  209. <td class="colFirst"><code>int</code></td>
  210. <td class="colLast">
  211. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#getQ--">getQ</a></span>()</code>
  212. <div class="block">Retorna el subindice asociado al estado</div>
  213. </td>
  214. </tr>
  215. <tr id="i3" class="rowColor">
  216. <td class="colFirst"><code>java.lang.String</code></td>
  217. <td class="colLast">
  218. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/Estado.html#toString--">toString</a></span>()</code>
  219. <div class="block">Retorna un String con la/s función/es de transición
  220. asociado a un estado
  221. </div>
  222. </td>
  223. </tr>
  224. </table>
  225. <ul class="blockList">
  226. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  227. <!-- -->
  228. </a>
  229. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  230. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait,
  231. wait, wait</code></li>
  232. </ul>
  233. </li>
  234. </ul>
  235. </li>
  236. </ul>
  237. </div>
  238. <div class="details">
  239. <ul class="blockList">
  240. <li class="blockList">
  241. <!-- ============ FIELD DETAIL =========== -->
  242. <ul class="blockList">
  243. <li class="blockList"><a name="field.detail">
  244. <!-- -->
  245. </a>
  246. <h3>Field Detail</h3>
  247. <a name="q">
  248. <!-- -->
  249. </a>
  250. <ul class="blockList">
  251. <li class="blockList">
  252. <h4>q</h4>
  253. <pre>private final&nbsp;int q</pre>
  254. </li>
  255. </ul>
  256. <a name="enlaces">
  257. <!-- -->
  258. </a>
  259. <ul class="blockListLast">
  260. <li class="blockList">
  261. <h4>enlaces</h4>
  262. <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>
  263. </li>
  264. </ul>
  265. </li>
  266. </ul>
  267. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  268. <ul class="blockList">
  269. <li class="blockList"><a name="constructor.detail">
  270. <!-- -->
  271. </a>
  272. <h3>Constructor Detail</h3>
  273. <a name="Estado-int-">
  274. <!-- -->
  275. </a>
  276. <ul class="blockListLast">
  277. <li class="blockList">
  278. <h4>Estado</h4>
  279. <pre>public&nbsp;Estado(int&nbsp;q)</pre>
  280. <div class="block">Contructor de la clase</div>
  281. <dl>
  282. <dt><span class="paramLabel">Parameters:</span></dt>
  283. <dd><code>q</code> - Subindice del estado</dd>
  284. </dl>
  285. </li>
  286. </ul>
  287. </li>
  288. </ul>
  289. <!-- ============ METHOD DETAIL ========== -->
  290. <ul class="blockList">
  291. <li class="blockList"><a name="method.detail">
  292. <!-- -->
  293. </a>
  294. <h3>Method Detail</h3>
  295. <a name="getEnlaces--">
  296. <!-- -->
  297. </a>
  298. <ul class="blockList">
  299. <li class="blockList">
  300. <h4>getEnlaces</h4>
  301. <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>
  302. <div class="block">Retorna una lista con los enlaces de un estado</div>
  303. <dl>
  304. <dt><span class="returnLabel">Returns:</span></dt>
  305. <dd>ArrayList de Enlaces</dd>
  306. </dl>
  307. </li>
  308. </ul>
  309. <a name="getQ--">
  310. <!-- -->
  311. </a>
  312. <ul class="blockList">
  313. <li class="blockList">
  314. <h4>getQ</h4>
  315. <pre>public&nbsp;int&nbsp;getQ()</pre>
  316. <div class="block">Retorna el subindice asociado al estado</div>
  317. <dl>
  318. <dt><span class="returnLabel">Returns:</span></dt>
  319. <dd>Subindice</dd>
  320. </dl>
  321. </li>
  322. </ul>
  323. <a name="crearEnlace-char-cl.cromer.mt.Estado-char-char-">
  324. <!-- -->
  325. </a>
  326. <ul class="blockList">
  327. <li class="blockList">
  328. <h4>crearEnlace</h4>
  329. <pre>public&nbsp;void&nbsp;crearEnlace(char&nbsp;si,
  330. <a href="../../../cl/cromer/mt/Estado.html" title="class in cl.cromer.mt">Estado</a>&nbsp;qj,
  331. char&nbsp;sj,
  332. char&nbsp;mover)</pre>
  333. <div class="block">Crea un enlace entre dos estados ó a si mismo</div>
  334. <dl>
  335. <dt><span class="paramLabel">Parameters:</span></dt>
  336. <dd><code>si</code> - Simbolo a analizar en la cadena</dd>
  337. <dd><code>qj</code> - Estado adyacente</dd>
  338. <dd><code>sj</code> - Simbolo que escribe en la cadena</dd>
  339. <dd><code>mover</code> - Movimiento del cabezal (indice de la cadena)</dd>
  340. </dl>
  341. </li>
  342. </ul>
  343. <a name="toString--">
  344. <!-- -->
  345. </a>
  346. <ul class="blockListLast">
  347. <li class="blockList">
  348. <h4>toString</h4>
  349. <pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
  350. <div class="block">Retorna un String con la/s función/es de transición asociado
  351. a un estado
  352. </div>
  353. <dl>
  354. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  355. <dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code>
  356. </dd>
  357. <dt><span class="returnLabel">Returns:</span></dt>
  358. <dd>String con la/s función/es</dd>
  359. </dl>
  360. </li>
  361. </ul>
  362. </li>
  363. </ul>
  364. </li>
  365. </ul>
  366. </div>
  367. </div>
  368. <!-- ========= END OF CLASS DATA ========= -->
  369. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  370. <div class="bottomNav"><a name="navbar.bottom">
  371. <!-- -->
  372. </a>
  373. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a>
  374. </div>
  375. <a name="navbar.bottom.firstrow">
  376. <!-- -->
  377. </a>
  378. <ul class="navList" title="Navigation">
  379. <li><a href="../../../cl/cromer/mt/package-summary.html">Package</a></li>
  380. <li class="navBarCell1Rev">Class</li>
  381. <li><a href="class-use/Estado.html">Use</a></li>
  382. <li><a href="package-tree.html">Tree</a></li>
  383. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  384. <li><a href="../../../index-files/index-1.html">Index</a></li>
  385. <li><a href="../../../help-doc.html">Help</a></li>
  386. </ul>
  387. </div>
  388. <div class="subNav">
  389. <ul class="navList">
  390. <li>
  391. <a href="../../../cl/cromer/mt/Enlace.html" title="class in cl.cromer.mt"><span class="typeNameLink">Prev&nbsp;Class</span></a>
  392. </li>
  393. <li>
  394. <a href="../../../cl/cromer/mt/EstadosFinales.html" title="class in cl.cromer.mt"><span class="typeNameLink">Next&nbsp;Class</span></a>
  395. </li>
  396. </ul>
  397. <ul class="navList">
  398. <li><a href="../../../index.html?cl/cromer/mt/Estado.html" target="_top">Frames</a></li>
  399. <li><a href="Estado.html" target="_top">No&nbsp;Frames</a></li>
  400. </ul>
  401. <ul class="navList" id="allclasses_navbar_bottom">
  402. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  403. </ul>
  404. <div>
  405. <script type="text/javascript"><!--
  406. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  407. if (window == top) {
  408. allClassesLink.style.display = "block";
  409. }
  410. else {
  411. allClassesLink.style.display = "none";
  412. }
  413. //-->
  414. </script>
  415. </div>
  416. <div>
  417. <ul class="subNavList">
  418. <li>Summary:&nbsp;</li>
  419. <li>Nested&nbsp;|&nbsp;</li>
  420. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  421. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  422. <li><a href="#method.summary">Method</a></li>
  423. </ul>
  424. <ul class="subNavList">
  425. <li>Detail:&nbsp;</li>
  426. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  427. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  428. <li><a href="#method.detail">Method</a></li>
  429. </ul>
  430. </div>
  431. <a name="skip.navbar.bottom">
  432. <!-- -->
  433. </a></div>
  434. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  435. </body>
  436. </html>