Class DefaultWekaExperimentRunner
- 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.DefaultWekaExperimentRunner
-
- All Implemented Interfaces:
Serializable
,Runnable
public class DefaultWekaExperimentRunner 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 DefaultWekaExperimentRunner(ExperimenterPanel owner)
Initializes the thread.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRun()
Performs the actual running of the experiment.protected void
postRun(boolean success)
Hook method that gets executed after the experiment has finished (successfully or not).-
Methods inherited from class adams.gui.tools.wekamultiexperimenter.runner.AbstractWekaExperimentRunner
doInitialize, loadResults
-
Methods inherited from class adams.gui.tools.wekamultiexperimenter.runner.AbstractExperimentRunner
abortExperiment, isRunning, logError, logError, logMessage, logMessage, preRun, 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
-
DefaultWekaExperimentRunner
public DefaultWekaExperimentRunner(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
-
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
-
postRun
protected void postRun(boolean success)
Hook method that gets executed after the experiment has finished (successfully or not).- Overrides:
postRun
in classAbstractWekaExperimentRunner<weka.experiment.Experiment>
- Parameters:
success
- whether successfully finished (neither error, nor aborted)
-
-