Package weka.core
Class Debug.DBO
- java.lang.Object
-
- weka.core.Debug.DBO
-
- All Implemented Interfaces:
java.io.Serializable,RevisionHandler
- Enclosing class:
- Debug
public static class Debug.DBO extends java.lang.Object implements java.io.Serializable, RevisionHandler
contains debug methods- Version:
- $Revision: 7519 $
- Author:
- Gabi Schmidberger (gabi at cs dot waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Rangem_outputTypesrange of outputtypbooleanm_verboseOnenables/disables output of debug information
-
Constructor Summary
Constructors Constructor Description DBO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandl(int num)Return true if the debug level is set same method as outpuTypeSet but better namevoiddp(int debugType, java.lang.String text)prints out text but only if debug level is set.voiddp(java.lang.String text)prints out text if verbose is on.voiddpln(int debugType, java.lang.String text)prints out text + endofline but only if parameter debug type is set.voiddpln(java.lang.String text)prints out text + endofline if verbose is on.java.lang.StringgetOutputTypes()Gets the current output type selectionjava.lang.StringgetRevision()Returns the revision string.voidinitializeRanges(int upper)Initialize ranges, upper limit must be setbooleanoutputTypeSet(int num)Return true if the outputtype is setstatic voidp(java.lang.String text)prints out text.static voidpln(java.lang.String text)prints out text + endofline.voidsetOutputTypes(java.lang.String list)Switches the outputs on that are requested from the option OvoidsetVerboseOn()Set the verbose on flag on
-
-
-
Field Detail
-
m_verboseOn
public boolean m_verboseOn
enables/disables output of debug information
-
m_outputTypes
public Range m_outputTypes
range of outputtyp
-
-
Method Detail
-
setVerboseOn
public void setVerboseOn()
Set the verbose on flag on
-
initializeRanges
public void initializeRanges(int upper)
Initialize ranges, upper limit must be set- Parameters:
upper- upper limit
-
outputTypeSet
public boolean outputTypeSet(int num)
Return true if the outputtype is set- Parameters:
num- value that is reserved for a specific outputtype- Returns:
- return true if the output type is set
-
dl
public boolean dl(int num)
Return true if the debug level is set same method as outpuTypeSet but better name- Parameters:
num- value that is reserved for a specific outputtype- Returns:
- return true if the debug level is set
-
setOutputTypes
public void setOutputTypes(java.lang.String list)
Switches the outputs on that are requested from the option O- Parameters:
list- list of integers, all are used for an output type
-
getOutputTypes
public java.lang.String getOutputTypes()
Gets the current output type selection- Returns:
- a string containing a comma separated list of ranges
-
dpln
public void dpln(java.lang.String text)
prints out text + endofline if verbose is on. helps to make debug output commands more visible in text- Parameters:
text- the text to print
-
dpln
public void dpln(int debugType, java.lang.String text)prints out text + endofline but only if parameter debug type is set. helps to make debug output commands more visible in text- Parameters:
debugType- the type of the outputtext- the text to print
-
dp
public void dp(java.lang.String text)
prints out text if verbose is on. helps to make debug output commands more visible in text- Parameters:
text- the text to print
-
dp
public void dp(int debugType, java.lang.String text)prints out text but only if debug level is set. helps to make debug output commands more visible in text- Parameters:
debugType- the type of the outputtext- the text to print
-
pln
public static void pln(java.lang.String text)
prints out text + endofline. helps to make debug output commands more visible in text- Parameters:
text- the text to print
-
p
public static void p(java.lang.String text)
prints out text. helps to make debug output commands more visible in text- Parameters:
text- the text to print
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Returns:
- the revision
-
-