Package weka.gui

Class SimpleCLIPanel.ClassRunner

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    SimpleCLIPanel

    public static class SimpleCLIPanel.ClassRunner
    extends Thread
    A class that handles running the main method of the class in a separate thread.
    Version:
    $Revision$
    Author:
    Len Trigg (trigg@cs.waikato.ac.nz)
    • Constructor Detail

      • ClassRunner

        public ClassRunner​(SimpleCLIPanel owner,
                           Class<?> theClass,
                           String[] commandArgs)
                    throws Exception
        Sets up the class runner thread.
        Parameters:
        theClass - the Class to call the main method of
        commandArgs - an array of Strings to use as command line args
        Throws:
        Exception - if an error occurs
    • Method Detail

      • run

        public void run()
        Starts running the main method.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread