1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_09) on Tue Jan 08 20:46:01 GMT 2008 -->
7 RemoteSensorPort (leJOS NXT API documentation)
10 <META NAME="keywords" CONTENT="lejos.nxt.remote.RemoteSensorPort class">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 parent.document.title="RemoteSensorPort (leJOS NXT API documentation)";
25 <BODY BGCOLOR="white" onload="windowTitle();">
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="">
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> </TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 <A HREF="../../../lejos/nxt/remote/RemoteNXT.html" title="class in lejos.nxt.remote"><B>PREV CLASS</B></A>
55 NEXT CLASS</FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../../index.html?lejos/nxt/remote/RemoteSensorPort.html" target="_top"><B>FRAMES</B></A>
58 <A HREF="RemoteSensorPort.html" target="_top"><B>NO FRAMES</B></A>
59 <SCRIPT type="text/javascript">
62 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
80 <A NAME="skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
84 <!-- ======== START OF CLASS DATA ======== -->
87 lejos.nxt.remote</FONT>
89 Class RemoteSensorPort</H2>
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.remote.RemoteSensorPort</B>
95 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../lejos/nxt/ADSensorPort.html" title="interface in lejos.nxt">ADSensorPort</A>, <A HREF="../../../lejos/nxt/BasicSensorPort.html" title="interface in lejos.nxt">BasicSensorPort</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html" title="interface in lejos.nxt.comm">NXTProtocol</A>, <A HREF="../../../lejos/nxt/SensorConstants.html" title="interface in lejos.nxt">SensorConstants</A></DD>
99 <DT><PRE>public class <B>RemoteSensorPort</B><DT>extends <A HREF="../../../java/lang/Object.html" title="class in java.lang">Object</A><DT>implements <A HREF="../../../lejos/nxt/comm/NXTProtocol.html" title="interface in lejos.nxt.comm">NXTProtocol</A>, <A HREF="../../../lejos/nxt/ADSensorPort.html" title="interface in lejos.nxt">ADSensorPort</A></DL>
103 Emulates a Sensor Port using LCP
110 <!-- =========== FIELD SUMMARY =========== -->
112 <A NAME="field_summary"><!-- --></A>
113 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
114 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
115 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
116 <B>Field Summary</B></FONT></TH>
119 <A NAME="fields_inherited_from_class_lejos.nxt.comm.NXTProtocol"><!-- --></A>
120 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
122 <TH ALIGN="left"><B>Fields inherited from interface lejos.nxt.comm.<A HREF="../../../lejos/nxt/comm/NXTProtocol.html" title="interface in lejos.nxt.comm">NXTProtocol</A></B></TH>
124 <TR BGCOLOR="white" CLASS="TableRowColor">
125 <TD><CODE><A HREF="../../../lejos/nxt/comm/NXTProtocol.html#ANGLE">ANGLE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#ANGLESTEPSMODE">ANGLESTEPSMODE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#BOOLEANMODE">BOOLEANMODE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#BOOT">BOOT</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#BRAKE">BRAKE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#CELSIUSMODE">CELSIUSMODE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#CLOSE">CLOSE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#CUSTOM">CUSTOM</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#DELETE">DELETE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#DELETE_USER_FLASH">DELETE_USER_FLASH</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#DIRECT_COMMAND_NOREPLY">DIRECT_COMMAND_NOREPLY</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#DIRECT_COMMAND_REPLY">DIRECT_COMMAND_REPLY</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#FAHRENHEITMODE">FAHRENHEITMODE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#FIND_FIRST">FIND_FIRST</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#FIND_NEXT">FIND_NEXT</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#GET_BATTERY_LEVEL">GET_BATTERY_LEVEL</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#GET_CURRENT_PROGRAM_NAME">GET_CURRENT_PROGRAM_NAME</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#GET_DEVICE_INFO">GET_DEVICE_INFO</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#GET_FIRMWARE_VERSION">GET_FIRMWARE_VERSION</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#GET_INPUT_VALUES">GET_INPUT_VALUES</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#GET_OUTPUT_STATE">GET_OUTPUT_STATE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#HIGH_SPEED_BUFFER">HIGH_SPEED_BUFFER</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#KEEP_ALIVE">KEEP_ALIVE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#LIGHT_ACTIVE">LIGHT_ACTIVE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#LIGHT_INACTIVE">LIGHT_INACTIVE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#LOWSPEED">LOWSPEED</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#LOWSPEED_9V">LOWSPEED_9V</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#LS_GET_STATUS">LS_GET_STATUS</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#LS_READ">LS_READ</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#LS_WRITE">LS_WRITE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#MESSAGE_READ">MESSAGE_READ</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#MESSAGE_WRITE">MESSAGE_WRITE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#MODEMASK">MODEMASK</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#MOTOR_RUN_STATE_IDLE">MOTOR_RUN_STATE_IDLE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#MOTOR_RUN_STATE_RAMPDOWN">MOTOR_RUN_STATE_RAMPDOWN</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#MOTOR_RUN_STATE_RAMPUP">MOTOR_RUN_STATE_RAMPUP</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#MOTOR_RUN_STATE_RUNNING">MOTOR_RUN_STATE_RUNNING</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#MOTORON">MOTORON</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#NO_OF_SENSOR_TYPES">NO_OF_SENSOR_TYPES</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#NO_SENSOR">NO_SENSOR</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#OPEN_APPEND_DATA">OPEN_APPEND_DATA</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#OPEN_READ">OPEN_READ</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#OPEN_READ_LINEAR">OPEN_READ_LINEAR</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#OPEN_WRITE">OPEN_WRITE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#OPEN_WRITE_DATA">OPEN_WRITE_DATA</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#OPEN_WRITE_LINEAR">OPEN_WRITE_LINEAR</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#PCTFULLSCALEMODE">PCTFULLSCALEMODE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#PERIODCOUNTERMODE">PERIODCOUNTERMODE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#PLAY_SOUND_FILE">PLAY_SOUND_FILE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#PLAY_TONE">PLAY_TONE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#POLL">POLL</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#POLL_BUFFER">POLL_BUFFER</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#POLL_LENGTH">POLL_LENGTH</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#RAWMODE">RAWMODE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#READ">READ</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#REFLECTION">REFLECTION</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#REGULATED">REGULATED</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#REGULATION_MODE_IDLE">REGULATION_MODE_IDLE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#REGULATION_MODE_MOTOR_SPEED">REGULATION_MODE_MOTOR_SPEED</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#REGULATION_MODE_MOTOR_SYNC">REGULATION_MODE_MOTOR_SYNC</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#REPLY_COMMAND">REPLY_COMMAND</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#RESET_MOTOR_POSITION">RESET_MOTOR_POSITION</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#RESET_SCALED_INPUT_VALUE">RESET_SCALED_INPUT_VALUE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#SET_BRICK_NAME">SET_BRICK_NAME</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#SET_INPUT_MODE">SET_INPUT_MODE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#SET_OUTPUT_STATE">SET_OUTPUT_STATE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#SLOPEMASK">SLOPEMASK</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#SOUND_DB">SOUND_DB</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#SOUND_DBA">SOUND_DBA</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#START_PROGRAM">START_PROGRAM</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#STOP_PROGRAM">STOP_PROGRAM</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#STOP_SOUND_PLAYBACK">STOP_SOUND_PLAYBACK</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#SWITCH">SWITCH</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#SYSTEM_COMMAND_NOREPLY">SYSTEM_COMMAND_NOREPLY</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#SYSTEM_COMMAND_REPLY">SYSTEM_COMMAND_REPLY</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#TEMPERATURE">TEMPERATURE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#TRANSITIONCNTMODE">TRANSITIONCNTMODE</A>, <A HREF="../../../lejos/nxt/comm/NXTProtocol.html#WRITE">WRITE</A></CODE></TD>
128 <A NAME="fields_inherited_from_class_lejos.nxt.SensorConstants"><!-- --></A>
129 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
130 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
131 <TH ALIGN="left"><B>Fields inherited from interface lejos.nxt.<A HREF="../../../lejos/nxt/SensorConstants.html" title="interface in lejos.nxt">SensorConstants</A></B></TH>
133 <TR BGCOLOR="white" CLASS="TableRowColor">
134 <TD><CODE><A HREF="../../../lejos/nxt/SensorConstants.html#MODE_ANGLESTEP">MODE_ANGLESTEP</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#MODE_BOOLEAN">MODE_BOOLEAN</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#MODE_CELSIUS">MODE_CELSIUS</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#MODE_FARENHEIT">MODE_FARENHEIT</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#MODE_PCTFULLSCALE">MODE_PCTFULLSCALE</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#MODE_PERIODCOUNTER">MODE_PERIODCOUNTER</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#MODE_RAW">MODE_RAW</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#MODE_TRANSITIONCNT">MODE_TRANSITIONCNT</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_ANGLE">TYPE_ANGLE</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_CUSTOM">TYPE_CUSTOM</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_LIGHT_ACTIVE">TYPE_LIGHT_ACTIVE</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_LIGHT_INACTIVE">TYPE_LIGHT_INACTIVE</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_LOWSPEED">TYPE_LOWSPEED</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_LOWSPEED_9V">TYPE_LOWSPEED_9V</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_NO_SENSOR">TYPE_NO_SENSOR</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_REFLECTION">TYPE_REFLECTION</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_SOUND_DB">TYPE_SOUND_DB</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_SOUND_DBA">TYPE_SOUND_DBA</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_SWITCH">TYPE_SWITCH</A>, <A HREF="../../../lejos/nxt/SensorConstants.html#TYPE_TEMPERATURE">TYPE_TEMPERATURE</A></CODE></TD>
138 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
140 <A NAME="constructor_summary"><!-- --></A>
141 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
142 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
143 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
144 <B>Constructor Summary</B></FONT></TH>
146 <TR BGCOLOR="white" CLASS="TableRowColor">
147 <TD><CODE><B><A HREF="../../../lejos/nxt/remote/RemoteSensorPort.html#RemoteSensorPort(lejos.nxt.comm.NXTCommand, int)">RemoteSensorPort</A></B>(<A HREF="../../../lejos/nxt/comm/NXTCommand.html" title="class in lejos.nxt.comm">NXTCommand</A> nxtCommand,
151 </TD>
155 <!-- ========== METHOD SUMMARY =========== -->
157 <A NAME="method_summary"><!-- --></A>
158 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
159 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
160 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
161 <B>Method Summary</B></FONT></TH>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165 <CODE> int</CODE></FONT></TD>
166 <TD><CODE><B><A HREF="../../../lejos/nxt/remote/RemoteSensorPort.html#getId()">getId</A></B>()</CODE>
169 </TD>
171 <TR BGCOLOR="white" CLASS="TableRowColor">
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173 <CODE> int</CODE></FONT></TD>
174 <TD><CODE><B><A HREF="../../../lejos/nxt/remote/RemoteSensorPort.html#getMode()">getMode</A></B>()</CODE>
177 </TD>
179 <TR BGCOLOR="white" CLASS="TableRowColor">
180 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181 <CODE> int</CODE></FONT></TD>
182 <TD><CODE><B><A HREF="../../../lejos/nxt/remote/RemoteSensorPort.html#getType()">getType</A></B>()</CODE>
185 </TD>
187 <TR BGCOLOR="white" CLASS="TableRowColor">
188 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189 <CODE> boolean</CODE></FONT></TD>
190 <TD><CODE><B><A HREF="../../../lejos/nxt/remote/RemoteSensorPort.html#readBooleanValue()">readBooleanValue</A></B>()</CODE>
193 Reads the boolean value of the sensor.</TD>
195 <TR BGCOLOR="white" CLASS="TableRowColor">
196 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197 <CODE> int</CODE></FONT></TD>
198 <TD><CODE><B><A HREF="../../../lejos/nxt/remote/RemoteSensorPort.html#readRawValue()">readRawValue</A></B>()</CODE>
201 Reads the raw value of the sensor.</TD>
203 <TR BGCOLOR="white" CLASS="TableRowColor">
204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205 <CODE> int</CODE></FONT></TD>
206 <TD><CODE><B><A HREF="../../../lejos/nxt/remote/RemoteSensorPort.html#readValue()">readValue</A></B>()</CODE>
209 Returns value compatible with Lego firmware.</TD>
211 <TR BGCOLOR="white" CLASS="TableRowColor">
212 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213 <CODE> void</CODE></FONT></TD>
214 <TD><CODE><B><A HREF="../../../lejos/nxt/remote/RemoteSensorPort.html#setMode(int)">setMode</A></B>(int mode)</CODE>
217 </TD>
219 <TR BGCOLOR="white" CLASS="TableRowColor">
220 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221 <CODE> void</CODE></FONT></TD>
222 <TD><CODE><B><A HREF="../../../lejos/nxt/remote/RemoteSensorPort.html#setType(int)">setType</A></B>(int type)</CODE>
225 </TD>
227 <TR BGCOLOR="white" CLASS="TableRowColor">
228 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229 <CODE> void</CODE></FONT></TD>
230 <TD><CODE><B><A HREF="../../../lejos/nxt/remote/RemoteSensorPort.html#setTypeAndMode(int, int)">setTypeAndMode</A></B>(int type,
231 int mode)</CODE>
234 </TD>
237 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
238 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
239 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
240 <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>
242 <TR BGCOLOR="white" CLASS="TableRowColor">
243 <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>
249 <!-- ========= CONSTRUCTOR DETAIL ======== -->
251 <A NAME="constructor_detail"><!-- --></A>
252 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
253 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
254 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
255 <B>Constructor Detail</B></FONT></TH>
259 <A NAME="RemoteSensorPort(lejos.nxt.comm.NXTCommand, int)"><!-- --></A><H3>
260 RemoteSensorPort</H3>
262 public <B>RemoteSensorPort</B>(<A HREF="../../../lejos/nxt/comm/NXTCommand.html" title="class in lejos.nxt.comm">NXTCommand</A> nxtCommand,
267 <!-- ============ METHOD DETAIL ========== -->
269 <A NAME="method_detail"><!-- --></A>
270 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
271 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
272 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
273 <B>Method Detail</B></FONT></TH>
277 <A NAME="getId()"><!-- --></A><H3>
280 public int <B>getId</B>()</PRE>
291 <A NAME="getType()"><!-- --></A><H3>
294 public int <B>getType</B>()</PRE>
297 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../lejos/nxt/BasicSensorPort.html#getType()">getType</A></CODE> in interface <CODE><A HREF="../../../lejos/nxt/BasicSensorPort.html" title="interface in lejos.nxt">BasicSensorPort</A></CODE></DL>
305 <A NAME="getMode()"><!-- --></A><H3>
308 public int <B>getMode</B>()</PRE>
311 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../lejos/nxt/BasicSensorPort.html#getMode()">getMode</A></CODE> in interface <CODE><A HREF="../../../lejos/nxt/BasicSensorPort.html" title="interface in lejos.nxt">BasicSensorPort</A></CODE></DL>
319 <A NAME="setTypeAndMode(int, int)"><!-- --></A><H3>
322 public void <B>setTypeAndMode</B>(int type,
326 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../lejos/nxt/BasicSensorPort.html#setTypeAndMode(int, int)">setTypeAndMode</A></CODE> in interface <CODE><A HREF="../../../lejos/nxt/BasicSensorPort.html" title="interface in lejos.nxt">BasicSensorPort</A></CODE></DL>
334 <A NAME="setType(int)"><!-- --></A><H3>
337 public void <B>setType</B>(int type)</PRE>
340 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../lejos/nxt/BasicSensorPort.html#setType(int)">setType</A></CODE> in interface <CODE><A HREF="../../../lejos/nxt/BasicSensorPort.html" title="interface in lejos.nxt">BasicSensorPort</A></CODE></DL>
348 <A NAME="setMode(int)"><!-- --></A><H3>
351 public void <B>setMode</B>(int mode)</PRE>
354 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../lejos/nxt/BasicSensorPort.html#setMode(int)">setMode</A></CODE> in interface <CODE><A HREF="../../../lejos/nxt/BasicSensorPort.html" title="interface in lejos.nxt">BasicSensorPort</A></CODE></DL>
362 <A NAME="readBooleanValue()"><!-- --></A><H3>
363 readBooleanValue</H3>
365 public boolean <B>readBooleanValue</B>()</PRE>
367 <DD>Reads the boolean value of the sensor.
370 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../lejos/nxt/ADSensorPort.html#readBooleanValue()">readBooleanValue</A></CODE> in interface <CODE><A HREF="../../../lejos/nxt/ADSensorPort.html" title="interface in lejos.nxt">ADSensorPort</A></CODE></DL>
374 <DT><B>Returns:</B><DD>Boolean value of sensor.</DL>
379 <A NAME="readRawValue()"><!-- --></A><H3>
382 public int <B>readRawValue</B>()</PRE>
384 <DD>Reads the raw value of the sensor.
387 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../lejos/nxt/ADSensorPort.html#readRawValue()">readRawValue</A></CODE> in interface <CODE><A HREF="../../../lejos/nxt/ADSensorPort.html" title="interface in lejos.nxt">ADSensorPort</A></CODE></DL>
391 <DT><B>Returns:</B><DD>Raw sensor value. Range is device dependent.</DL>
396 <A NAME="readValue()"><!-- --></A><H3>
399 public int <B>readValue</B>()</PRE>
401 <DD>Returns value compatible with Lego firmware.
404 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../lejos/nxt/ADSensorPort.html#readValue()">readValue</A></CODE> in interface <CODE><A HREF="../../../lejos/nxt/ADSensorPort.html" title="interface in lejos.nxt">ADSensorPort</A></CODE></DL>
410 <!-- ========= END OF CLASS DATA ========= -->
414 <!-- ======= START OF BOTTOM NAVBAR ====== -->
415 <A NAME="navbar_bottom"><!-- --></A>
416 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
417 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
419 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
420 <A NAME="navbar_bottom_firstrow"><!-- --></A>
421 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
422 <TR ALIGN="center" VALIGN="top">
423 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
424 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
425 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
426 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
427 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
428 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
429 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
433 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
439 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
440 <A HREF="../../../lejos/nxt/remote/RemoteNXT.html" title="class in lejos.nxt.remote"><B>PREV CLASS</B></A>
441 NEXT CLASS</FONT></TD>
442 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
443 <A HREF="../../../index.html?lejos/nxt/remote/RemoteSensorPort.html" target="_top"><B>FRAMES</B></A>
444 <A HREF="RemoteSensorPort.html" target="_top"><B>NO FRAMES</B></A>
445 <SCRIPT type="text/javascript">
448 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
453 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
460 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
461 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
462 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
463 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
466 <A NAME="skip-navbar_bottom"></A>
467 <!-- ======== END OF BOTTOM NAVBAR ======= -->