public interface Automaton
Modifier and Type | Method and Description |
---|---|
String |
getPattern()
Returns the pattern.
|
double |
getScore()
Returns the word score.
|
String |
getWord()
Returns the word.
|
boolean |
isWordAccepted()
Returns
true if the word is accepted. |
boolean |
isWordRejected()
Returns
true if the word is rejected. |
Automaton |
step(char symbol)
Returns a new automaton transitioned to another state.
|
Automaton |
step(String symbols)
Returns a new automaton transitioned to another state.
|
Automaton |
stepUntilWordAccepted(String symbols)
Returns a new automaton transitioned to another state.
|
String getPattern()
double getScore()
String getWord()
boolean isWordAccepted()
true
if the word is accepted.boolean isWordRejected()
true
if the word is rejected.Automaton step(char symbol)
Automaton step(String symbols)
NullPointerException
- if symbols
is null;Automaton stepUntilWordAccepted(String symbols)
NullPointerException
- if symbols
is null;Copyright © 2017. All rights reserved.