Class RemoteWekaExperimentRunner
- java.lang.Object
-
- java.lang.Thread
-
- adams.gui.tools.wekamultiexperimenter.runner.AbstractExperimentRunner<T>
-
- adams.gui.tools.wekamultiexperimenter.runner.AbstractWekaExperimentRunner<weka.experiment.Experiment>
-
- adams.gui.tools.wekamultiexperimenter.runner.RemoteWekaExperimentRunner
-
- All Implemented Interfaces:
Serializable
,Runnable
public class RemoteWekaExperimentRunner extends AbstractWekaExperimentRunner<weka.experiment.Experiment>
A class that handles running a copy of the experiment in a separate thread.- See Also:
RunPanel.ExperimentRunner
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class adams.gui.tools.wekamultiexperimenter.runner.AbstractExperimentRunner
m_Aborted, m_Exp, m_Owner, m_Running, NOT_RUNNING
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description RemoteWekaExperimentRunner(ExperimenterPanel owner)
Initializes the thread.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abortExperiment()
Aborts the experiment.protected void
doRun()
Performs the actual running of the experiment.protected void
preRun()
Hook method that gets executed before the experiment gets initialized.-
Methods inherited from class adams.gui.tools.wekamultiexperimenter.runner.AbstractWekaExperimentRunner
doInitialize, loadResults, postRun
-
Methods inherited from class adams.gui.tools.wekamultiexperimenter.runner.AbstractExperimentRunner
isRunning, logError, logError, logMessage, logMessage, run, showStatus, update
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
RemoteWekaExperimentRunner
public RemoteWekaExperimentRunner(ExperimenterPanel owner) throws Exception
Initializes the thread.- Parameters:
owner
- the experimenter this runner belongs to- Throws:
Exception
- if experiment is null or cannot be copied via serialization
-
-
Method Detail
-
abortExperiment
public void abortExperiment()
Aborts the experiment.- Overrides:
abortExperiment
in classAbstractExperimentRunner<weka.experiment.Experiment>
-
preRun
protected void preRun() throws Exception
Hook method that gets executed before the experiment gets initialized.- Overrides:
preRun
in classAbstractExperimentRunner<weka.experiment.Experiment>
- Throws:
Exception
- fails due to some error
-
doRun
protected void doRun() throws Exception
Performs the actual running of the experiment.- Specified by:
doRun
in classAbstractExperimentRunner<weka.experiment.Experiment>
- Throws:
Exception
- fails due to some error
-
-