Package ghidra.framework.task
Class GScheduledTask
java.lang.Object
ghidra.framework.task.GScheduledTask
- All Implemented Interfaces:
Comparable<GScheduledTask>
Class for tracking scheduled GTasks. When tasks are scheduled, they are assigned to a GTaskGroup,
given a priority, assigned a one-up ID, given a GTaskMonitor. This class is used to keep all
that information together.
-
Constructor Summary
ConstructorDescriptionGScheduledTask
(GTaskGroup group, GTask task, int priority) Create a new GScheduledTask when a task is scheduled with the GTaskManager. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(GScheduledTask other) Returns the description for the scheduled GTask.getGroup()
Return GTaskGroup for this task.int
Returns the priority at which the task was scheduled.getTask()
Returns the GTask that is scheduled.Returns the GTaskMonitor that will be used for this task.toString()
-
Constructor Details
-
GScheduledTask
Create a new GScheduledTask when a task is scheduled with the GTaskManager.- Parameters:
group
- the group that this task belongs to.task
- the task being scheduled.priority
- the priority at which this task is to be executed relative to other scheduled tasks. Lower numbers are run before higher numbers.
-
-
Method Details
-
getTask
Returns the GTask that is scheduled.- Returns:
- the GTask that is scheduled.
-
getPriority
public int getPriority()Returns the priority at which the task was scheduled. Lower numbers have higher priority.- Returns:
- the priority at which the task was scheduled.
-
getTaskMonitor
Returns the GTaskMonitor that will be used for this task.- Returns:
- the GTaskMonitor that will be used for this task.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<GScheduledTask>
-
toString
-
getGroup
Return GTaskGroup for this task.- Returns:
- the GTaskGroup
-
getDescription
Returns the description for the scheduled GTask.- Returns:
- the description for the scheduled GTask.
-