public class NFA extends Automaton
Modifier and Type | Field and Description |
---|---|
static Automaton |
nfa
An instance of NFA to test.
|
Constructor and Description |
---|
NFA() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String w)
This method checks the input string and prints result step by step.
|
java.util.Set<work.NFA.State> |
delta(work.NFA.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 nfa
public static java.lang.Class getStates()
public java.util.Set<work.NFA.State> delta(work.NFA.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.