1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
\r
5 <!-- Generated by javadoc (build 1.4.2_16) on Mon Mar 09 18:20:30 CET 2009 -->
\r
7 PronounceableFSM (FreeTTS 1.2)
\r
10 <META NAME="keywords" CONTENT="com.sun.speech.freetts.en.us.PronounceableFSM class">
\r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
\r
14 <SCRIPT type="text/javascript">
\r
15 function windowTitle()
\r
17 parent.document.title="PronounceableFSM (FreeTTS 1.2)";
\r
23 <BODY BGCOLOR="white" onload="windowTitle();">
\r
26 <!-- ========= START OF TOP NAVBAR ======= -->
\r
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
34 <TR ALIGN="center" VALIGN="top">
\r
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
45 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
51 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
52 <A HREF="../../../../../../com/sun/speech/freetts/en/us/PrefixFSM.html" title="class in com.sun.speech.freetts.en.us"><B>PREV CLASS</B></A>
\r
53 <A HREF="../../../../../../com/sun/speech/freetts/en/us/SuffixFSM.html" title="class in com.sun.speech.freetts.en.us"><B>NEXT CLASS</B></A></FONT></TD>
\r
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
55 <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
\r
56 <A HREF="PronounceableFSM.html" target="_top"><B>NO FRAMES</B></A>
\r
57 <SCRIPT type="text/javascript">
\r
60 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
65 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
71 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
72 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
74 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
77 <A NAME="skip-navbar_top"></A>
78 <!-- ========= END OF TOP NAVBAR ========= -->
\r
81 <!-- ======== START OF CLASS DATA ======== -->
\r
84 com.sun.speech.freetts.en.us</FONT>
\r
86 Class PronounceableFSM</H2>
\r
89 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>com.sun.speech.freetts.en.us.PronounceableFSM</B>
\r
92 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../../com/sun/speech/freetts/en/us/PrefixFSM.html" title="class in com.sun.speech.freetts.en.us">PrefixFSM</A>, <A HREF="../../../../../../com/sun/speech/freetts/en/us/SuffixFSM.html" title="class in com.sun.speech.freetts.en.us">SuffixFSM</A></DD>
\r
96 <DT>public class <B>PronounceableFSM</B><DT>extends java.lang.Object</DL>
\r
99 Implements a finite state machine that checks if a given string
100 is pronounceable. If it is pronounceable, the method
101 <code>accept()</code> will return true.
\r
108 <!-- ======== NESTED CLASS SUMMARY ======== -->
\r
111 <!-- =========== FIELD SUMMARY =========== -->
\r
113 <A NAME="field_summary"><!-- --></A>
114 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
115 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
116 <TD COLSPAN=2><FONT SIZE="+2">
\r
117 <B>Field Summary</B></FONT></TD>
\r
119 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
120 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
121 <CODE>protected boolean</CODE></FONT></TD>
\r
122 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/PronounceableFSM.html#scanFromFront">scanFromFront</A></B></CODE>
\r
125 Whether we should scan the input string from the front.</TD>
\r
127 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
128 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
129 <CODE>protected int[]</CODE></FONT></TD>
\r
130 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/PronounceableFSM.html#transitions">transitions</A></B></CODE>
\r
133 The transitions of this FSM</TD>
\r
135 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
136 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
137 <CODE>protected int</CODE></FONT></TD>
\r
138 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/PronounceableFSM.html#vocabularySize">vocabularySize</A></B></CODE>
\r
141 The vocabulary size.</TD>
\r
145 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
\r
147 <A NAME="constructor_summary"><!-- --></A>
148 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
149 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
150 <TD COLSPAN=2><FONT SIZE="+2">
\r
151 <B>Constructor Summary</B></FONT></TD>
\r
153 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
154 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/PronounceableFSM.html#PronounceableFSM(int, int[], boolean)">PronounceableFSM</A></B>(int vocabularySize,
155 int[] transitions,
156 boolean scanFromFront)</CODE>
\r
159 Constructs a PronounceableFSM with the given attributes.</TD>
\r
161 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
162 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/PronounceableFSM.html#PronounceableFSM(java.net.URL, boolean)">PronounceableFSM</A></B>(java.net.URL url,
163 boolean scanFromFront)</CODE>
\r
166 Constructs a PronounceableFSM with information in the given URL.</TD>
\r
170 <!-- ========== METHOD SUMMARY =========== -->
\r
172 <A NAME="method_summary"><!-- --></A>
173 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
174 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
175 <TD COLSPAN=2><FONT SIZE="+2">
\r
176 <B>Method Summary</B></FONT></TD>
\r
178 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
179 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
180 <CODE> boolean</CODE></FONT></TD>
\r
181 <TD><CODE><B><A HREF="../../../../../../com/sun/speech/freetts/en/us/PronounceableFSM.html#accept(java.lang.String)">accept</A></B>(java.lang.String inputString)</CODE>
\r
184 Checks to see if this finite state machine accepts the given
188 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
189 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
190 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
191 <TD><B>Methods inherited from class java.lang.Object</B></TD>
\r
193 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
194 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
\r
200 <!-- ============ FIELD DETAIL =========== -->
\r
202 <A NAME="field_detail"><!-- --></A>
203 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
204 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
205 <TD COLSPAN=1><FONT SIZE="+2">
\r
206 <B>Field Detail</B></FONT></TD>
\r
210 <A NAME="vocabularySize"><!-- --></A><H3>
\r
211 vocabularySize</H3>
\r
213 protected int <B>vocabularySize</B></PRE>
\r
215 <DD>The vocabulary size.
\r
222 <A NAME="transitions"><!-- --></A><H3>
\r
225 protected int[] <B>transitions</B></PRE>
\r
227 <DD>The transitions of this FSM
\r
234 <A NAME="scanFromFront"><!-- --></A><H3>
\r
237 protected boolean <B>scanFromFront</B></PRE>
\r
239 <DD>Whether we should scan the input string from the front.
\r
245 <!-- ========= CONSTRUCTOR DETAIL ======== -->
\r
247 <A NAME="constructor_detail"><!-- --></A>
248 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
249 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
250 <TD COLSPAN=1><FONT SIZE="+2">
\r
251 <B>Constructor Detail</B></FONT></TD>
\r
255 <A NAME="PronounceableFSM(java.net.URL, boolean)"><!-- --></A><H3>
\r
256 PronounceableFSM</H3>
\r
258 public <B>PronounceableFSM</B>(java.net.URL url,
259 boolean scanFromFront)
260 throws java.io.IOException</PRE>
\r
262 <DD>Constructs a PronounceableFSM with information in the given URL.
\r
264 <DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL that contains the FSM specification<DD><CODE>scanFromFront</CODE> - indicates whether this FSM should scan the input
265 string from the front, or from the back</DL>
\r
268 <A NAME="PronounceableFSM(int, int[], boolean)"><!-- --></A><H3>
\r
269 PronounceableFSM</H3>
\r
271 public <B>PronounceableFSM</B>(int vocabularySize,
272 int[] transitions,
273 boolean scanFromFront)</PRE>
\r
275 <DD>Constructs a PronounceableFSM with the given attributes.
\r
277 <DT><B>Parameters:</B><DD><CODE>vocabularySize</CODE> - the vocabulary size of the FSM<DD><CODE>transitions</CODE> - the transitions of the FSM<DD><CODE>scanFromFront</CODE> - indicates whether this FSM should scan the input
278 string from the front, or from the back</DL>
\r
280 <!-- ============ METHOD DETAIL ========== -->
\r
282 <A NAME="method_detail"><!-- --></A>
283 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
284 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
285 <TD COLSPAN=1><FONT SIZE="+2">
\r
286 <B>Method Detail</B></FONT></TD>
\r
290 <A NAME="accept(java.lang.String)"><!-- --></A><H3>
\r
293 public boolean <B>accept</B>(java.lang.String inputString)</PRE>
\r
295 <DD>Checks to see if this finite state machine accepts the given
299 <DT><B>Parameters:</B><DD><CODE>inputString</CODE> - the input string to be tested
300 <DT><B>Returns:</B><DD>true if this FSM accepts, false if it rejects</DL>
\r
303 <!-- ========= END OF CLASS DATA ========= -->
\r
307 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
308 <A NAME="navbar_bottom"><!-- --></A>
309 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
310 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
312 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
313 <A NAME="navbar_bottom_firstrow"><!-- --></A>
314 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
315 <TR ALIGN="center" VALIGN="top">
\r
316 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
317 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
318 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
319 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
320 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
321 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
322 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
326 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
332 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
333 <A HREF="../../../../../../com/sun/speech/freetts/en/us/PrefixFSM.html" title="class in com.sun.speech.freetts.en.us"><B>PREV CLASS</B></A>
\r
334 <A HREF="../../../../../../com/sun/speech/freetts/en/us/SuffixFSM.html" title="class in com.sun.speech.freetts.en.us"><B>NEXT CLASS</B></A></FONT></TD>
\r
335 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
336 <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
\r
337 <A HREF="PronounceableFSM.html" target="_top"><B>NO FRAMES</B></A>
\r
338 <SCRIPT type="text/javascript">
\r
341 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
346 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
352 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
353 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
354 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
355 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
358 <A NAME="skip-navbar_bottom"></A>
359 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r