Class InvestigatorJob

  • All Implemented Interfaces:
    Runnable

    public abstract class InvestigatorJob
    extends Object
    implements Runnable
    For running jobs in the InvestigatorPanel.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • 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.
      • run

        public void run()
        Executes the job.
        Specified by:
        run in interface Runnable