lcanals.tc.core
Interface Plan

All Known Implementing Classes:
PlanBean

public interface Plan

Set of tasks.

Author:
www.lfcanals.es.org

Method Summary
 java.lang.String getDescription()
          Returns the description of the plan
 PlanTask getTaskWithId(int id)
          Return the PlanTaskBean with the given id, or null if not present
 void recalculateTasks(Estimator estimator)
          Updates the estimations for the tasks (only for those one aren't finished)
 void removeTask(PlanTask task)
          Removes a task
 void setTask(PlanTask task)
          Adds a task to the plan (or changes a present task with the same id)
 java.util.Iterator tasksIterator()
          Returns an iterator over the set of the all tasks which conform this plan.
 

Method Detail

tasksIterator

public java.util.Iterator tasksIterator()
Returns an iterator over the set of the all tasks which conform this plan.
Returns:
Iterator of lcanals.tc.core.PlanTask elements

getDescription

public java.lang.String getDescription()
Returns the description of the plan

setTask

public void setTask(PlanTask task)
Adds a task to the plan (or changes a present task with the same id)

removeTask

public void removeTask(PlanTask task)
Removes a task

getTaskWithId

public PlanTask getTaskWithId(int id)
Return the PlanTaskBean with the given id, or null if not present

recalculateTasks

public void recalculateTasks(Estimator estimator)
Updates the estimations for the tasks (only for those one aren't finished)
Parameters:
estimator - Estimator will be used to calculate


Luis F. Canals. Supported by www.sourceforge.net