Class BinaryMapMakeProgress

java.lang.Object
pamViewFX.pamTask.PamTaskUpdate
binaryFileStorage.BinaryMapMakeProgress

public class BinaryMapMakeProgress extends PamTaskUpdate
  • Field Details

  • Constructor Details

    • BinaryMapMakeProgress

      public BinaryMapMakeProgress(int status, String streamName, int totalStreams, int currentStream)
  • Method Details

    • getStatus

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

      public void setStatus(int status)
      Description copied from class: PamTaskUpdate
      Set the status of the thread. This can either a generic status from the abstract class or a custom status.
      Overrides:
      setStatus in class PamTaskUpdate
      Parameters:
      status - the status to set
    • getStreamName

      public String getStreamName()
      Returns:
      the streamName
    • setStreamName

      public void setStreamName(String streamName)
      Parameters:
      streamName - the streamName to set
    • getTotalStreams

      public int getTotalStreams()
      Returns:
      the totalStreams
    • setTotalStreams

      public void setTotalStreams(int totalStreams)
      Parameters:
      totalStreams - the totalStreams to set
    • getCurrentStream

      public int getCurrentStream()
      Returns:
      the currentStream
    • setCurrentStream

      public void setCurrentStream(int currentStream)
      Parameters:
      currentStream - the currentStream to set
    • 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.
    • 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.
    • getProgressString

      public String getProgressString()
      Description copied from class: PamTaskUpdate
      Returns a message indicating progress. Can be overriden to supply other messages.
      Overrides:
      getProgressString in class PamTaskUpdate
      Returns: