Package moa
Class DoTask
- java.lang.Object
-
- moa.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 Summary
Fields Modifier and Type Field Description static int
MAX_STATUS_STRING_LENGTH
Maximum length of the status string that shows the progress of tasks running.static char[]
progressAnimSequence
Array of characters to use to animate the progress of tasks running.
-
Constructor Summary
Constructors Constructor Description DoTask()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isJavaVersionOK()
Checks if the Java version is recent enough to run MOA.static boolean
isWekaVersionOK()
Checks if the Weka version is recent enough to run MOA.static void
main(String[] args)
Main method for running tasks from the command line.
-
-
-
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
-
-
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 thatInstance
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
-
-