lcanals.tc.core
Interface Factory

All Known Implementing Classes:
FactoryFile

public interface Factory

Factory of core elements: tasks, timings and estimations. Implementations of this interface must have a non-arg constructor.

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

Method Summary
 Plan createPlan(java.lang.String userName, java.lang.String description)
          Creates new empty plan
 PlanTask createPlanTask(Estimator estimator, int difficulty, int risk, java.lang.String description)
          Creates a task to be used with plans with the given descriptions
 Plan obtainCurrentPlan(java.lang.String userName)
          Takes the current plan for the given user name
 Estimator obtainEstimator(java.lang.String userName)
          Gets the estimator for the given user
 

Method Detail

createPlan

public Plan createPlan(java.lang.String userName,
                       java.lang.String description)
                throws java.lang.InstantiationException
Creates new empty plan

createPlanTask

public PlanTask createPlanTask(Estimator estimator,
                               int difficulty,
                               int risk,
                               java.lang.String description)
                        throws java.lang.InstantiationException
Creates a task to be used with plans with the given descriptions

obtainCurrentPlan

public Plan obtainCurrentPlan(java.lang.String userName)
                       throws java.lang.InstantiationException
Takes the current plan for the given user name
Returns:
null if there was no plan.

obtainEstimator

public Estimator obtainEstimator(java.lang.String userName)
                          throws java.lang.InstantiationException
Gets the estimator for the given user


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