01: /*
02: * 01/07/2003 - 15:19:32
03: *
04: * Pattern.java -
05: * Copyright (C) 2003 Buero fuer Softwarearchitektur GbR
06: * ralf.meyer@karneim.com
07: * http://jrexx.sf.net
08: *
09: * 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 charSet;
39: public int toStateNumber;
40:
41: public Transition(
42: com.tc.jrexx.automaton.IProperties properties,
43: String charSet, int toStateNumber) {
44: this .properties = properties;
45: this .charSet = charSet;
46: this .toStateNumber = toStateNumber;
47: }
48: }
49:
50: public int number;
51: public boolean isFinal;
52: public Transition[] transitions;
53: boolean transitionsAreDeterministic;
54:
55: public State(int number,
56: SAutomatonData.State.Transition[] transitions,
57: boolean transitionsAreDeterministic) {
58: this (number, false, transitions,
59: transitionsAreDeterministic);
60: }
61:
62: public State(int number, boolean isFinal,
63: SAutomatonData.State.Transition[] transitions,
64: boolean transitionsAreDeterministic) {
65: this .number = number;
66: this .isFinal = isFinal;
67: this .transitions = transitions;
68: this .transitionsAreDeterministic = transitionsAreDeterministic;
69: }
70: }
71:
72: public State[] states;
73: public Integer startStateNumber;
74: public boolean isDeterministic;
75:
76: public SAutomatonData(SAutomatonData.State[] states,
77: Integer startStateNumber, boolean isDeterministic) {
78: this.states = states;
79: this.startStateNumber = startStateNumber;
80: this.isDeterministic = isDeterministic;
81: }
82: }
|