|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectparatask.runtime.ParaTask
public class ParaTask
Helper methods for the ParaTask runtime. This class contains various functions to set up the ParaTask runtime, etc.
All applications making use of the ParaTask features should invoke init()
early in the main
method. This will initialise various aspects of the ParaTask runtime.
Nested Class Summary | |
---|---|
static class |
ParaTask.ScheduleType
Enum representing the possible schedules that ParaTask supports. |
Method Summary | |
---|---|
static int |
activeInteractiveTaskCount()
Returns a count of the number of active interactive tasks. |
static java.util.ArrayList<TaskID> |
allTasksInGroup(TaskIDGroup group)
A recursive convenience function that digs into the TaskIDGroup and returns all the individual TaskIDs. |
static java.util.ArrayList<TaskID> |
allTasksInList(java.util.ArrayList<TaskID> list)
Flattens a list of TaskIDs. |
static ParaTask.ScheduleType |
getScheduleType()
Returns the schedule being used in the runtime. |
static int |
getThreadPoolSize()
Returns the size of the thread pool. |
static void |
init()
To be executed by the main thread. |
static void |
setScheduling(ParaTask.ScheduleType type)
Set the scheduling scheme. |
static void |
setThreadPoolSize(int size)
Set the size of the thread pool. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setThreadPoolSize(int size)
size
- public static void setScheduling(ParaTask.ScheduleType type)
type
- The schedule to use.public static ParaTask.ScheduleType getScheduleType()
public static int getThreadPoolSize()
public static int activeInteractiveTaskCount()
public static void init()
main
method. This registers the main thread and event
dispatch thread with ParaTask, as well as other ParaTask runtime settings.
public static java.util.ArrayList<TaskID> allTasksInList(java.util.ArrayList<TaskID> list)
list
- Input list of TaskIDs (with potentially some TaskIDGroups)
allTasksInGroup(TaskIDGroup)
public static java.util.ArrayList<TaskID> allTasksInGroup(TaskIDGroup group)
group
placed inside a new ArrayListallTasksInList(ArrayList)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |