KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > jrexx > set > SAutomatonData


1 /*
2 * 01/07/2003 - 15:19:32
3 *
4 * Pattern.java -
5 * Copyright (C) 2003 Buero fuer Softwarearchitektur GbR
6 * ralf.meyer@karneim.com
7 * http://jrexx.sf.net
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 */

23 package com.tc.jrexx.set;
24
25 /**
26  * @deprecated
27  */

28 public class SAutomatonData extends XML {
29   /**
30    * @deprecated
31    */

32   public static class State extends XML {
33     /**
34      * @deprecated
35      */

36     public static class Transition extends XML {
37       public com.tc.jrexx.automaton.IProperties properties;
38       public String JavaDoc charSet;
39       public int toStateNumber;
40
41       public Transition(
42         com.tc.jrexx.automaton.IProperties properties,
43         String JavaDoc charSet,
44         int toStateNumber
45       ) {
46         this.properties = properties;
47         this.charSet = charSet;
48         this.toStateNumber = toStateNumber;
49       }
50     }
51     public int number;
52     public boolean isFinal;
53     public Transition[] transitions;
54     boolean transitionsAreDeterministic;
55
56     public State(
57       int number,
58       SAutomatonData.State.Transition[] transitions,
59       boolean transitionsAreDeterministic
60     ) {
61       this(number,false,transitions,transitionsAreDeterministic);
62     }
63
64     public State(
65       int number,
66       boolean isFinal,
67       SAutomatonData.State.Transition[] transitions,
68       boolean transitionsAreDeterministic
69     ) {
70       this.number = number;
71       this.isFinal = isFinal;
72       this.transitions = transitions;
73       this.transitionsAreDeterministic = transitionsAreDeterministic;
74     }
75   }
76   public State[] states;
77   public Integer JavaDoc startStateNumber;
78   public boolean isDeterministic;
79
80
81   public SAutomatonData(
82     SAutomatonData.State[] states,
83     Integer JavaDoc startStateNumber,
84     boolean isDeterministic
85   ) {
86     this.states = states;
87     this.startStateNumber = startStateNumber;
88     this.isDeterministic = isDeterministic;
89   }
90 }
91
Popular Tags