de.uds.cs.st.dd.ui
Class Debug

java.lang.Object
  |
  +--de.uds.cs.st.dd.ui.Debug

public class Debug
extends Object

A simple debugging class that outputs debugging information to the console. If information is to be printed can be switched on and off by setting the value of the debugMode flag.

Author:
Philipp Bouillon

Field Summary
private static boolean console
          Specifies whether output should happen at the console.
private static boolean debugMode
          Specifies whether debugging is on or off.
 
Constructor Summary
Debug()
           
 
Method Summary
static void println(String message)
          Prints a message to the console if both flags are set to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugMode

private static final boolean debugMode
Specifies whether debugging is on or off. If debugMode is set to true, debugging information is shown, otherwise this class does nothing.

See Also:
Constant Field Values

console

private static boolean console
Specifies whether output should happen at the console. So far, setting this to false has the same effect as setting debugMode to false: Nothing will happen.

Constructor Detail

Debug

public Debug()
Method Detail

println

public static void println(String message)
Prints a message to the console if both flags are set to true.

Parameters:
message - the message to be displayed.