Package moa

Class DoTask


  • public class DoTask
    extends Object
    Class for running a MOA task from the command line.
    Version:
    $Revision: 7 $
    Author:
    Richard Kirkby (rkirkby@cs.waikato.ac.nz)
    • Field Detail

      • progressAnimSequence

        public static final char[] progressAnimSequence
        Array of characters to use to animate the progress of tasks running.
      • MAX_STATUS_STRING_LENGTH

        public static final int MAX_STATUS_STRING_LENGTH
        Maximum length of the status string that shows the progress of tasks running.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DoTask

        public DoTask()
    • Method Detail

      • isJavaVersionOK

        public static boolean isJavaVersionOK()
        Checks if the Java version is recent enough to run MOA.
        Returns:
        true if the Java version is recent.
      • isWekaVersionOK

        public static boolean isWekaVersionOK()
        Checks if the Weka version is recent enough to run MOA. For example, if the Weka version is not recent, there may be problems due to the fact that Instance was a class before 3.7.1 and now is an interface.
        Returns:
        true if the Weka version is recent.
      • main

        public static void main​(String[] args)
        Main method for running tasks from the command line.
        Parameters:
        args - the options