DebugUtils Class Reference

A utility for printing messages and seeing which file they originated from. More...

List of all members.

Static Public Member Functions

static int getDebugPriorityMask ()
static boolean isDebugTraceOn ()
static synchronized void print (Object object)
static synchronized void println (Object object)
static synchronized void println (Object object, int debugPriority)
static synchronized void printlnWithStackOffset (Object object, int additionalStackOffset)
static void setDebugPriorityMask (int priorityMask)
static void setDebugTraceVisible (boolean debugTrace)


Detailed Description

A utility for printing messages and seeing which file they originated from.

This class will also provide support for creating debug levels (not really implemented yet).

This software is distributed under the BSD License.

Author:
Ron B. Yeh (ronyeh(AT)cs.stanford.edu)
Date:
Sep 1, 2004 created at FSCA.

Jul 8, 2005 imported to HCILib.

Jun 8, 2006 cleaned up stuff. changed format.

Aug 8, 2006 added to R3.

Definition at line 20 of file DebugUtils.java.


Member Function Documentation

static int getDebugPriorityMask (  )  [static]

Returns:
the debugPriorityMask

Definition at line 45 of file DebugUtils.java.

static boolean isDebugTraceOn (  )  [static]

Returns:
the debugTrace

Definition at line 52 of file DebugUtils.java.

static synchronized void print ( Object  object  )  [static]

Parameters:
string 

Definition at line 59 of file DebugUtils.java.

static synchronized void println ( Object  object,
int  debugPriority 
) [static]

Parameters:
object 
debugPriority an int that describes how important this message is. If it is greater than debugPriorityMask, then it will be printed out. If it is less than debugLevel, then it will be hidden.

Definition at line 102 of file DebugUtils.java.

References DebugUtils.println().

static synchronized void println ( Object  object  )  [static]

Parameters:
object the object to print out

Definition at line 91 of file DebugUtils.java.

References DebugUtils.printlnWithStackOffset().

Referenced by DebugUtils.println().

static synchronized void printlnWithStackOffset ( Object  object,
int  additionalStackOffset 
) [static]

Parameters:
object 
additionalStackOffset 

Definition at line 116 of file DebugUtils.java.

Referenced by DebugUtils.println().

static void setDebugPriorityMask ( int  priorityMask  )  [static]

Parameters:
debugPriorityMask the debugPriorityMask to set

Definition at line 128 of file DebugUtils.java.

static void setDebugTraceVisible ( boolean  debugTrace  )  [static]

Parameters:
debugTrace the debugTrace to set

Definition at line 136 of file DebugUtils.java.


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:45 2007 for R3 Paper Toolkit by  doxygen 1.4.7