OSDN Git Service

3a66c06a6c5b5fc11a878dd0b3fda0b5abfb1f38
[nxt-jsp/lejos_nxj.git] / nxtOSEK / lejos_nxj / docs / apidocs / lejos / nxt / comm / BTRemoteDevice.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.5.0_09) on Sun Sep 02 23:07:09 BST 2007 -->
6 <TITLE>
7 BTRemoteDevice (leJOS NXT API documentation)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="lejos.nxt.comm.BTRemoteDevice class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17     parent.document.title="BTRemoteDevice (leJOS NXT API documentation)";
18 }
19 </SCRIPT>
20 <NOSCRIPT>
21 </NOSCRIPT>
22
23 </HEAD>
24
25 <BODY BGCOLOR="white" onload="windowTitle();">
26
27
28 <!-- ========= START OF TOP NAVBAR ======= -->
29 <A NAME="navbar_top"><!-- --></A>
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32 <TR>
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34 <A NAME="navbar_top_firstrow"><!-- --></A>
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36   <TR ALIGN="center" VALIGN="top">
37   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44   </TR>
45 </TABLE>
46 </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48 </EM>
49 </TD>
50 </TR>
51
52 <TR>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 &nbsp;<A HREF="../../../lejos/nxt/comm/BTOutputStream.html" title="class in lejos.nxt.comm"><B>PREV CLASS</B></A>&nbsp;
55 &nbsp;<A HREF="../../../lejos/nxt/comm/LCP.html" title="class in lejos.nxt.comm"><B>NEXT CLASS</B></A></FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57   <A HREF="../../../index.html?lejos/nxt/comm/BTRemoteDevice.html" target="_top"><B>FRAMES</B></A>  &nbsp;
58 &nbsp;<A HREF="BTRemoteDevice.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
59 &nbsp;<SCRIPT type="text/javascript">
60   <!--
61   if(window==top) {
62     document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
63   }
64   //-->
65 </SCRIPT>
66 <NOSCRIPT>
67   <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
68 </NOSCRIPT>
69
70
71 </FONT></TD>
72 </TR>
73 <TR>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
78 </TR>
79 </TABLE>
80 <A NAME="skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
82
83 <HR>
84 <!-- ======== START OF CLASS DATA ======== -->
85 <H2>
86 <FONT SIZE="-1">
87 lejos.nxt.comm</FONT>
88 <BR>
89 Class BTRemoteDevice</H2>
90 <PRE>
91 <A HREF="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A>
92   <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>lejos.nxt.comm.BTRemoteDevice</B>
93 </PRE>
94 <HR>
95 <DL>
96 <DT><PRE>public class <B>BTRemoteDevice</B><DT>extends <A HREF="../../../java/lang/Object.html" title="class in java.lang">Object</A></DL>
97 </PRE>
98
99 <P>
100 <HR>
101
102 <P>
103
104 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
105
106 <A NAME="constructor_summary"><!-- --></A>
107 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
108 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
109 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
110 <B>Constructor Summary</B></FONT></TH>
111 </TR>
112 <TR BGCOLOR="white" CLASS="TableRowColor">
113 <TD><CODE><B><A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html#BTRemoteDevice(char[], int, byte[], byte[])">BTRemoteDevice</A></B>(char[]&nbsp;friendlyNameCharArray,
114                int&nbsp;len,
115                byte[]&nbsp;deviceAddr,
116                byte[]&nbsp;devclass)</CODE>
117
118 <BR>
119 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
120 </TR>
121 </TABLE>
122 &nbsp;
123 <!-- ========== METHOD SUMMARY =========== -->
124
125 <A NAME="method_summary"><!-- --></A>
126 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
127 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
128 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
129 <B>Method Summary</B></FONT></TH>
130 </TR>
131 <TR BGCOLOR="white" CLASS="TableRowColor">
132 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133 <CODE>&nbsp;<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A></CODE></FONT></TD>
134 <TD><CODE><B><A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html#getAddressString()">getAddressString</A></B>()</CODE>
135
136 <BR>
137 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
138 </TR>
139 <TR BGCOLOR="white" CLASS="TableRowColor">
140 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141 <CODE>&nbsp;byte[]</CODE></FONT></TD>
142 <TD><CODE><B><A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html#getDeviceAddr()">getDeviceAddr</A></B>()</CODE>
143
144 <BR>
145 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
146 </TR>
147 <TR BGCOLOR="white" CLASS="TableRowColor">
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149 <CODE>&nbsp;byte[]</CODE></FONT></TD>
150 <TD><CODE><B><A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html#getDeviceClass()">getDeviceClass</A></B>()</CODE>
151
152 <BR>
153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
154 </TR>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157 <CODE>&nbsp;<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A></CODE></FONT></TD>
158 <TD><CODE><B><A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html#getFriendlyName()">getFriendlyName</A></B>()</CODE>
159
160 <BR>
161 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
162 </TR>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165 <CODE>&nbsp;int</CODE></FONT></TD>
166 <TD><CODE><B><A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html#getFriendlyName(char[])">getFriendlyName</A></B>(char[]&nbsp;friendlyNameCharArray)</CODE>
167
168 <BR>
169 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
170 </TR>
171 <TR BGCOLOR="white" CLASS="TableRowColor">
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173 <CODE>&nbsp;void</CODE></FONT></TD>
174 <TD><CODE><B><A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html#setDeviceAddr(byte[])">setDeviceAddr</A></B>(byte[]&nbsp;deviceAddr)</CODE>
175
176 <BR>
177 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
178 </TR>
179 <TR BGCOLOR="white" CLASS="TableRowColor">
180 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181 <CODE>&nbsp;void</CODE></FONT></TD>
182 <TD><CODE><B><A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html#setDeviceClass(byte[])">setDeviceClass</A></B>(byte[]&nbsp;devclass)</CODE>
183
184 <BR>
185 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
186 </TR>
187 <TR BGCOLOR="white" CLASS="TableRowColor">
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189 <CODE>&nbsp;void</CODE></FONT></TD>
190 <TD><CODE><B><A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html#setFriendlyName(char[], int)">setFriendlyName</A></B>(char[]&nbsp;friendlyNameCharArray,
191                 int&nbsp;len)</CODE>
192
193 <BR>
194 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
195 </TR>
196 </TABLE>
197 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
198 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
199 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
200 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html" title="class in java.lang">Object</A></B></TH>
201 </TR>
202 <TR BGCOLOR="white" CLASS="TableRowColor">
203 <TD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A></CODE></TD>
204 </TR>
205 </TABLE>
206 &nbsp;
207 <P>
208
209 <!-- ========= CONSTRUCTOR DETAIL ======== -->
210
211 <A NAME="constructor_detail"><!-- --></A>
212 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
213 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
214 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
215 <B>Constructor Detail</B></FONT></TH>
216 </TR>
217 </TABLE>
218
219 <A NAME="BTRemoteDevice(char[], int, byte[], byte[])"><!-- --></A><H3>
220 BTRemoteDevice</H3>
221 <PRE>
222 public <B>BTRemoteDevice</B>(char[]&nbsp;friendlyNameCharArray,
223                       int&nbsp;len,
224                       byte[]&nbsp;deviceAddr,
225                       byte[]&nbsp;devclass)</PRE>
226 <DL>
227 </DL>
228
229 <!-- ============ METHOD DETAIL ========== -->
230
231 <A NAME="method_detail"><!-- --></A>
232 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
233 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
234 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
235 <B>Method Detail</B></FONT></TH>
236 </TR>
237 </TABLE>
238
239 <A NAME="setDeviceAddr(byte[])"><!-- --></A><H3>
240 setDeviceAddr</H3>
241 <PRE>
242 public void <B>setDeviceAddr</B>(byte[]&nbsp;deviceAddr)</PRE>
243 <DL>
244 <DD><DL>
245 </DL>
246 </DD>
247 </DL>
248 <HR>
249
250 <A NAME="getDeviceAddr()"><!-- --></A><H3>
251 getDeviceAddr</H3>
252 <PRE>
253 public byte[] <B>getDeviceAddr</B>()</PRE>
254 <DL>
255 <DD><DL>
256 </DL>
257 </DD>
258 </DL>
259 <HR>
260
261 <A NAME="setFriendlyName(char[], int)"><!-- --></A><H3>
262 setFriendlyName</H3>
263 <PRE>
264 public void <B>setFriendlyName</B>(char[]&nbsp;friendlyNameCharArray,
265                             int&nbsp;len)</PRE>
266 <DL>
267 <DD><DL>
268 </DL>
269 </DD>
270 </DL>
271 <HR>
272
273 <A NAME="getFriendlyName()"><!-- --></A><H3>
274 getFriendlyName</H3>
275 <PRE>
276 public <A HREF="../../../java/lang/String.html" title="class in java.lang">String</A> <B>getFriendlyName</B>()</PRE>
277 <DL>
278 <DD><DL>
279 </DL>
280 </DD>
281 </DL>
282 <HR>
283
284 <A NAME="getFriendlyName(char[])"><!-- --></A><H3>
285 getFriendlyName</H3>
286 <PRE>
287 public int <B>getFriendlyName</B>(char[]&nbsp;friendlyNameCharArray)</PRE>
288 <DL>
289 <DD><DL>
290 </DL>
291 </DD>
292 </DL>
293 <HR>
294
295 <A NAME="setDeviceClass(byte[])"><!-- --></A><H3>
296 setDeviceClass</H3>
297 <PRE>
298 public void <B>setDeviceClass</B>(byte[]&nbsp;devclass)</PRE>
299 <DL>
300 <DD><DL>
301 </DL>
302 </DD>
303 </DL>
304 <HR>
305
306 <A NAME="getAddressString()"><!-- --></A><H3>
307 getAddressString</H3>
308 <PRE>
309 public <A HREF="../../../java/lang/String.html" title="class in java.lang">String</A> <B>getAddressString</B>()</PRE>
310 <DL>
311 <DD><DL>
312 </DL>
313 </DD>
314 </DL>
315 <HR>
316
317 <A NAME="getDeviceClass()"><!-- --></A><H3>
318 getDeviceClass</H3>
319 <PRE>
320 public byte[] <B>getDeviceClass</B>()</PRE>
321 <DL>
322 <DD><DL>
323 </DL>
324 </DD>
325 </DL>
326 <!-- ========= END OF CLASS DATA ========= -->
327 <HR>
328
329
330 <!-- ======= START OF BOTTOM NAVBAR ====== -->
331 <A NAME="navbar_bottom"><!-- --></A>
332 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
333 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
334 <TR>
335 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
336 <A NAME="navbar_bottom_firstrow"><!-- --></A>
337 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
338   <TR ALIGN="center" VALIGN="top">
339   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
340   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
341   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
342   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
343   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
344   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
345   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
346   </TR>
347 </TABLE>
348 </TD>
349 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
350 </EM>
351 </TD>
352 </TR>
353
354 <TR>
355 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
356 &nbsp;<A HREF="../../../lejos/nxt/comm/BTOutputStream.html" title="class in lejos.nxt.comm"><B>PREV CLASS</B></A>&nbsp;
357 &nbsp;<A HREF="../../../lejos/nxt/comm/LCP.html" title="class in lejos.nxt.comm"><B>NEXT CLASS</B></A></FONT></TD>
358 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
359   <A HREF="../../../index.html?lejos/nxt/comm/BTRemoteDevice.html" target="_top"><B>FRAMES</B></A>  &nbsp;
360 &nbsp;<A HREF="BTRemoteDevice.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
361 &nbsp;<SCRIPT type="text/javascript">
362   <!--
363   if(window==top) {
364     document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
365   }
366   //-->
367 </SCRIPT>
368 <NOSCRIPT>
369   <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
370 </NOSCRIPT>
371
372
373 </FONT></TD>
374 </TR>
375 <TR>
376 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
377   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
378 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
379 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
380 </TR>
381 </TABLE>
382 <A NAME="skip-navbar_bottom"></A>
383 <!-- ======== END OF BOTTOM NAVBAR ======= -->
384
385 <HR>
386
387 </BODY>
388 </HTML>