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 InvestigatorPanelm_Ownerthe owner.protected Stringm_Titlethe 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 voiddoRun()Performs the actual execution.InvestigatorPanelgetOwner()Returns the owner.StringgetTitle()Returns the title of the job.protected voidpostRun()Gets called after execution.protected voidpreRun()Gets called before the execution.voidrun()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.
-
-