Package weka.core

Class Debug.DBO

    • Field Detail

      • m_verboseOn

        public boolean m_verboseOn
        enables/disables output of debug information
      • m_outputTypes

        public Range m_outputTypes
        range of outputtyp
    • Constructor Detail

      • DBO

        public DBO()
    • 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​(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 String getOutputTypes()
        Gets the current output type selection
        Returns:
        a string containing a comma separated list of ranges
      • dpln

        public void dpln​(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,
                         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 output
        text - the text to print
      • dp

        public void dp​(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,
                       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 output
        text - the text to print
      • pln

        public static void pln​(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​(String text)
        prints out text. helps to make debug output commands more visible in text
        Parameters:
        text - the text to print