From e8268e1ba59e747fe12a3a7534db39f594ec5177 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Wed, 28 Jun 2017 23:54:27 -0400 Subject: [PATCH] Added graphical interface and cleaned up the code --- .idea/inspectionProfiles/Project_Default.xml | 36 + .idea/misc.xml | 2 +- doc/allclasses-frame.html | 10 +- doc/allclasses-noframe.html | 10 +- doc/constant-values.html | 4 +- doc/deprecated-list.html | 4 +- doc/help-doc.html | 4 +- doc/index-files/index-1.html | 25 +- doc/index-files/index-10.html | 160 +++++ doc/index-files/index-11.html | 135 ++++ doc/index-files/index-12.html | 135 ++++ doc/index-files/index-13.html | 143 ++++ doc/index-files/index-2.html | 37 +- doc/index-files/index-3.html | 55 +- doc/index-files/index-4.html | 35 +- doc/index-files/index-5.html | 46 +- doc/index-files/index-6.html | 22 +- doc/index-files/index-7.html | 33 +- doc/index-files/index-8.html | 68 +- doc/index-files/index-9.html | 135 ++++ doc/index.html | 2 +- doc/mt/Automata.html | 339 ++++++++++ doc/mt/Enlace.html | 500 ++++++++++++++ doc/mt/Estado.html | 399 +++++++++++ doc/mt/LeerXML.SimpleErrorHandler.html | 10 +- doc/mt/LeerXML.html | 20 +- doc/mt/MT.html | 38 +- doc/mt/Maquina.html | 341 ++++++++++ doc/mt/MenuController.html | 632 ++++++++++++++++++ doc/mt/class-use/Automata.html | 175 +++++ doc/mt/class-use/Enlace.html | 173 +++++ doc/mt/class-use/Estado.html | 267 ++++++++ .../class-use/LeerXML.SimpleErrorHandler.html | 4 +- doc/mt/class-use/LeerXML.html | 4 +- doc/mt/class-use/MT.html | 4 +- doc/mt/class-use/Maquina.html | 124 ++++ doc/mt/class-use/MenuController.html | 124 ++++ doc/mt/package-frame.html | 10 +- doc/mt/package-summary.html | 24 +- doc/mt/package-tree.html | 37 +- doc/mt/package-use.html | 32 +- doc/overview-tree.html | 35 +- mt.xml | 17 - src/mt/Automata.java | 140 ++-- src/mt/Enlace.java | 62 ++ src/mt/Estado.java | 50 ++ src/mt/LeerXML.java | 34 +- src/mt/MT.java | 90 ++- src/mt/Machine.java | 51 -- src/mt/Maquina.java | 55 ++ src/mt/MenuController.java | 83 +++ src/mt/menu.fxml | 17 + src/mt/mt.css | 15 + src/mt/mt.fxml | 22 +- src/mt/tabla.fxml | 18 + 55 files changed, 4648 insertions(+), 399 deletions(-) create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 doc/index-files/index-10.html create mode 100644 doc/index-files/index-11.html create mode 100644 doc/index-files/index-12.html create mode 100644 doc/index-files/index-13.html create mode 100644 doc/index-files/index-9.html create mode 100644 doc/mt/Automata.html create mode 100644 doc/mt/Enlace.html create mode 100644 doc/mt/Estado.html create mode 100644 doc/mt/Maquina.html create mode 100644 doc/mt/MenuController.html create mode 100644 doc/mt/class-use/Automata.html create mode 100644 doc/mt/class-use/Enlace.html create mode 100644 doc/mt/class-use/Estado.html create mode 100644 doc/mt/class-use/Maquina.html create mode 100644 doc/mt/class-use/MenuController.html delete mode 100644 mt.xml create mode 100644 src/mt/Enlace.java create mode 100644 src/mt/Estado.java delete mode 100644 src/mt/Machine.java create mode 100644 src/mt/Maquina.java create mode 100644 src/mt/MenuController.java create mode 100644 src/mt/menu.fxml create mode 100644 src/mt/mt.css create mode 100644 src/mt/tabla.fxml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..62dfd5f --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,36 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index e5c111b..d62cd4f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -59,7 +59,7 @@ - + \ No newline at end of file diff --git a/doc/allclasses-frame.html b/doc/allclasses-frame.html index f6ca1ff..227f63c 100644 --- a/doc/allclasses-frame.html +++ b/doc/allclasses-frame.html @@ -2,9 +2,9 @@ - + All Classes - + @@ -12,8 +12,12 @@

All Classes

diff --git a/doc/allclasses-noframe.html b/doc/allclasses-noframe.html index 7725319..e4b9c2c 100644 --- a/doc/allclasses-noframe.html +++ b/doc/allclasses-noframe.html @@ -2,9 +2,9 @@ - + All Classes - + @@ -12,8 +12,12 @@

All Classes

diff --git a/doc/constant-values.html b/doc/constant-values.html index 70da42e..9631681 100644 --- a/doc/constant-values.html +++ b/doc/constant-values.html @@ -2,9 +2,9 @@ - + Constant Field Values - + diff --git a/doc/deprecated-list.html b/doc/deprecated-list.html index 743a1de..df28a1e 100644 --- a/doc/deprecated-list.html +++ b/doc/deprecated-list.html @@ -2,9 +2,9 @@ - + Deprecated List - + diff --git a/doc/help-doc.html b/doc/help-doc.html index e991f30..eb77936 100644 --- a/doc/help-doc.html +++ b/doc/help-doc.html @@ -2,9 +2,9 @@ - + API Help - + diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html index 196f133..8569e42 100644 --- a/doc/index-files/index-1.html +++ b/doc/index-files/index-1.html @@ -2,9 +2,9 @@ - -C-Index - + + A-Index + @@ -12,7 +12,7 @@ + + + + + +
+ + + + + + + +
+ + +
+ A C E F G I L M Q S T V W  + + +

S

+
+
setEstados(ArrayList<Estado>) + - Method in class mt.Automata
+
 
+
setMovimiento(char) + - Method in class mt.Enlace
+
 
+
setQj(Estado) - + Method in class mt.Enlace
+
 
+
setSi(char) - Method + in class mt.Enlace
+
 
+
setSj(char) - Method + in class mt.Enlace
+
 
+
si - Variable in class + mt.Enlace
+
 
+
SimpleErrorHandler() + - Constructor for class mt.LeerXML.SimpleErrorHandler +
+
 
+
sj - Variable in class + mt.Enlace
+
 
+
+ start(Stage) + - Method in class mt.MT
+
+
Metodo de JavaFX llamada para generar el interfaz grafico.
+
+
+ A C E F G I L M Q S T V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-11.html b/doc/index-files/index-11.html new file mode 100644 index 0000000..fe70000 --- /dev/null +++ b/doc/index-files/index-11.html @@ -0,0 +1,135 @@ + + + + + + T-Index + + + + + + + + +
+ + + + + + + +
+ + +
+ A C E F G I L M Q S T V W  + + +

T

+
+
toString() - Method + in class mt.Enlace
+
 
+
toString() - Method + in class mt.Estado
+
 
+
+ A C E F G I L M Q S T V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-12.html b/doc/index-files/index-12.html new file mode 100644 index 0000000..6aef3b7 --- /dev/null +++ b/doc/index-files/index-12.html @@ -0,0 +1,135 @@ + + + + + + V-Index + + + + + + + + +
+ + + + + + + +
+ + +
+ A C E F G I L M Q S T V W  + + +

V

+
+
+ validarXML(File) + - Method in class mt.LeerXML
+
+
Este metodo se usa para validar el XML.
+
+
+ A C E F G I L M Q S T V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-13.html b/doc/index-files/index-13.html new file mode 100644 index 0000000..99a6dc1 --- /dev/null +++ b/doc/index-files/index-13.html @@ -0,0 +1,143 @@ + + + + + + W-Index + + + + + + + + +
+ + + + + + + +
+ + +
+ A C E F G I L M Q S T V W  + + +

W

+
+
+ warning(SAXParseException) + - Method in class mt.LeerXML.SimpleErrorHandler +
+
+
Un warning
+
+
+ warning(SAXParseException) + - Method in class mt.LeerXML.SimpleErrorHandler +
+
+
Un warning
+
+
+ A C E F G I L M Q S T V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-2.html b/doc/index-files/index-2.html index e2ec521..9ddb568 100644 --- a/doc/index-files/index-2.html +++ b/doc/index-files/index-2.html @@ -2,9 +2,9 @@ - -E-Index - + + C-Index + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ + + + + + +
+ + + + + + + +
+ + +
+ A C E F G I L M Q S T V W  + + +

Q

+
+
q - Variable in class + mt.Estado
+
 
+
qj - Variable in class + mt.Enlace
+
 
+
+ A C E F G I L M Q S T V W  +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index.html b/doc/index.html index 765a5a4..62688cb 100644 --- a/doc/index.html +++ b/doc/index.html @@ -2,7 +2,7 @@ - + Generated Documentation (Untitled) + + + + + + + + + +
+
mt
+

Class Automata

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • mt.Automata
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    class Automata
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      private + java.util.ArrayList<Estado> + + estados  +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      + Automata(org.w3c.dom.Document document)  +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      + All Methods Instance Methods Concrete Methods  +
      Modifier and TypeMethod and Description
      (package private) + java.util.ArrayList<Estado> + + getEstados()  +
      private void + setEstados(java.util.ArrayList<Estado> estados)  +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, + wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        estados

        +
        private java.util.ArrayList<Estado> estados
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Automata

        +
        Automata(org.w3c.dom.Document document)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setEstados

        +
        private void setEstados(java.util.ArrayList<Estado> estados)
        +
      • +
      + + + +
        +
      • +

        getEstados

        +
        java.util.ArrayList<Estado> getEstados()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/doc/mt/Enlace.html b/doc/mt/Enlace.html new file mode 100644 index 0000000..cab42da --- /dev/null +++ b/doc/mt/Enlace.html @@ -0,0 +1,500 @@ + + + + + + Enlace + + + + + + + + + + + + +
+
mt
+

Class Enlace

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • mt.Enlace
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    class Enlace
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      private char + movimiento  +
      private + Estado + qj  +
      private char + si  +
      private char + sj  +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      + Enlace(char si, + Estado qj, + char sj, + char move)  +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + All Methods Instance Methods Concrete Methods  +
      Modifier and TypeMethod and Description
      char + getMovimiento()  +
      Estado + + getQj()  +
      char + getSi()  +
      char + getSj()  +
      private void + setMovimiento(char movimiento)  +
      private void + setQj(Estado qj)  +
      private void + setSi(char si)  +
      private void + setSj(char sj)  +
      java.lang.String + toString()  +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, + wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        si

        +
        private char si
        +
      • +
      + + + +
        +
      • +

        sj

        +
        private char sj
        +
      • +
      + + + +
        +
      • +

        movimiento

        +
        private char movimiento
        +
      • +
      + + + +
        +
      • +

        qj

        +
        private Estado qj
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Enlace

        +
        Enlace(char si,
        +       Estado qj,
        +       char sj,
        +       char move)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setSi

        +
        private void setSi(char si)
        +
      • +
      + + + +
        +
      • +

        getSi

        +
        public char getSi()
        +
      • +
      + + + +
        +
      • +

        setSj

        +
        private void setSj(char sj)
        +
      • +
      + + + +
        +
      • +

        getSj

        +
        public char getSj()
        +
      • +
      + + + +
        +
      • +

        setMovimiento

        +
        private void setMovimiento(char movimiento)
        +
      • +
      + + + +
        +
      • +

        getMovimiento

        +
        public char getMovimiento()
        +
      • +
      + + + +
        +
      • +

        setQj

        +
        private void setQj(Estado qj)
        +
      • +
      + + + +
        +
      • +

        getQj

        +
        public Estado getQj()
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object +
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/doc/mt/Estado.html b/doc/mt/Estado.html new file mode 100644 index 0000000..2cb91f6 --- /dev/null +++ b/doc/mt/Estado.html @@ -0,0 +1,399 @@ + + + + + + Estado + + + + + + + + + + + + +
+
mt
+

Class Estado

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • mt.Estado
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class Estado
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      private + java.util.ArrayList<Enlace> + + enlaces  +
      private int + q  +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      + Estado(int q)  +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      + All Methods Instance Methods Concrete Methods  +
      Modifier and TypeMethod and Description
      (package private) boolean + createLink(char si, + Estado qj, + char sj, + char move)  +
      (package private) + java.util.ArrayList<Enlace> + + getEnlaces()  +
      (package private) int + getQ()  +
      java.lang.String + toString()  +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        + clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, + wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        q

        +
        private final int q
        +
      • +
      + + + +
        +
      • +

        enlaces

        +
        private final java.util.ArrayList<Enlace> enlaces
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Estado

        +
        Estado(int q)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getEnlaces

        +
        java.util.ArrayList<Enlace> getEnlaces()
        +
      • +
      + + + +
        +
      • +

        getQ

        +
        int getQ()
        +
      • +
      + + + +
        +
      • +

        createLink

        +
        boolean createLink(char si,
        +                   Estado qj,
        +                   char sj,
        +                   char move)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object +
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/doc/mt/LeerXML.SimpleErrorHandler.html b/doc/mt/LeerXML.SimpleErrorHandler.html index 33006fb..164e3df 100644 --- a/doc/mt/LeerXML.SimpleErrorHandler.html +++ b/doc/mt/LeerXML.SimpleErrorHandler.html @@ -2,9 +2,9 @@ - + LeerXML.SimpleErrorHandler - + @@ -49,7 +49,7 @@ var activeTableTab = "activeTableTab"; @@ -397,7 +397,7 @@ implements jdk.internal.org.xml.sax.ErrorHandler, org.xml.sax.ErrorHandler