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
FieldsModifier and TypeFieldDescriptionrange of outputtypbooleanenables/disables output of debug information -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandl(int num) Return true if the debug level is set same method as outpuTypeSet but better namevoidprints out text but only if debug level is set.voidprints out text if verbose is on.voidprints out text + endofline but only if parameter debug type is set.voidprints out text + endofline if verbose is on.Gets the current output type selectionReturns the revision string.voidinitializeRanges(int upper) Initialize ranges, upper limit must be setbooleanoutputTypeSet(int num) Return true if the outputtype is setstatic voidprints out text.static voidprints out text + endofline.voidsetOutputTypes(String list) Switches the outputs on that are requested from the option OvoidSet 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:
getRevisionin interfaceRevisionHandler- Returns:
- the revision
-