Package weka.core
Class Debug.DBO
java.lang.Object
weka.core.Debug.DBO
- All Implemented Interfaces:
Serializable
,RevisionHandler
- Enclosing class:
- Debug
contains debug methods
- Version:
- $Revision: 8034 $
- Author:
- Gabi Schmidberger (gabi at cs dot waikato dot ac dot nz)
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionrange of outputtypboolean
enables/disables output of debug information -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
dl
(int num) Return true if the debug level is set same method as outpuTypeSet but better namevoid
prints out text but only if debug level is set.void
prints out text if verbose is on.void
prints out text + endofline but only if parameter debug type is set.void
prints out text + endofline if verbose is on.Gets the current output type selectionReturns 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
prints out text.static void
prints out text + endofline.void
setOutputTypes
(String list) Switches the outputs on that are requested from the option Ovoid
Set the verbose on flag on
-
Field Details
-
m_verboseOn
public boolean m_verboseOnenables/disables output of debug information -
m_outputTypes
range of outputtyp
-
-
Constructor Details
-
DBO
public DBO()
-
-
Method Details
-
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
Switches the outputs on that are requested from the option O- Parameters:
list
- list of integers, all are used for an output type
-
getOutputTypes
Gets the current output type selection- Returns:
- a string containing a comma separated list of ranges
-
dpln
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
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
prints out text if verbose is on. helps to make debug output commands more visible in text- Parameters:
text
- the text to print
-
dp
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
prints out text + endofline. helps to make debug output commands more visible in text- Parameters:
text
- the text to print
-
p
prints out text. helps to make debug output commands more visible in text- Parameters:
text
- the text to print
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-