public class Automaton<S extends State> extends Object
Modifier and Type | Field and Description |
---|---|
protected String[] |
alphabet |
protected int |
current |
protected String |
label |
protected int |
nInputs |
protected int |
nStates |
protected State[] |
states |
Constructor and Description |
---|
Automaton(String label) |
Automaton(String label,
int numberOfStates) |
Automaton(String label,
int numberOfStates,
int numberOfInputs) |
Modifier and Type | Method and Description |
---|---|
void |
addState(State newState) |
void |
addStates(State... newStates) |
String[] |
computeAlphabet() |
String[] |
getAlphabet() |
S |
getCurrentState() |
String |
getLabel() |
int |
getNumberOfStates() |
void |
printOn(PrintStream ps) |
protected String label
protected int nStates
protected State[] states
protected int nInputs
protected String[] alphabet
protected int current
public Automaton(String label, int numberOfStates, int numberOfInputs)
public Automaton(String label, int numberOfStates)
public Automaton(String label)
public void addState(State newState)
public void addStates(State... newStates)
public String getLabel()
public int getNumberOfStates()
public S getCurrentState()
public String[] computeAlphabet()
public String[] getAlphabet()
public void printOn(PrintStream ps)