| Modifier and Type | Field and Description |
|---|---|
protected boolean |
scanFromFront
Whether we should scan the input string from the front.
|
protected int[] |
transitions
The transitions of this FSM
|
protected int |
vocabularySize
The vocabulary size.
|
| Constructor and Description |
|---|
PronounceableFSM(int vocabularySize,
int[] transitions,
boolean scanFromFront)
Constructs a PronounceableFSM with the given attributes.
|
PronounceableFSM(java.net.URL url,
boolean scanFromFront)
Constructs a PronounceableFSM with information in the given URL.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.String inputString)
Checks to see if this finite state machine accepts the given input
string.
|
protected int vocabularySize
protected int[] transitions
protected boolean scanFromFront
public PronounceableFSM(java.net.URL url,
boolean scanFromFront)
throws java.io.IOException
url - the URL that contains the FSM specificationscanFromFront - indicates whether this FSM should scan the input
string from the front, or from the backjava.io.IOException - if something went wrongpublic PronounceableFSM(int vocabularySize,
int[] transitions,
boolean scanFromFront)
vocabularySize - the vocabulary size of the FSMtransitions - the transitions of the FSMscanFromFront - indicates whether this FSM should scan the input
string from the front, or from the back