|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.speech.freetts.en.us.PronounceableFSM
Implements a finite state machine that checks if a given string
is pronounceable. If it is pronounceable, the method
accept() will return true.
| Field Summary | |
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 Summary | |
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. |
|
| Method Summary | |
boolean |
accept(java.lang.String inputString)
Checks to see if this finite state machine accepts the given input string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int vocabularySize
protected int[] transitions
protected boolean scanFromFront
| Constructor Detail |
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 back
public 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| Method Detail |
public boolean accept(java.lang.String inputString)
inputString - the input string to be tested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||