Package lab06
Class Trace
java.lang.Object
lab06.Trace
public class Trace
extends java.lang.Object
Manage tracing for Pippin simulations.
- Author:
- cs140
-
Method Summary
Modifier and Type Method Description static booleangetTrace()Is tracing on?static voidmessage(java.lang.String msg)Print the parameter message if tracing.static voidstartTrace()Start tracing.static voidstopTrace()Stop tracing.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
startTrace
public static void startTrace()Start tracing. -
stopTrace
public static void stopTrace()Stop tracing. -
message
public static void message(java.lang.String msg)Print the parameter message if tracing.- Parameters:
msg- message to print
-
getTrace
public static boolean getTrace()Is tracing on?- Returns:
- true if tracing, false if not
-