Home | History | Annotate | Download | only in tasks

Lines Matching defs:Task

26  * A task necessary to accomplish the user's requested actions. Tasks have
27 * prerequisites; a task must not be run until it reports that it is runnable.
28 * Tasks may be run at most once; running a task produces a result.
30 public abstract class Task {
32 final List<Task> tasksThatMustFinishFirst = new ArrayList<Task>();
33 final List<Task> tasksThatMustFinishSuccessfullyFirst = new ArrayList<Task>();
37 protected Task(String name) {
42 * Returns true if this task is an action task. The queue imposes limits
49 public Task after(Task prerequisite) {
54 public Task after(Collection<Task> prerequisites) {
59 public Task afterSuccess(Task prerequisite) {
64 public Task afterSuccess(Collection<Task> prerequisitess) {
70 for (Task task : tasksThatMustFinishFirst) {
71 if (task.result == null) {
75 for (Task task : tasksThatMustFinishSuccessfullyFirst) {
76 if (task.result != Result.SUCCESS) {