Class SimplePamTaskUpdate

java.lang.Object
pamViewFX.pamTask.PamTaskUpdate
pamViewFX.pamTask.SimplePamTaskUpdate

public class SimplePamTaskUpdate extends PamTaskUpdate
Simple implementation of PAMTaskUpdate which returns 100% by default.
Author:
Jamie Macaulay
  • Constructor Details

    • SimplePamTaskUpdate

      public SimplePamTaskUpdate(String name, int status)
  • Method Details

    • getName

      public String getName()
      Description copied from class: PamTaskUpdate
      Get the name of the load thread. Note the name is also the unique identifier for the running thread so cannot be the same between two different threads.
      Specified by:
      getName in class PamTaskUpdate
      Returns:
      the name of the thread.
    • getStatus

      public int getStatus()
      Overrides:
      getStatus in class PamTaskUpdate
      Returns:
      the status
    • getProgress

      public double getProgress()
      Description copied from class: PamTaskUpdate
      Get the progress of the load thread. This is a value between 0 and 1 were 1 is equivalent to 100% or the thread having finished.

      Note that ProgressIndicator.INTERMEDIATE can be used as an update value to set progress to intermediate.

      Specified by:
      getProgress in class PamTaskUpdate
      Returns:
      the progress of the thread, between 0 and 1.
    • setProgress

      public void setProgress(double progress)
      Set the progress of the task.
      Parameters:
      progress - - progress from 0 to 1 where 1 is 100%