OSDN Git Service

lejos_NXJ_win32_0_6_0beta.zip
[nxt-jsp/lejos_nxj.git] / nxtOSEK / lejos_nxj / docs / apidocs / lejos / nxt / debug / DebugMonitor.html
@@ -2,19 +2,19 @@
 <!--NewPage-->
 <HTML>
 <HEAD>
-<!-- Generated by javadoc (build 1.5.0_09) on Tue Jan 08 20:46:01 GMT 2008 -->
+<!-- Generated by javadoc (build 1.5.0_09) on Mon May 05 21:42:42 BST 2008 -->
 <TITLE>
-Debug (leJOS NXT API documentation)
+DebugMonitor (leJOS NXT API documentation)
 </TITLE>
 
-<META NAME="keywords" CONTENT="lejos.nxt.comm.Debug class">
+<META NAME="keywords" CONTENT="lejos.nxt.debug.DebugMonitor class">
 
 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
 
 <SCRIPT type="text/javascript">
 function windowTitle()
 {
-    parent.document.title="Debug (leJOS NXT API documentation)";
+    parent.document.title="DebugMonitor (leJOS NXT API documentation)";
 }
 </SCRIPT>
 <NOSCRIPT>
@@ -51,11 +51,11 @@ function windowTitle()
 
 <TR>
 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
-&nbsp;<A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html" title="class in lejos.nxt.comm"><B>PREV CLASS</B></A>&nbsp;
-&nbsp;<A HREF="../../../lejos/nxt/comm/DeviceInfo.html" title="class in lejos.nxt.comm"><B>NEXT CLASS</B></A></FONT></TD>
+&nbsp;<A HREF="../../../lejos/nxt/debug/DebugInterface.html" title="class in lejos.nxt.debug"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../lejos/nxt/debug/DebugObject.html" title="class in lejos.nxt.debug"><B>NEXT CLASS</B></A></FONT></TD>
 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
-  <A HREF="../../../index.html?lejos/nxt/comm/Debug.html" target="_top"><B>FRAMES</B></A>  &nbsp;
-&nbsp;<A HREF="Debug.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+  <A HREF="../../../index.html?lejos/nxt/debug/DebugMonitor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="DebugMonitor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 &nbsp;<SCRIPT type="text/javascript">
   <!--
   if(window==top) {
@@ -84,26 +84,32 @@ DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&n
 <!-- ======== START OF CLASS DATA ======== -->
 <H2>
 <FONT SIZE="-1">
-lejos.nxt.comm</FONT>
+lejos.nxt.debug</FONT>
 <BR>
-Class Debug</H2>
+Class DebugMonitor</H2>
 <PRE>
 <A HREF="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A>
-  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>lejos.nxt.comm.Debug</B>
+  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>lejos.nxt.debug.DebugMonitor</B>
 </PRE>
 <HR>
 <DL>
-<DT><PRE>public class <B>Debug</B><DT>extends <A HREF="../../../java/lang/Object.html" title="class in java.lang">Object</A></DL>
+<DT><PRE>public class <B>DebugMonitor</B><DT>extends <A HREF="../../../java/lang/Object.html" title="class in java.lang">Object</A></DL>
 </PRE>
 
 <P>
-This class provides a simple way of sending debug output for viewing on a 
- PC. The output is transmitted via the nxt USB connection. If open is not
- called or if the connection to the PC is timed out, then the debug output
- is dicarded.
+Simple debug monitor that can be run alongside and nxj program. This class
+ catches unhandled excpetions and user interrupts (accept + escape key), it
+ displays information about the event (stack trace etc.). The user is then
+ abble to either perform a soft reset (Escape), a hard reset (Escape + Accept),
+ or continue running the program (any other key). All output is directed via
+ System.err.
 <P>
 
 <P>
+<DL>
+<DT><B>Author:</B></DT>
+  <DD>andy</DD>
+</DL>
 <HR>
 
 <P>
@@ -117,7 +123,7 @@ This class provides a simple way of sending debug output for viewing on a
 <B>Constructor Summary</B></FONT></TH>
 </TR>
 <TR BGCOLOR="white" CLASS="TableRowColor">
-<TD><CODE><B><A HREF="../../../lejos/nxt/comm/Debug.html#Debug()">Debug</A></B>()</CODE>
+<TD><CODE><B><A HREF="../../../lejos/nxt/debug/DebugMonitor.html#DebugMonitor()">DebugMonitor</A></B>()</CODE>
 
 <BR>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
@@ -135,31 +141,7 @@ This class provides a simple way of sending debug output for viewing on a
 <TR BGCOLOR="white" CLASS="TableRowColor">
 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 <CODE>static&nbsp;void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../../lejos/nxt/comm/Debug.html#close()">close</A></B>()</CODE>
-
-<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
-</TR>
-<TR BGCOLOR="white" CLASS="TableRowColor">
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>static&nbsp;void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../../lejos/nxt/comm/Debug.html#open()">open</A></B>()</CODE>
-
-<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
-</TR>
-<TR BGCOLOR="white" CLASS="TableRowColor">
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>static&nbsp;void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../../lejos/nxt/comm/Debug.html#open(int)">open</A></B>(int&nbsp;timeout)</CODE>
-
-<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
-</TR>
-<TR BGCOLOR="white" CLASS="TableRowColor">
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>static&nbsp;void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../../lejos/nxt/comm/Debug.html#out(java.lang.String)">out</A></B>(<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A>&nbsp;s)</CODE>
+<TD><CODE><B><A HREF="../../../lejos/nxt/debug/DebugMonitor.html#main(java.lang.String[])">main</A></B>(<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A>[]&nbsp;args)</CODE>
 
 <BR>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
@@ -187,10 +169,10 @@ This class provides a simple way of sending debug output for viewing on a
 </TR>
 </TABLE>
 
-<A NAME="Debug()"><!-- --></A><H3>
-Debug</H3>
+<A NAME="DebugMonitor()"><!-- --></A><H3>
+DebugMonitor</H3>
 <PRE>
-public <B>Debug</B>()</PRE>
+public <B>DebugMonitor</B>()</PRE>
 <DL>
 </DL>
 
@@ -204,46 +186,16 @@ public <B>Debug</B>()</PRE>
 </TR>
 </TABLE>
 
-<A NAME="open(int)"><!-- --></A><H3>
-open</H3>
+<A NAME="main(java.lang.String[])"><!-- --></A><H3>
+main</H3>
 <PRE>
-public static void <B>open</B>(int&nbsp;timeout)</PRE>
+public static void <B>main</B>(<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A>[]&nbsp;args)
+                 throws <A HREF="../../../java/lang/Exception.html" title="class in java.lang">Exception</A></PRE>
 <DL>
 <DD><DL>
-</DL>
-</DD>
-</DL>
-<HR>
-
-<A NAME="open()"><!-- --></A><H3>
-open</H3>
-<PRE>
-public static void <B>open</B>()</PRE>
-<DL>
-<DD><DL>
-</DL>
-</DD>
-</DL>
-<HR>
 
-<A NAME="out(java.lang.String)"><!-- --></A><H3>
-out</H3>
-<PRE>
-public static void <B>out</B>(<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A>&nbsp;s)</PRE>
-<DL>
-<DD><DL>
-</DL>
-</DD>
-</DL>
-<HR>
-
-<A NAME="close()"><!-- --></A><H3>
-close</H3>
-<PRE>
-public static void <B>close</B>()</PRE>
-<DL>
-<DD><DL>
-</DL>
+<DT><B>Throws:</B>
+<DD><CODE><A HREF="../../../java/lang/Exception.html" title="class in java.lang">Exception</A></CODE></DL>
 </DD>
 </DL>
 <!-- ========= END OF CLASS DATA ========= -->
@@ -276,11 +228,11 @@ public static void <B>close</B>()</PRE>
 
 <TR>
 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
-&nbsp;<A HREF="../../../lejos/nxt/comm/BTRemoteDevice.html" title="class in lejos.nxt.comm"><B>PREV CLASS</B></A>&nbsp;
-&nbsp;<A HREF="../../../lejos/nxt/comm/DeviceInfo.html" title="class in lejos.nxt.comm"><B>NEXT CLASS</B></A></FONT></TD>
+&nbsp;<A HREF="../../../lejos/nxt/debug/DebugInterface.html" title="class in lejos.nxt.debug"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;<A HREF="../../../lejos/nxt/debug/DebugObject.html" title="class in lejos.nxt.debug"><B>NEXT CLASS</B></A></FONT></TD>
 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
-  <A HREF="../../../index.html?lejos/nxt/comm/Debug.html" target="_top"><B>FRAMES</B></A>  &nbsp;
-&nbsp;<A HREF="Debug.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+  <A HREF="../../../index.html?lejos/nxt/debug/DebugMonitor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="DebugMonitor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 &nbsp;<SCRIPT type="text/javascript">
   <!--
   if(window==top) {