|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmarkov.DebugReporter
public class DebugReporter
A debug reporter is used to report debug Information from a program. It has an internal integer number, called the Debuglevel, where 0 means no debug information will be reporter and 5 a lot of verbose information will be reported. The information is reported to standard output, to a PrintWriter (which can be associated with a file), or to a TextPanel which can be included in a graphic user interface.
| Constructor Summary | |
|---|---|
DebugReporter(int initDebugLevel)
Creates a debug reporter that will report to standard I/O. |
|
DebugReporter(java.io.PrintWriter dbgWt)
Creates a debug reporter that will send its output to the given PrintWriter. |
|
| Method Summary | |
|---|---|
void |
debug(int level,
java.lang.String s)
Reports this debug information. |
void |
debug(int level,
java.lang.String s,
boolean newline)
Reports this debug information. |
void |
debug(int level,
java.lang.String s,
boolean newline,
boolean indent)
Reports this debug information. |
int |
getCurLevel()
|
int |
getDebugLevel()
|
void |
setCurLevel(int curLevel)
Sets the debug level, where level=0 means no debug info, level = 5 verbose info. |
void |
setDebugLevel(int level)
Sets the debug level, where level=0 means no debug info, level = 5 verbose info. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DebugReporter(int initDebugLevel)
initDebugLevel - Initial debug levelpublic DebugReporter(java.io.PrintWriter dbgWt)
dbgWt - the PrintWriter where the debug information will be sent.| Method Detail |
|---|
public final void setCurLevel(int curLevel)
curLevel - The curLevel to set to.public final int getCurLevel()
public void debug(int level,
java.lang.String s)
level - Use level=0 for very important things, level=5 less important.s - The String to reportdebug(int, String, boolean, boolean)
public void debug(int level,
java.lang.String s,
boolean newline)
level - Use level=0 for very important things, level=5 less important.s - The String to reportnewline - whether newline is added at the end.debug(int, String, boolean, boolean)
public void debug(int level,
java.lang.String s,
boolean newline,
boolean indent)
level - Use level=0 for very important things, level=5 less important.s - The String to reportnewline - whether newline is added at the end.indent - whwether information should go indented according to debug
level.public int getDebugLevel()
public void setDebugLevel(int level)
level - debug level
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||