Package dataGram
Class DatagramProgress
java.lang.Object
pamViewFX.pamTask.PamTaskUpdate
dataGram.DatagramProgress
Progress data on datagram creation
- Author:
- Doug Gillespie
-
Field Summary
Modifier and TypeFieldDescriptionint
int
int
int
static final int
static final int
static final int
static final int
static final int
static final int
int
Fields inherited from class pamViewFX.pamTask.PamTaskUpdate
STATUS_ANALYSING_FILES, STATUS_COUNTING_FILES, STATUS_DESERIALIZING, STATUS_DONE, STATUS_DONE_ERROR, STATUS_IDLE, STATUS_SERIALIZING, STATUS_SORTING
-
Constructor Summary
ConstructorDescriptionDatagramProgress
(int statusType, int nDataBlocks) DatagramProgress
(int statusType, int totalUnits, int processedUnits) DatagramProgress
(int statusType, OfflineDataMapPoint dataMapPoint, int currentPoint) DatagramProgress
(int statusType, PamDataBlock dataBlock, int pointsToUpdate) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of the load thread.double
Get the progress of the load thread.double
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.Returns a message indicating progress.If two updates are available then this is used to return the fine progress update message.Methods inherited from class pamViewFX.pamTask.PamTaskUpdate
getStatus, isDualProgressUpdate, setDualProgressUpdate, setStatus
-
Field Details
-
STATUS_BLOCKCOUNT
public static final int STATUS_BLOCKCOUNT- See Also:
-
STATUS_STARTINGBLOCK
public static final int STATUS_STARTINGBLOCK- See Also:
-
STATUS_ENDINGBLOCK
public static final int STATUS_ENDINGBLOCK- See Also:
-
STATUS_STARTINGFILE
public static final int STATUS_STARTINGFILE- See Also:
-
STATUS_ENDINGFILE
public static final int STATUS_ENDINGFILE- See Also:
-
STATUS_UNITCOUNT
public static final int STATUS_UNITCOUNT- See Also:
-
nDataBlocks
public int nDataBlocks -
pointsToUpdate
public int pointsToUpdate -
currentPoint
public int currentPoint -
dataBlock
-
dataMapPoint
-
processedUnits
public int processedUnits -
totalUnits
public int totalUnits
-
-
Constructor Details
-
DatagramProgress
public DatagramProgress(int statusType, int nDataBlocks) - Parameters:
statusType
-nDataBlocks
-
-
DatagramProgress
- Parameters:
statusType
-dataBlock
-
-
DatagramProgress
public DatagramProgress(int statusType, int totalUnits, int processedUnits) -
DatagramProgress
- Parameters:
statusType
-dataMapPoint
-
-
-
Method Details
-
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 classPamTaskUpdate
- Returns:
- the name of the thread.
-
getProgress2
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 thenNote that ProgressIndicator.INTERMEDIATE can be used as an update value to set progress to intermediate.
- Overrides:
getProgress2
in classPamTaskUpdate
- Returns:
- the progress of the thread, between 0 and 1.
-
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 classPamTaskUpdate
- Returns:
- the progress of the thread, between 0 and 1.
-
getProgressString
Description copied from class:PamTaskUpdate
Returns a message indicating progress. Can be overriden to supply other messages.- Overrides:
getProgressString
in classPamTaskUpdate
- Returns:
-
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 classPamTaskUpdate
- Returns:
-