Package dataMap.filemaps
Class FileMapProgress
java.lang.Object
pamViewFX.pamTask.PamTaskUpdate
dataMap.filemaps.FileMapProgress
-
Field Summary
Modifier and TypeFieldDescriptionint
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
ConstructorDescriptionFileMapProgress
(int countingState, int totalFiles, int openedFiles, String fileName) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of the load thread.double
Get the progress of the load thread.Returns a message indicating progress.Methods inherited from class pamViewFX.pamTask.PamTaskUpdate
getProgress2, getProgressString2, getStatus, isDualProgressUpdate, setDualProgressUpdate, setStatus
-
Field Details
-
countingState
public int countingState -
totalFiles
public int totalFiles -
openedFiles
public int openedFiles -
fileName
-
STATE_LOADINGMAP
public static final int STATE_LOADINGMAP- See Also:
-
STATE_SAVINGMAP
public static final int STATE_SAVINGMAP- See Also:
-
STATE_COUNTINGFILES
public static final int STATE_COUNTINGFILES- See Also:
-
STATE_DONECOUNTINGFILES
public static final int STATE_DONECOUNTINGFILES- See Also:
-
STATE_CHECKINGFILES
public static final int STATE_CHECKINGFILES- See Also:
-
-
Constructor Details
-
FileMapProgress
-
-
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.
-
getProgressString
Description copied from class:PamTaskUpdate
Returns a message indicating progress. Can be overriden to supply other messages.- Overrides:
getProgressString
in classPamTaskUpdate
- Returns:
-
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.
-