xylia.sax.contentmodelparser
Class FiniteStateAutomaton
java.lang.Object
|
+--xylia.sax.contentmodelparser.FiniteStateAutomaton
- public class FiniteStateAutomaton
- extends java.lang.Object
A Finite State Automaton.
An FSA consists of a start state, a state transition structure and
a set of final states.
Copyright: Copyright (c) 2002 Theodore S. Norvell
Company: MUN
- Version:
- 1.0
- Author:
- Theodore S. Norvell
Method Summary |
boolean |
match(java.util.List l)
Returns true iff the List is matched by the automaton. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FiniteStateAutomaton
public FiniteStateAutomaton(StateTransitionStructure d,
java.lang.Object s,
java.util.Set f)
match
public boolean match(java.util.List l)
- Returns true iff the List is matched by the automaton.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object