Class InvestigatorJob
- java.lang.Object
-
- adams.gui.tools.wekainvestigator.job.InvestigatorJob
-
- All Implemented Interfaces:
Runnable
public abstract class InvestigatorJob extends Object implements Runnable
For running jobs in theInvestigatorPanel
.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected InvestigatorPanel
m_Owner
the owner.protected String
m_Title
the title of the job.
-
Constructor Summary
Constructors Constructor Description InvestigatorJob(InvestigatorPanel owner, String title)
Initializes the job.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doRun()
Performs the actual execution.InvestigatorPanel
getOwner()
Returns the owner.String
getTitle()
Returns the title of the job.protected void
postRun()
Gets called after execution.protected void
preRun()
Gets called before the execution.void
run()
Executes the job.
-
-
-
Field Detail
-
m_Owner
protected InvestigatorPanel m_Owner
the owner.
-
m_Title
protected String m_Title
the title of the job.
-
-
Constructor Detail
-
InvestigatorJob
public InvestigatorJob(InvestigatorPanel owner, String title)
Initializes the job.- Parameters:
owner
- the owning panel
-
-
Method Detail
-
getOwner
public InvestigatorPanel getOwner()
Returns the owner.- Returns:
- the owner
-
getTitle
public String getTitle()
Returns the title of the job.- Returns:
- the title
-
preRun
protected void preRun()
Gets called before the execution.
-
doRun
protected abstract void doRun()
Performs the actual execution.
-
postRun
protected void postRun()
Gets called after execution.
-
-