| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcore.Debug
public class Debug
Debugging info printer with time stamping. This class is not to be actively used but convenient for temporary debugging.
| Constructor Summary | |
|---|---|
| Debug() | |
| Method Summary | |
|---|---|
| static void | doneTiming()End timing an action. | 
| static void | p(java.lang.String txt)Prints text to output with level 0 | 
| static void | p(java.lang.String txt,
  int level)Prints text to output given with level | 
| static void | p(java.lang.String txt,
  int level,
  boolean timestamp)Print text to debug output. | 
| static void | pt(java.lang.String txt)Debug print with a timestamp and 0 level | 
| static void | pt(java.lang.String txt,
   int level)Debug print with a timestamp | 
|  void | setDebugLevel(int level)Sets the current debug level (smaller level -> more messages) | 
|  void | setPrintStream(java.io.PrintStream outStrm)Sets print stream of debug output. | 
| static void | startTiming(java.lang.String cause)Start timing an action. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Debug()
| Method Detail | 
|---|
public void setDebugLevel(int level)
level - The level to setpublic void setPrintStream(java.io.PrintStream outStrm)
outStrm - The streampublic static void p(java.lang.String txt)
txt - text to print
public static void p(java.lang.String txt,
                     int level)
level - The debug leveltxt - text to print
public static void pt(java.lang.String txt,
                      int level)
txt - Text to printlevel - Debug levelpublic static void pt(java.lang.String txt)
txt - Text to print
public static void p(java.lang.String txt,
                     int level,
                     boolean timestamp)
txt - The text to printlevel - The debug level (only messages with level >= debugLevel 
 are printed)timestamp - If true, text is (sim)timestampedpublic static void startTiming(java.lang.String cause)
doneTiming()public static void doneTiming()
startTiming(String)| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||