⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commands.html

📁 tinyos中文手册,是根据tinyos系统自带手册翻译过来的,虽然质量不好,但是对英文不强的人还是有用的
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<A NAME="DBG_USR1"><!-- --></A><H3>DBG_USR1</H3><PRE>public static final long <B>DBG_USR1</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.tinyos.sim.script.reflect.Commands.DBG_USR1">Constant Field Values</A></DL></DL><HR><A NAME="DBG_USR2"><!-- --></A><H3>DBG_USR2</H3><PRE>public static final long <B>DBG_USR2</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.tinyos.sim.script.reflect.Commands.DBG_USR2">Constant Field Values</A></DL></DL><HR><A NAME="DBG_USR3"><!-- --></A><H3>DBG_USR3</H3><PRE>public static final long <B>DBG_USR3</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.tinyos.sim.script.reflect.Commands.DBG_USR3">Constant Field Values</A></DL></DL><HR><A NAME="DBG_TEMP"><!-- --></A><H3>DBG_TEMP</H3><PRE>public static final long <B>DBG_TEMP</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.tinyos.sim.script.reflect.Commands.DBG_TEMP">Constant Field Values</A></DL></DL><HR><A NAME="DBG_ERROR"><!-- --></A><H3>DBG_ERROR</H3><PRE>public static final long <B>DBG_ERROR</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.tinyos.sim.script.reflect.Commands.DBG_ERROR">Constant Field Values</A></DL></DL><HR><A NAME="DBG_NONE"><!-- --></A><H3>DBG_NONE</H3><PRE>public static final long <B>DBG_NONE</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.tinyos.sim.script.reflect.Commands.DBG_NONE">Constant Field Values</A></DL></DL><HR><A NAME="DBG_ALL"><!-- --></A><H3>DBG_ALL</H3><PRE>public static final long <B>DBG_ALL</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.tinyos.sim.script.reflect.Commands.DBG_ALL">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Commands(net.tinyos.sim.script.ScriptInterpreter, net.tinyos.sim.SimDriver)"><!-- --></A><H3>Commands</H3><PRE>public <B>Commands</B>(net.tinyos.sim.script.ScriptInterpreter&nbsp;interp,                net.tinyos.sim.SimDriver&nbsp;driver)</PRE><DL><DD>Constructor for the Commands object. This should not be called explicitly, rather the pre-constructed instance <i>comm</i> should be used.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="sendRadioMessage(short, long, net.tinyos.message.Message)"><!-- --></A><H3>sendRadioMessage</H3><PRE>public void <B>sendRadioMessage</B>(short&nbsp;moteID,                             long&nbsp;time,                             net.tinyos.message.Message&nbsp;msg)                      throws java.io.IOException</PRE><DL><DD>Sends a radio message to the given mote.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moteID</CODE> - the id of the target mote<DD><CODE>time</CODE> - simulator time when to do the operation<DD><CODE>msg</CODE> - the actual message class<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="sendUARTMessage(short, long, net.tinyos.message.Message)"><!-- --></A><H3>sendUARTMessage</H3><PRE>public void <B>sendUARTMessage</B>(short&nbsp;moteID,                            long&nbsp;time,                            net.tinyos.message.Message&nbsp;msg)                     throws java.io.IOException</PRE><DL><DD>Sends a UART message to the given mote.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moteID</CODE> - the id of the target mote<DD><CODE>time</CODE> - simulator time when to do the operation<DD><CODE>msg</CODE> - the actual message class<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="turnMoteOff(short, long)"><!-- --></A><H3>turnMoteOff</H3><PRE>public void <B>turnMoteOff</B>(short&nbsp;moteID,                        long&nbsp;time)                 throws java.io.IOException</PRE><DL><DD>Turn off the given mote.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moteID</CODE> - the id of the mote<DD><CODE>time</CODE> - simulator time when to do the operation<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="turnMoteOn(short, long)"><!-- --></A><H3>turnMoteOn</H3><PRE>public void <B>turnMoteOn</B>(short&nbsp;moteID,                       long&nbsp;time)                throws java.io.IOException</PRE><DL><DD>Turn on the given mote.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moteID</CODE> - the id of the mote<DD><CODE>time</CODE> - simulator time when to do the operation<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="setADCValue(short, long, byte, short)"><!-- --></A><H3>setADCValue</H3><PRE>public void <B>setADCValue</B>(short&nbsp;moteID,                        long&nbsp;time,                        byte&nbsp;port,                        short&nbsp;value)                 throws java.io.IOException</PRE><DL><DD>Set the ADC value at the given mote to the specified value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moteID</CODE> - the id of the mote<DD><CODE>time</CODE> - simulator time when to do the operation<DD><CODE>port</CODE> - the ADC port to set<DD><CODE>value</CODE> - the new value<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="setSimRate(double)"><!-- --></A><H3>setSimRate</H3><PRE>public void <B>setSimRate</B>(double&nbsp;rate)                throws java.io.IOException</PRE><DL><DD>Sets the simulator rate<P><DD><DL><DT><B>Parameters:</B><DD><CODE>rate</CODE> - the new simulator rate (relative to real time)<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="setLinkBitErrorProbability(short, long, short, double)"><!-- --></A><H3>setLinkBitErrorProbability</H3><PRE>public void <B>setLinkBitErrorProbability</B>(short&nbsp;src,                                       long&nbsp;time,                                       short&nbsp;dest,                                       double&nbsp;loss)                                throws java.io.IOException</PRE><DL><DD>Set the ADC value at the given mote to the specified value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - the source mote id<DD><CODE>dest</CODE> - the destination mote id<DD><CODE>time</CODE> - simulator time when to do the operation<DD><CODE>loss</CODE> - the bit error loss value<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getInterruptID()"><!-- --></A><H3>getInterruptID</H3><PRE>public int <B>getInterruptID</B>()</PRE><DL><DD>Get a unique interrupt ID.<P><DD><DL></DL></DD></DL><HR><A NAME="interruptInFuture(long, int)"><!-- --></A><H3>interruptInFuture</H3><PRE>public void <B>interruptInFuture</B>(long&nbsp;time,                              int&nbsp;interruptID)                       throws java.io.IOException</PRE><DL><DD>Schedule an interrupt event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - simulator time when to do the operation<DD><CODE>interruptID</CODE> - id code for the interrupt event<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="resolveVariable(short, java.lang.String)"><!-- --></A><H3>resolveVariable</H3><PRE>public net.tinyos.sim.event.VariableResolveResponse <B>resolveVariable</B>(short&nbsp;moteID,                                                                    java.lang.String&nbsp;name)                                                             throws java.io.IOException</PRE><DL><DD>Send a variable resolve command and return the result.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>moteID</CODE> - mote identifier<DD><CODE>name</CODE> - mote frame variable name<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="requestVariable(long, short)"><!-- --></A><H3>requestVariable</H3><PRE>public net.tinyos.sim.event.VariableRequestResponse <B>requestVariable</B>(long&nbsp;addr,                                                                    short&nbsp;length)                                                             throws java.io.IOException</PRE><DL><DD>Send a variable request command and return the result value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>addr</CODE> - variable address<DD><CODE>length</CODE> - variable length<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="setDBG(long)"><!-- --></A><H3>setDBG</H3><PRE>public void <B>setDBG</B>(long&nbsp;dbg)            throws java.io.IOException</PRE><DL><DD>Enable the given debug flag.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dbg</CODE> - debug flag<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="setEventMask(short)"><!-- --></A><H3>setEventMask</H3><PRE>public void <B>setEventMask</B>(short&nbsp;mask)                  throws java.io.IOException</PRE><DL><DD>Set the mask for which events are transmitted.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mask</CODE> - event mask<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="waitUntil(long)"><!-- --></A><H3>waitUntil</H3><PRE>public void <B>waitUntil</B>(long&nbsp;time)               throws java.io.IOException</PRE><DL><DD>Block execution until the given simulator time. This should be used with care; specifically should not be called from within an event handler.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - simulator time at which to unblock<DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="waitFor(long)"><!-- --></A><H3>waitFor</H3><PRE>public void <B>waitFor</B>(long&nbsp;time)             throws java.io.IOException</PRE><DL><DD>Block execution for a specified amount of time. This should be used with care; specifically should not be called from within an event handler.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - simulator time amount to wait for<DD><CODE>java.io.IOException</CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../../net/tinyos/sim/script/reflect/Interp.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Commands.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -