public class MetroIIDebugger
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
MetroIIDebugger()
Constructs a MetroDebugger with no info printed by default.
|
Modifier and Type | Method and Description |
---|---|
MetroIIDebugger |
clone()
Clones a MetroDebugger.
|
boolean |
debugging()
Returns whether debugging info is being printed.
|
void |
printMetroEvent(metroIIcomm.Event.Builder event)
Prints out the details of a MetroII event.
|
void |
printMetroEvents(java.lang.Iterable<metroIIcomm.Event.Builder> metroIIEventList)
Prints out the details of a list of MetroII events.
|
void |
printNotifiedMetroEvents(java.lang.Iterable<metroIIcomm.Event.Builder> metroIIEventList)
Prints out the details of notified events in a list.
|
void |
printText(java.lang.String text)
Prints out text.
|
void |
printTitle(java.lang.String title)
Prints out a title.
|
void |
setPrefix(java.lang.String prefix)
Sets the string to be printed out at the beginning of each line.
|
void |
turnOffDebugging()
Turns off printing debugging info.
|
void |
turnOnDebugging()
Turns on printing debugging info.
|
public MetroIIDebugger()
public MetroIIDebugger clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- the object's class does not implement the Cloneable
interface.public void setPrefix(java.lang.String prefix)
prefix
- prefix string of each line .public boolean debugging()
public void turnOnDebugging()
public void turnOffDebugging()
public void printTitle(java.lang.String title)
title
- the title to be printed out.public void printText(java.lang.String text)
text
- the text to be printed out.public void printMetroEvent(metroIIcomm.Event.Builder event)
event
- the event to be printed out.public void printMetroEvents(java.lang.Iterable<metroIIcomm.Event.Builder> metroIIEventList)
metroIIEventList
- the event list.public void printNotifiedMetroEvents(java.lang.Iterable<metroIIcomm.Event.Builder> metroIIEventList)
metroIIEventList
- the event list.