|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectofflineProcessing.OfflineTaskGroup
public class OfflineTaskGroup
This will be the primary interface to OfflineTasks - even if there is only one task it will be in a group of one !
| Nested Class Summary | |
|---|---|
(package private) class |
OfflineTaskGroup.TaskGroupWorker
Swing worker to do the actual work. |
| Field Summary | |
|---|---|
private java.util.ArrayList<PamDataBlock> |
affectedDataBlocks
Summary list of all data blocks affected by the list. |
private java.util.ArrayList<OfflineTask> |
offlineTasks
|
private PamControlledUnit |
pamControlledUnit
|
private PamDataBlock |
primaryDataBlock
Data block used by ALL tasks in the group. |
static int |
PROCESS_ALL
Process all data in the datastore (binary, database, or wherever). |
static int |
PROCESS_LOADED
process only the data currently loaded in memory. |
private int |
processTime
time period flag = PROCESS_LOADED or PROCESS_ALL |
private java.util.ArrayList<PamDataBlock> |
requiredDataBlocks
Summary list of all data blocks required by all tasks in the list. |
private TaskMonitor |
taskMonitor
A task monitor which will receive progress updates as the tasks complete. |
private OfflineTaskGroup.TaskGroupWorker |
worker
|
| Constructor Summary | |
|---|---|
OfflineTaskGroup(PamControlledUnit pamControlledUnit)
PamControlledunit required in constructor since some bookkeeping will be goign on in the backgroun which will need the unit type and name. |
|
| Method Summary | |
|---|---|
void |
addTask(OfflineTask task)
|
int |
getNTasks()
|
PamDataBlock |
getPrimaryDataBlock()
|
int |
getProcessTime()
|
OfflineTask |
getTask(int iTask)
|
TaskMonitor |
getTaskMonitor()
|
void |
killTasks()
|
private void |
newMonitorData(TaskMonitorData monData)
|
boolean |
runTasks(int dataChoice)
Run all the tasks. |
void |
setProcessTime(int processTime)
|
void |
setSummaryLists()
Setup summary lists of required and affected datablocks based on which tasks are actually going to run . |
void |
setTaskMonitor(TaskMonitor taskMonitor)
|
void |
tasksDone()
some bookkeeping - write information about task completion to the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList<PamDataBlock> requiredDataBlocks
private java.util.ArrayList<PamDataBlock> affectedDataBlocks
private PamControlledUnit pamControlledUnit
private TaskMonitor taskMonitor
public static final int PROCESS_LOADED
public static final int PROCESS_ALL
private int processTime
private PamDataBlock primaryDataBlock
private java.util.ArrayList<OfflineTask> offlineTasks
private OfflineTaskGroup.TaskGroupWorker worker
| Constructor Detail |
|---|
public OfflineTaskGroup(PamControlledUnit pamControlledUnit)
pamControlledUnit - | Method Detail |
|---|
public void setSummaryLists()
public boolean runTasks(int dataChoice)
dataChoice -
public void killTasks()
public void addTask(OfflineTask task)
task - task to add to the grouppublic int getNTasks()
public OfflineTask getTask(int iTask)
iTask - the task number
public int getProcessTime()
public void setProcessTime(int processTime)
processTime - the processTime to setpublic PamDataBlock getPrimaryDataBlock()
public TaskMonitor getTaskMonitor()
public void setTaskMonitor(TaskMonitor taskMonitor)
taskMonitor - the taskMonitor to setprivate void newMonitorData(TaskMonitorData monData)
public void tasksDone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||