|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dftproject.genesis.core.research.TaskFamily
public abstract class TaskFamily
A TaskFamily is a collection of tasks working on a particular objective.
| Constructor Summary | |
|---|---|
TaskFamily(Objective objective)
Creates a TaskFamily for the given objective. |
|
| Method Summary | |
|---|---|
void |
addListener(IFamilyListener listener)
Adds a listener to this family. |
void |
addTask(Task task)
Adds a task to this family. |
void |
cancel()
Cancels this task family and all the tasks that comprise it. |
protected void |
finished()
Called when this family is finished working on the objective. |
abstract java.lang.String |
getDescription()
Returns the description of this task family |
java.lang.String |
getFullDescription()
Returns a full description of this task family (including canceled status). |
abstract org.eclipse.swt.graphics.Image |
getIcon()
Returns the icon for this task family |
Objective |
getObjective()
Returns the objective this task family is working on. |
java.util.Set<Task> |
getTasks()
Returns the set of tasks that comprise this family. |
boolean |
isCanceled()
Returns whether or not this family has been canceled. |
void |
removeListener(IFamilyListener listener)
Removes a listener from this family |
protected void |
removeTask(Task task)
Removes a task from this family |
protected void |
taskCanceled(Task task)
Called when a task that belongs to this family is canceled. |
protected void |
taskUpdated(Task task)
Called when a task that belongs to this family is updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskFamily(Objective objective)
objective - an objective| Method Detail |
|---|
public Objective getObjective()
public void addTask(Task task)
task - a taskpublic java.util.Set<Task> getTasks()
public void cancel()
public boolean isCanceled()
public void addListener(IFamilyListener listener)
listener - a family listenerpublic void removeListener(IFamilyListener listener)
listener - a family listenerprotected void taskCanceled(Task task)
task - a task that belongs to this familyprotected void taskUpdated(Task task)
task - a task that belongs to this familyprotected void removeTask(Task task)
task - a task that belongs to this familyprotected void finished()
public java.lang.String getFullDescription()
public abstract java.lang.String getDescription()
public abstract org.eclipse.swt.graphics.Image getIcon()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||