Class Script.ScriptThread

java.lang.Object
java.lang.Thread
weka.gui.scripting.Script.ScriptThread
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
GroovyScript.GroovyThread, JythonScript.JythonThread
Enclosing class:
Script

public abstract static class Script.ScriptThread extends Thread
The Thread for running a script.
Version:
$Revision: 10222 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
  • Constructor Details

    • ScriptThread

      public ScriptThread(Script owner, String[] args)
      Initializes the thread.
      Parameters:
      owner - the owning script
      args - the commandline arguments
  • Method Details

    • getOwner

      public Script getOwner()
      Returns the owner.
      Returns:
      the owning script
    • getArgs

      public String[] getArgs()
      Returns the commandline args.
      Returns:
      the arguments
    • run

      public void run()
      Executes the script.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • stopScript

      public void stopScript()
      Stops the script execution.