Advertisement
bebesurf

Données pour test l'automate

Sep 11th, 2018
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.34 KB | None | 0 0
  1.     public static void main(String[] args){
  2.  
  3.         State e0 = new State(new String("e0"));
  4.         State h1 = new State(new String("h1"));
  5.         State h2 = new State(new String("h2"));
  6.         State h = new State(new String("h"));
  7.         State m1 = new State(new String("m1"));
  8.         State m2 = new State(new String("m2"));
  9.         State m = new State(new String("m"));
  10.  
  11.         Label v0 = new Label(new String("0"));
  12.         Label v1 = new Label(new String("1"));
  13.         Label v2 = new Label(new String("2"));
  14.         Label v3 = new Label(new String("3"));
  15.         Label v4 = new Label(new String("4"));
  16.         Label v5 = new Label(new String("5"));
  17.         Label v6 = new Label(new String("6"));
  18.         Label v7 = new Label(new String("7"));
  19.         Label v8 = new Label(new String("8"));
  20.         Label v9 = new Label(new String("9"));
  21.         Label v42 = new Label(new String(":"));
  22.  
  23.         e0.addTransition(v0, h1);
  24.         e0.addTransition(v1, h1);
  25.         e0.addTransition(v2, h2);
  26.         h1.addTransition(v0, h);
  27.         h1.addTransition(v1, h);
  28.         h1.addTransition(v2, h);
  29.         h1.addTransition(v3, h);
  30.         h1.addTransition(v4, h);
  31.         h1.addTransition(v5, h);
  32.         h1.addTransition(v6, h);
  33.         h1.addTransition(v7, h);
  34.         h1.addTransition(v8, h);
  35.         h1.addTransition(v9, h);
  36.         h2.addTransition(v0, h);
  37.         h2.addTransition(v1, h);
  38.         h2.addTransition(v2, h);
  39.         h2.addTransition(v3, h);
  40.         h.addTransition(v42, m1);
  41.         m1.addTransition(v0, m2);
  42.         m1.addTransition(v1, m2);
  43.         m1.addTransition(v2, m2);
  44.         m1.addTransition(v3, m2);
  45.         m1.addTransition(v4, m2);
  46.         m1.addTransition(v5, m2);
  47.         m2.addTransition(v0, m);
  48.         m2.addTransition(v1, m);
  49.         m2.addTransition(v2, m);
  50.         m2.addTransition(v3, m);
  51.         m2.addTransition(v4, m);
  52.         m2.addTransition(v5, m);
  53.         m2.addTransition(v6, m);
  54.         m2.addTransition(v7, m);
  55.         m2.addTransition(v8, m);
  56.         m2.addTransition(v9, m);
  57.  
  58.  
  59.         ArrayList<State> states = new ArrayList<>();
  60.  
  61.         states.add(e0);
  62.         states.add(h1);
  63.         states.add(h2);
  64.         states.add(h);
  65.         states.add(m1);
  66.         states.add(m2);
  67.         states.add(m);
  68.  
  69.         NierAuxTomates auxTomates = new NierAuxTomates(e0, m, states);
  70.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement