All Packages Class Hierarchy This Package Previous Next Index
Class kraft.monitor.tools.Debug
java.lang.Object
|
+----kraft.monitor.tools.Debug
- public class Debug
- extends Object
Class used for debugging, calls to Debug.println will print out the given
string, if the debugflag has been set to true.
- Author:
- Ted Francis
-
debugflag
- Flags debugging messages on/off.
-
Debug()
-
-
print(String)
- Equivalent to
System.out.print(String)
, if debugflag is
true.
-
println()
- Equivalent to
System.out.println()
, if debugflag is true
-
println(String)
- Equivalent to
System.out.println(String)
, if debugflag is
true.
-
printTime()
- Print out the current time in the form hh:mm:ss.000 to System.out
-
printVector(Vector)
- Prints out the Vector given to it, if debugflag is true.
-
time()
- Returns the current time as a formatted string (hh:mm:ss.000)
debugflag
public static boolean debugflag
- Flags debugging messages on/off.
If this is set to
true
then subsequent calls to the
print
methods will be successful
Debug
public Debug()
printVector
public static void printVector(Vector v)
- Prints out the Vector given to it, if debugflag is true.
Relies on the Objects in the Vector having a
toString
method.
print
public static void print(String str)
- Equivalent to
System.out.print(String)
, if debugflag is
true.
println
public static void println(String str)
- Equivalent to
System.out.println(String)
, if debugflag is
true.
println
public static void println()
- Equivalent to
System.out.println()
, if debugflag is true
printTime
public static synchronized void printTime()
- Print out the current time in the form hh:mm:ss.000 to System.out
time
public static synchronized String time()
- Returns the current time as a formatted string (hh:mm:ss.000)
All Packages Class Hierarchy This Package Previous Next Index