lcanals.tc.model.file
Class PlanBean

java.lang.Object
  |
  +--lcanals.tc.model.file.PlanBean
All Implemented Interfaces:
Plan, java.io.Serializable

public class PlanBean
extends java.lang.Object
implements Plan, java.io.Serializable

Set of tasks.

Author:
www.lfcanals.es.org
See Also:
Serialized Form

Constructor Summary
PlanBean()
          Builds a new empty plan bean For conformance with Java Beans specifications
PlanBean(int id, java.lang.String description)
          Builds a new empty plan bean with the given id
 
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)
          Recalculates currently not finished tasks
 void removeTask(PlanTask task)
          Removes a task
 void setTask(PlanTask task)
          Adds new task to the plan or substitutes a task
 java.util.Iterator tasksIterator()
          Returns an iterator over the tasks of this plan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanBean

public PlanBean()
Builds a new empty plan bean For conformance with Java Beans specifications

PlanBean

public PlanBean(int id,
                java.lang.String description)
Builds a new empty plan bean with the given id
Method Detail

getDescription

public java.lang.String getDescription()
Returns the description of the plan
Specified by:
getDescription in interface Plan

tasksIterator

public java.util.Iterator tasksIterator()
Returns an iterator over the tasks of this plan
Specified by:
tasksIterator in interface Plan
Returns:
an Iterator of PlanTaskBean elements

setTask

public void setTask(PlanTask task)
Adds new task to the plan or substitutes a task
Specified by:
setTask in interface Plan

removeTask

public void removeTask(PlanTask task)
Removes a task
Specified by:
removeTask in interface Plan

getTaskWithId

public PlanTask getTaskWithId(int id)
Return the PlanTaskBean with the given id, or null if not present
Specified by:
getTaskWithId in interface Plan

recalculateTasks

public void recalculateTasks(Estimator estimator)
Recalculates currently not finished tasks
Specified by:
recalculateTasks in interface Plan
Following copied from interface: lcanals.tc.core.Plan
Parameters:
estimator - Estimator will be used to calculate


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