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

Variable Index

 o debugflag
Flags debugging messages on/off.

Constructor Index

 o Debug()

Method Index

 o print(String)
Equivalent to System.out.print(String), if debugflag is true.
 o println()
Equivalent to System.out.println(), if debugflag is true
 o println(String)
Equivalent to System.out.println(String), if debugflag is true.
 o printTime()
Print out the current time in the form hh:mm:ss.000 to System.out
 o printVector(Vector)
Prints out the Vector given to it, if debugflag is true.
 o time()
Returns the current time as a formatted string (hh:mm:ss.000)

Variables

 o 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

Constructors

 o Debug
 public Debug()

Methods

 o 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.

 o print
 public static void print(String str)
Equivalent to System.out.print(String), if debugflag is true.

 o println
 public static void println(String str)
Equivalent to System.out.println(String), if debugflag is true.

 o println
 public static void println()
Equivalent to System.out.println(), if debugflag is true

 o printTime
 public static synchronized void printTime()
Print out the current time in the form hh:mm:ss.000 to System.out

 o 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