FSMSF
public class Automata extends java.lang.Object
Constructor and Description |
---|
Automata()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addFinalState(State fst) |
void |
addState(State st) |
void |
addTransition(State ist,
Symbol sbl,
State fst) |
java.util.HashSet<State> |
getFinalStates() |
State |
getInitialState()
the methods to explore the automata
|
State |
getNextState(Symbol sbl) |
boolean |
isAcceptableSymbol(Symbol sbl) |
boolean |
isFinalState(State cs) |
boolean |
isInitialState(State cs) |
State |
moveNextState(Symbol sbl) |
void |
setCurrentState(State cst) |
void |
setInitialState(State ist) |
java.lang.String |
toString() |
public void setInitialState(State ist)
public void addState(State st)
public void setCurrentState(State cst)
public void addFinalState(State fst)
public State getInitialState()
public java.util.HashSet<State> getFinalStates()
public boolean isInitialState(State cs)
public boolean isFinalState(State cs)
public boolean isAcceptableSymbol(Symbol sbl)
public java.lang.String toString()
toString
in class java.lang.Object