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 Range
m_outputTypes
range of outputtypboolean
m_verboseOn
enables/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 boolean
dl(int num)
Return true if the debug level is set same method as outpuTypeSet but better namevoid
dp(int debugType, java.lang.String text)
prints out text but only if debug level is set.void
dp(java.lang.String text)
prints out text if verbose is on.void
dpln(int debugType, java.lang.String text)
prints out text + endofline but only if parameter debug type is set.void
dpln(java.lang.String text)
prints out text + endofline if verbose is on.java.lang.String
getOutputTypes()
Gets the current output type selectionjava.lang.String
getRevision()
Returns the revision string.void
initializeRanges(int upper)
Initialize ranges, upper limit must be setboolean
outputTypeSet(int num)
Return true if the outputtype is setstatic void
p(java.lang.String text)
prints out text.static void
pln(java.lang.String text)
prints out text + endofline.void
setOutputTypes(java.lang.String list)
Switches the outputs on that are requested from the option Ovoid
setVerboseOn()
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:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-
-