public class DFA extends Automaton
Modifier and Type | Field and Description |
---|---|
static Automaton |
dfa
An instance of DFA to test.
|
Constructor and Description |
---|
DFA() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String w)
This method checks the input string and prints result step by step.
|
work.DFA.State |
delta(work.DFA.State q,
char c)
This method determines and returns the next state of automaton for given state and input char.
|
static java.lang.Class |
getStates()
This static method returns the enumerated class.
|
static void |
main(java.lang.String[] args)
This is the main method which makes use of test method.
|
public static final Automaton dfa
public static java.lang.Class getStates()
public work.DFA.State delta(work.DFA.State q, char c)
q
- Current State.c
- Input char of step.public boolean accept(java.lang.String w)
public static void main(java.lang.String[] args)
args
- Unused.