org.dftproject.genesis.core.research
Class ResearchManager

java.lang.Object
  extended by org.dftproject.genesis.core.research.ResearchManager

public class ResearchManager
extends java.lang.Object

The ResearchManager manages a list of research objectives.


Method Summary
 void addListener(IResearchListener listener)
          Adds a listener.
 void addObjective(Objective objective)
          Adds an objective.
protected  void familyAdded(TaskFamily family)
          Notifies the listeners that the given task family has been added to an objective.
protected  void familyCanceled(TaskFamily family)
          Notifies the listeners that the given task family (which belongs to an objective) has been canceled.
protected  void familyRemoved(TaskFamily family)
          Notifies the listeners that the given task family (which belongs to an objective) has been removed.
protected  void familyUpdated(TaskFamily family)
          Notifies the listeners that the given task family (which belongs to an objective) has been updated.
static ResearchManager getDefault()
          Returns the singleton ResearchManager instance.
 java.util.Set<Objective> getObjectives()
          Returns the set of objectives.
protected  void objectiveAdded(Objective objective)
          Notifies the listeners that the given objective has been added.
protected  void objectiveCanceled(Objective objective)
          Notifies the listeners that the given objective has been canceled.
protected  void objectiveRemoved(Objective objective)
          Notifies the listeners that the given objective has been removed.
 void removeListener(IResearchListener listener)
          Adds a listener.
protected  void removeObjective(Objective objective)
          Removes an objective
protected  void taskAdded(Task task)
          Notifies the listeners that the given task has been added to a task family which belongs to an objective.
protected  void taskCanceled(Task task)
          Notifies the listeners that the given task (which belongs to a task family which belongs to an objective) has been canceled.
protected  void taskRemoved(Task task)
          Notifies the listeners that the given task (which belongs to a task family which belongs to an objective) has been removed.
protected  void taskUpdated(Task task)
          Notifies the listeners that the given task (which belongs to a task family which belongs to an objective) has been updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static ResearchManager getDefault()
Returns the singleton ResearchManager instance.

Returns:
the singleton ResearchManager instance

addObjective

public void addObjective(Objective objective)
Adds an objective.

Parameters:
objective - the objective

removeObjective

protected void removeObjective(Objective objective)
Removes an objective

Parameters:
objective - the objective

getObjectives

public java.util.Set<Objective> getObjectives()
Returns the set of objectives.

Returns:
the set of objectives

addListener

public void addListener(IResearchListener listener)
Adds a listener.

Parameters:
listener - the listener

removeListener

public void removeListener(IResearchListener listener)
Adds a listener.

Parameters:
listener - the listener

objectiveAdded

protected void objectiveAdded(Objective objective)
Notifies the listeners that the given objective has been added.

Parameters:
objective - the objective

objectiveCanceled

protected void objectiveCanceled(Objective objective)
Notifies the listeners that the given objective has been canceled.

Parameters:
objective - the objective

objectiveRemoved

protected void objectiveRemoved(Objective objective)
Notifies the listeners that the given objective has been removed.

Parameters:
objective - the objective

familyAdded

protected void familyAdded(TaskFamily family)
Notifies the listeners that the given task family has been added to an objective.

Parameters:
family - the task family

familyUpdated

protected void familyUpdated(TaskFamily family)
Notifies the listeners that the given task family (which belongs to an objective) has been updated.

Parameters:
family - the task family

familyCanceled

protected void familyCanceled(TaskFamily family)
Notifies the listeners that the given task family (which belongs to an objective) has been canceled.

Parameters:
family - the task family

familyRemoved

protected void familyRemoved(TaskFamily family)
Notifies the listeners that the given task family (which belongs to an objective) has been removed.

Parameters:
family - the task family

taskAdded

protected void taskAdded(Task task)
Notifies the listeners that the given task has been added to a task family which belongs to an objective.

Parameters:
task - the task

taskUpdated

protected void taskUpdated(Task task)
Notifies the listeners that the given task (which belongs to a task family which belongs to an objective) has been updated.

Parameters:
task - the task

taskCanceled

protected void taskCanceled(Task task)
Notifies the listeners that the given task (which belongs to a task family which belongs to an objective) has been canceled.

Parameters:
task - the task

taskRemoved

protected void taskRemoved(Task task)
Notifies the listeners that the given task (which belongs to a task family which belongs to an objective) has been removed.

Parameters:
task - the task