Package dataGram

Class DatagramProgress


public class DatagramProgress extends PamTaskUpdate
Progress data on datagram creation
Author:
Doug Gillespie
  • Field Details Link icon

    • STATUS_BLOCKCOUNT Link icon

      public static final int STATUS_BLOCKCOUNT
      See Also:
    • STATUS_STARTINGBLOCK Link icon

      public static final int STATUS_STARTINGBLOCK
      See Also:
    • STATUS_ENDINGBLOCK Link icon

      public static final int STATUS_ENDINGBLOCK
      See Also:
    • STATUS_STARTINGFILE Link icon

      public static final int STATUS_STARTINGFILE
      See Also:
    • STATUS_ENDINGFILE Link icon

      public static final int STATUS_ENDINGFILE
      See Also:
    • STATUS_UNITCOUNT Link icon

      public static final int STATUS_UNITCOUNT
      See Also:
    • nDataBlocks Link icon

      public int nDataBlocks
    • pointsToUpdate Link icon

      public int pointsToUpdate
    • currentPoint Link icon

      public int currentPoint
    • dataBlock Link icon

      public PamDataBlock dataBlock
    • dataMapPoint Link icon

      public OfflineDataMapPoint dataMapPoint
    • processedUnits Link icon

      public int processedUnits
    • totalUnits Link icon

      public int totalUnits
  • Constructor Details Link icon

    • DatagramProgress Link icon

      public DatagramProgress(int statusType, int nDataBlocks)
      Parameters:
      statusType -
      nDataBlocks -
    • DatagramProgress Link icon

      public DatagramProgress(int statusType, PamDataBlock dataBlock, int pointsToUpdate)
      Parameters:
      statusType -
      dataBlock -
    • DatagramProgress Link icon

      public DatagramProgress(int statusType, int totalUnits, int processedUnits)
    • DatagramProgress Link icon

      public DatagramProgress(int statusType, OfflineDataMapPoint dataMapPoint, int currentPoint)
      Parameters:
      statusType -
      dataMapPoint -
  • Method Details Link icon

    • getName Link icon

      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.
    • getProgress2 Link icon

      public double getProgress2()
      Description copied from class: PamTaskUpdate
      There may be a need for two progress bars for long task- one showing overall progress and the other showing more fine scale loading tasks. If this is the case then

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

      Overrides:
      getProgress2 in class PamTaskUpdate
      Returns:
      the progress of the thread, between 0 and 1.
    • getProgress Link icon

      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.
    • getProgressString Link icon

      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:
    • getProgressString2 Link icon

      public String getProgressString2()
      Description copied from class: PamTaskUpdate
      If two updates are available then this is used to return the fine progress update message.
      Overrides:
      getProgressString2 in class PamTaskUpdate
      Returns: