upstream version 1.2.2
[debian/freetts] / javadoc / com / sun / speech / freetts / cart / CARTImpl.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
2 <!--NewPage-->\r
3 <HTML>\r
4 <HEAD>\r
5 <!-- Generated by javadoc (build 1.4.2_16) on Mon Mar 09 18:20:29 CET 2009 -->\r
6 <TITLE>\r
7 CARTImpl (FreeTTS 1.2)\r
8 </TITLE>\r
9 \r
10 <META NAME="keywords" CONTENT="com.sun.speech.freetts.cart.CARTImpl class">\r
11 \r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">\r
13 \r
14 <SCRIPT type="text/javascript">\r
15 function windowTitle()\r
16 {\r
17     parent.document.title="CARTImpl (FreeTTS 1.2)";\r
18 }\r
19 </SCRIPT>\r
20 \r
21 </HEAD>\r
22 \r
23 <BODY BGCOLOR="white" onload="windowTitle();">\r
24 \r
25
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
30 <TR>\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>&nbsp;</TD>\r
36   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
37   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
38   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
39   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
42   </TR>\r
43 </TABLE>\r
44 </TD>\r
45 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
46 </EM>\r
47 </TD>\r
48 </TR>\r
49 \r
50 <TR>\r
51 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
52 &nbsp;PREV CLASS&nbsp;\r
53 &nbsp;<A HREF="../../../../../com/sun/speech/freetts/cart/Durator.html" title="class in com.sun.speech.freetts.cart"><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>  &nbsp;\r
56 &nbsp;<A HREF="CARTImpl.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
57 &nbsp;<SCRIPT type="text/javascript">\r
58   <!--\r
59   if(window==top) {\r
60     document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
61   }\r
62   //-->\r
63 </SCRIPT>\r
64 <NOSCRIPT>\r
65   <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
66 </NOSCRIPT>
67 \r
68 </FONT></TD>\r
69 </TR>\r
70 <TR>\r
71 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
72   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
74 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
75 </TR>\r
76 </TABLE>\r
77 <A NAME="skip-navbar_top"></A>
78 <!-- ========= END OF TOP NAVBAR ========= -->\r
79 \r
80 <HR>\r
81 <!-- ======== START OF CLASS DATA ======== -->\r
82 <H2>\r
83 <FONT SIZE="-1">\r
84 com.sun.speech.freetts.cart</FONT>\r
85 <BR>\r
86 Class CARTImpl</H2>\r
87 <PRE>\r
88 java.lang.Object\r
89   <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>com.sun.speech.freetts.cart.CARTImpl</B>\r
90 </PRE>\r
91 <DL>\r
92 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A></DD>\r
93 </DL>\r
94 <HR>\r
95 <DL>\r
96 <DT>public class <B>CARTImpl</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A></DL>\r
97 \r
98 <P>\r
99 Implementation of a Classification and Regression Tree (CART) that is
100  used more like a binary decision tree, with each node containing a
101  decision or a final value.  The decision nodes in the CART trees
102  operate on an Item and have the following format:
103
104  <pre>
105    NODE feat operand value qfalse 
106  </pre>
107
108  <p>Where <code>feat</code> is an string that represents a feature
109  to pass to the <code>findFeature</code> method of an item.
110
111  <p>The <code>value</code> represents the value to be compared against
112  the feature obtained from the item via the <code>feat</code> string.
113  The <code>operand</code> is the operation to do the comparison.  The
114  available operands are as follows:
115
116  <ul>
117    <li>&lt; - the feature is less than value 
118    <li>= - the feature is equal to the value 
119    <li>> - the feature is greater than the value 
120    <li>MATCHES - the feature matches the regular expression stored in value 
121    <li>IN - [[[TODO: still guessing because none of the CART's in
122      Flite seem to use IN]]] the value is in the list defined by the
123      feature.
124  </ul>
125
126  <p>[[[TODO: provide support for the IN operator.]]]
127
128  <p>For &lt; and >, this CART coerces the value and feature to
129  float's. For =, this CART coerces the value and feature to string and
130  checks for string equality. For MATCHES, this CART uses the value as a
131  regular expression and compares the obtained feature to that.
132
133  <p>A CART is represented by an array in this implementation. The
134  <code>qfalse</code> value represents the index of the array to go to if
135  the comparison does not match. In this implementation, qtrue index
136  is always implied, and represents the next element in the
137  array. The root node of the CART is the first element in the array.
138
139  <p>The interpretations always start at the root node of the CART
140  and continue until a final node is found.  The final nodes have the
141  following form:
142
143  <pre>
144    LEAF value
145  </pre>
146
147  <p>Where <code>value</code> represents the value of the node.
148  Reaching a final node indicates the interpretation is over and the
149  value of the node is the interpretation result.\r
150 <P>\r
151 \r
152 <P>\r
153 <HR>\r
154 \r
155 <P>\r
156 <!-- ======== NESTED CLASS SUMMARY ======== -->\r
157 \r
158 \r
159 <!-- =========== FIELD SUMMARY =========== -->\r
160 \r
161 \r
162 <!-- ======== CONSTRUCTOR SUMMARY ======== -->\r
163 \r
164 <A NAME="constructor_summary"><!-- --></A>
165 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
166 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
167 <TD COLSPAN=2><FONT SIZE="+2">\r
168 <B>Constructor Summary</B></FONT></TD>\r
169 </TR>\r
170 <TR BGCOLOR="white" CLASS="TableRowColor">\r
171 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/CARTImpl.html#CARTImpl(java.io.BufferedReader, int)">CARTImpl</A></B>(java.io.BufferedReader&nbsp;reader,
172          int&nbsp;nodes)</CODE>\r
173 \r
174 <BR>\r
175 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new CART by reading from the given reader.</TD>\r
176 </TR>\r
177 <TR BGCOLOR="white" CLASS="TableRowColor">\r
178 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/CARTImpl.html#CARTImpl(java.net.URL)">CARTImpl</A></B>(java.net.URL&nbsp;url)</CODE>\r
179 \r
180 <BR>\r
181 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new CART by reading from the given URL.</TD>\r
182 </TR>\r
183 </TABLE>\r
184 &nbsp;\r
185 <!-- ========== METHOD SUMMARY =========== -->\r
186 \r
187 <A NAME="method_summary"><!-- --></A>
188 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
189 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
190 <TD COLSPAN=2><FONT SIZE="+2">\r
191 <B>Method Summary</B></FONT></TD>\r
192 </TR>\r
193 <TR BGCOLOR="white" CLASS="TableRowColor">\r
194 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
195 <CODE>&nbsp;void</CODE></FONT></TD>\r
196 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/CARTImpl.html#dumpBinary(java.io.DataOutputStream)">dumpBinary</A></B>(java.io.DataOutputStream&nbsp;os)</CODE>\r
197 \r
198 <BR>\r
199 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dumps this CART to the output stream.</TD>\r
200 </TR>\r
201 <TR BGCOLOR="white" CLASS="TableRowColor">\r
202 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
203 <CODE>protected &nbsp;com.sun.speech.freetts.cart.CARTImpl.Node</CODE></FONT></TD>\r
204 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/CARTImpl.html#getNode(java.lang.String, java.util.StringTokenizer, int)">getNode</A></B>(java.lang.String&nbsp;type,
205         java.util.StringTokenizer&nbsp;tokenizer,
206         int&nbsp;currentNode)</CODE>\r
207 \r
208 <BR>\r
209 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the node based upon the type and tokenizer.</TD>\r
210 </TR>\r
211 <TR BGCOLOR="white" CLASS="TableRowColor">\r
212 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
213 <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>\r
214 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/CARTImpl.html#interpret(com.sun.speech.freetts.Item)">interpret</A></B>(<A HREF="../../../../../com/sun/speech/freetts/Item.html" title="class in com.sun.speech.freetts">Item</A>&nbsp;item)</CODE>\r
215 \r
216 <BR>\r
217 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Passes the given item through this CART and returns the
218  interpretation.</TD>\r
219 </TR>\r
220 <TR BGCOLOR="white" CLASS="TableRowColor">\r
221 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
222 <CODE>static&nbsp;<A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A></CODE></FONT></TD>\r
223 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/CARTImpl.html#loadBinary(java.nio.ByteBuffer)">loadBinary</A></B>(java.nio.ByteBuffer&nbsp;bb)</CODE>\r
224 \r
225 <BR>\r
226 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads a CART from the input byte buffer.</TD>\r
227 </TR>\r
228 <TR BGCOLOR="white" CLASS="TableRowColor">\r
229 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
230 <CODE>static&nbsp;<A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A></CODE></FONT></TD>\r
231 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/CARTImpl.html#loadBinary(java.io.DataInputStream)">loadBinary</A></B>(java.io.DataInputStream&nbsp;is)</CODE>\r
232 \r
233 <BR>\r
234 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads a CART from the input stream.</TD>\r
235 </TR>\r
236 <TR BGCOLOR="white" CLASS="TableRowColor">\r
237 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
238 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
239 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/CARTImpl.html#parseAndAdd(java.lang.String)">parseAndAdd</A></B>(java.lang.String&nbsp;line)</CODE>\r
240 \r
241 <BR>\r
242 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a node from the given input line and add it to the CART.
243  </TD>\r
244 </TR>\r
245 <TR BGCOLOR="white" CLASS="TableRowColor">\r
246 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
247 <CODE>protected &nbsp;java.lang.Object</CODE></FONT></TD>\r
248 <TD><CODE><B><A HREF="../../../../../com/sun/speech/freetts/cart/CARTImpl.html#parseValue(java.lang.String)">parseValue</A></B>(java.lang.String&nbsp;string)</CODE>\r
249 \r
250 <BR>\r
251 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Coerces a string into a value.</TD>\r
252 </TR>\r
253 </TABLE>\r
254 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
255 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
256 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
257 <TD><B>Methods inherited from class java.lang.Object</B></TD>\r
258 </TR>\r
259 <TR BGCOLOR="white" CLASS="TableRowColor">\r
260 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>\r
261 </TR>\r
262 </TABLE>\r
263 &nbsp;\r
264 <P>\r
265 \r
266 <!-- ============ FIELD DETAIL =========== -->\r
267 \r
268 \r
269 <!-- ========= CONSTRUCTOR DETAIL ======== -->\r
270 \r
271 <A NAME="constructor_detail"><!-- --></A>
272 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
273 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
274 <TD COLSPAN=1><FONT SIZE="+2">\r
275 <B>Constructor Detail</B></FONT></TD>\r
276 </TR>\r
277 </TABLE>\r
278 \r
279 <A NAME="CARTImpl(java.net.URL)"><!-- --></A><H3>\r
280 CARTImpl</H3>\r
281 <PRE>\r
282 public <B>CARTImpl</B>(java.net.URL&nbsp;url)
283          throws java.io.IOException</PRE>\r
284 <DL>\r
285 <DD>Creates a new CART by reading from the given URL.\r
286 <P>\r
287 <DT><B>Parameters:</B><DD><CODE>url</CODE> - the location of the CART data
288 <DT><B>Throws:</B>
289 <DD><CODE>java.io.IOException</CODE> - if errors occur while reading the data</DL>\r
290 <HR>\r
291 \r
292 <A NAME="CARTImpl(java.io.BufferedReader, int)"><!-- --></A><H3>\r
293 CARTImpl</H3>\r
294 <PRE>\r
295 public <B>CARTImpl</B>(java.io.BufferedReader&nbsp;reader,
296                 int&nbsp;nodes)
297          throws java.io.IOException</PRE>\r
298 <DL>\r
299 <DD>Creates a new CART by reading from the given reader.\r
300 <P>\r
301 <DT><B>Parameters:</B><DD><CODE>reader</CODE> - the source of the CART data<DD><CODE>nodes</CODE> - the number of nodes to read for this cart
302 <DT><B>Throws:</B>
303 <DD><CODE>java.io.IOException</CODE> - if errors occur while reading the data</DL>\r
304 \r
305 <!-- ============ METHOD DETAIL ========== -->\r
306 \r
307 <A NAME="method_detail"><!-- --></A>
308 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
309 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
310 <TD COLSPAN=1><FONT SIZE="+2">\r
311 <B>Method Detail</B></FONT></TD>\r
312 </TR>\r
313 </TABLE>\r
314 \r
315 <A NAME="dumpBinary(java.io.DataOutputStream)"><!-- --></A><H3>\r
316 dumpBinary</H3>\r
317 <PRE>\r
318 public void <B>dumpBinary</B>(java.io.DataOutputStream&nbsp;os)
319                 throws java.io.IOException</PRE>\r
320 <DL>\r
321 <DD>Dumps this CART to the output stream.\r
322 <P>\r
323 <DD><DL>\r
324 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/speech/freetts/cart/CART.html#dumpBinary(java.io.DataOutputStream)">dumpBinary</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A></CODE></DL>\r
325 </DD>\r
326 <DD><DL>\r
327 <DT><B>Parameters:</B><DD><CODE>os</CODE> - the output stream
328 <DT><B>Throws:</B>
329 <DD><CODE>java.io.IOException</CODE> - if an error occurs during output</DL>\r
330 </DD>\r
331 </DL>\r
332 <HR>\r
333 \r
334 <A NAME="loadBinary(java.nio.ByteBuffer)"><!-- --></A><H3>\r
335 loadBinary</H3>\r
336 <PRE>\r
337 public static <A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A> <B>loadBinary</B>(java.nio.ByteBuffer&nbsp;bb)
338                        throws java.io.IOException</PRE>\r
339 <DL>\r
340 <DD>Loads a CART from the input byte buffer.\r
341 <P>\r
342 <DD><DL>\r
343 </DL>\r
344 </DD>\r
345 <DD><DL>\r
346 <DT><B>Parameters:</B><DD><CODE>bb</CODE> - the byte buffer
347 <DT><B>Returns:</B><DD>the CART
348 <DT><B>Throws:</B>
349 <DD><CODE>java.io.IOException</CODE> - if an error occurs during output
350
351  Note that cart nodes are really saved as strings that
352  have to be parsed.</DL>\r
353 </DD>\r
354 </DL>\r
355 <HR>\r
356 \r
357 <A NAME="loadBinary(java.io.DataInputStream)"><!-- --></A><H3>\r
358 loadBinary</H3>\r
359 <PRE>\r
360 public static <A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A> <B>loadBinary</B>(java.io.DataInputStream&nbsp;is)
361                        throws java.io.IOException</PRE>\r
362 <DL>\r
363 <DD>Loads a CART from the input stream.\r
364 <P>\r
365 <DD><DL>\r
366 </DL>\r
367 </DD>\r
368 <DD><DL>\r
369 <DT><B>Parameters:</B><DD><CODE>is</CODE> - the input stream
370 <DT><B>Returns:</B><DD>the CART
371 <DT><B>Throws:</B>
372 <DD><CODE>java.io.IOException</CODE> - if an error occurs during output
373
374  Note that cart nodes are really saved as strings that
375  have to be parsed.</DL>\r
376 </DD>\r
377 </DL>\r
378 <HR>\r
379 \r
380 <A NAME="parseAndAdd(java.lang.String)"><!-- --></A><H3>\r
381 parseAndAdd</H3>\r
382 <PRE>\r
383 protected void <B>parseAndAdd</B>(java.lang.String&nbsp;line)</PRE>\r
384 <DL>\r
385 <DD>Creates a node from the given input line and add it to the CART.
386  It expects the TOTAL line to come before any of the nodes.\r
387 <P>\r
388 <DD><DL>\r
389 </DL>\r
390 </DD>\r
391 <DD><DL>\r
392 <DT><B>Parameters:</B><DD><CODE>line</CODE> - a line of input to parse</DL>\r
393 </DD>\r
394 </DL>\r
395 <HR>\r
396 \r
397 <A NAME="getNode(java.lang.String, java.util.StringTokenizer, int)"><!-- --></A><H3>\r
398 getNode</H3>\r
399 <PRE>\r
400 protected com.sun.speech.freetts.cart.CARTImpl.Node <B>getNode</B>(java.lang.String&nbsp;type,
401                                                             java.util.StringTokenizer&nbsp;tokenizer,
402                                                             int&nbsp;currentNode)</PRE>\r
403 <DL>\r
404 <DD>Gets the node based upon the type and tokenizer.\r
405 <P>\r
406 <DD><DL>\r
407 </DL>\r
408 </DD>\r
409 <DD><DL>\r
410 <DT><B>Parameters:</B><DD><CODE>type</CODE> - <code>NODE</code> or <code>LEAF</code><DD><CODE>tokenizer</CODE> - the StringTokenizer containing the data to get<DD><CODE>currentNode</CODE> - the index of the current node we're looking at
411 <DT><B>Returns:</B><DD>the node</DL>\r
412 </DD>\r
413 </DL>\r
414 <HR>\r
415 \r
416 <A NAME="parseValue(java.lang.String)"><!-- --></A><H3>\r
417 parseValue</H3>\r
418 <PRE>\r
419 protected java.lang.Object <B>parseValue</B>(java.lang.String&nbsp;string)</PRE>\r
420 <DL>\r
421 <DD>Coerces a string into a value.\r
422 <P>\r
423 <DD><DL>\r
424 </DL>\r
425 </DD>\r
426 <DD><DL>\r
427 <DT><B>Parameters:</B><DD><CODE>string</CODE> - of the form "type(value)"; for example, "Float(2.3)"
428 <DT><B>Returns:</B><DD>the value</DL>\r
429 </DD>\r
430 </DL>\r
431 <HR>\r
432 \r
433 <A NAME="interpret(com.sun.speech.freetts.Item)"><!-- --></A><H3>\r
434 interpret</H3>\r
435 <PRE>\r
436 public java.lang.Object <B>interpret</B>(<A HREF="../../../../../com/sun/speech/freetts/Item.html" title="class in com.sun.speech.freetts">Item</A>&nbsp;item)</PRE>\r
437 <DL>\r
438 <DD>Passes the given item through this CART and returns the
439  interpretation.\r
440 <P>\r
441 <DD><DL>\r
442 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/speech/freetts/cart/CART.html#interpret(com.sun.speech.freetts.Item)">interpret</A></CODE> in interface <CODE><A HREF="../../../../../com/sun/speech/freetts/cart/CART.html" title="interface in com.sun.speech.freetts.cart">CART</A></CODE></DL>\r
443 </DD>\r
444 <DD><DL>\r
445 <DT><B>Parameters:</B><DD><CODE>item</CODE> - the item to analyze
446 <DT><B>Returns:</B><DD>the interpretation</DL>\r
447 </DD>\r
448 </DL>\r
449 <!-- ========= END OF CLASS DATA ========= -->\r
450 <HR>\r
451 \r
452
453 <!-- ======= START OF BOTTOM NAVBAR ====== -->\r
454 <A NAME="navbar_bottom"><!-- --></A>
455 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
456 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
457 <TR>\r
458 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
459 <A NAME="navbar_bottom_firstrow"><!-- --></A>
460 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
461   <TR ALIGN="center" VALIGN="top">\r
462   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
463   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
464   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
465   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
466   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
467   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
468   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
469   </TR>\r
470 </TABLE>\r
471 </TD>\r
472 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
473 </EM>\r
474 </TD>\r
475 </TR>\r
476 \r
477 <TR>\r
478 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
479 &nbsp;PREV CLASS&nbsp;\r
480 &nbsp;<A HREF="../../../../../com/sun/speech/freetts/cart/Durator.html" title="class in com.sun.speech.freetts.cart"><B>NEXT CLASS</B></A></FONT></TD>\r
481 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
482   <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
483 &nbsp;<A HREF="CARTImpl.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
484 &nbsp;<SCRIPT type="text/javascript">\r
485   <!--\r
486   if(window==top) {\r
487     document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');\r
488   }\r
489   //-->\r
490 </SCRIPT>\r
491 <NOSCRIPT>\r
492   <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>\r
493 </NOSCRIPT>
494 \r
495 </FONT></TD>\r
496 </TR>\r
497 <TR>\r
498 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
499   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
500 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
501 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
502 </TR>\r
503 </TABLE>\r
504 <A NAME="skip-navbar_bottom"></A>
505 <!-- ======== END OF BOTTOM NAVBAR ======= -->\r
506 \r
507 <HR>\r
508 \r
509 </BODY>\r
510 </HTML>\r