|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface State
A state of an Automaton
.
Method Summary | |
---|---|
Alphabet |
getAlphabet()
Return the complete Alphabet to be considered at this state, including eventual local alphabet symbols. |
int |
getId()
Retrieve the id of this state. |
Symbol[] |
getInputSymbols()
Return all input-symbols for which a transition exists. |
Symbol |
getOutput()
Return output-symbol associated with this state. |
Symbol[] |
getOutputSymbols()
Return all output-symbols connected with existing transitions. |
Automaton |
getOwner()
Return the Automaton this state is part of. |
State[] |
getSuccessorStates()
Return all states reached by transitions of this state. |
Symbol |
getTransitionOutput(Symbol letter)
Get output-symbol of the transition triggered by the supplied input-symbol |
State |
getTransitionState(Symbol letter)
Get state the transition triggered by the supplied input-symbol leads to. |
boolean |
isWellDefined()
Determine if for every Symbol of the input-Alphabet a transition
exists. |
boolean |
setOutput(Symbol output)
Set output-symbol for this state as e.g. used in Moore automata. |
boolean |
setTransition(Symbol input,
State succ,
Symbol output)
Create a transition for a given input-symbol, leading into the supplied successor state and prodcing the supplied output-symbol. |
Method Detail |
---|
Automaton getOwner()
Automaton
this state is part of.
boolean isWellDefined()
Symbol
of the input-Alphabet
a transition
exists.
Symbol getTransitionOutput(Symbol letter)
letter
- input-symbol
State getTransitionState(Symbol letter)
letter
- input-symbol
Symbol[] getInputSymbols()
Symbol[] getOutputSymbols()
State[] getSuccessorStates()
boolean setTransition(Symbol input, State succ, Symbol output)
input
- input-symbolsucc
- state the transition leads intooutput
- output-symbol produced by transition
boolean setOutput(Symbol output)
output
- output-symbol of this state
Symbol getOutput()
Alphabet getAlphabet()
int getId()
Automaton
upon
creation of the state. Usually, the initial state will have id 0.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |