lcanals.tc.core
Interface PlanTask

All Superinterfaces:
Task
All Known Implementing Classes:
PlanTaskBean

public interface PlanTask
extends Task

Task data to be handled into a Plan. Contains a lcanals.tc.core.Task, lcanals.tc.core.Timing, lcanals.tc.core.Estimation, and functions to access to them.

Author:
www.lfcanals.es.org

Field Summary
static java.lang.String FINISHED
          String returned by getStatus
static java.lang.String IN_PAUSE
          String returned by getStatus
static java.lang.String NOT_STARTED
          String returned by getStatus
static java.lang.String RUNNING
          String returned by getStatus
 
Method Summary
 long getEstimatedMaximumTotalTime()
          Return the estimated maximum time to complete the task
 long getEstimatedMinimumTotalTime()
          Return the minimum estimated total time to complete the task
 long getEstimatedProjectTime()
          Return the estimated time must be used to complete the task
 long getEstimatedTotalTime()
          Return the estimated time to complete the task
 long getMaximumProjectTime()
          Return the estimated maximum time must be used to complete the task
 long getMinimumProjectTime()
          Return the estimated minimum time must be used to complete the task
 java.lang.String getStatus()
          Returns a string saying the state.
 long getTimeUnit()
          Sets the number of milliseconds which represents each unit of time
 Timing getTiming()
          Returns the current timing related with this task
 long getUsedProjectTime()
          Total project used time
 long getUsedTotalTime()
          Total used time
 boolean isFinished()
          Returns if the task is already finished
 void setEstimation(Estimation estimation)
          Changes the estimation
 void setTimeUnit(long units)
          Returns the number of milliseconds which represents each unit of time.
 void signalPlayPause(java.lang.String comment)
          Receives a play/pause signal (ignored if task is finished yet)
 void signalStop()
          Receives a stop signal, which ends the task
 
Methods inherited from interface lcanals.tc.core.Task
equals, getDescription, getDifficulty, getId, getRisk
 

Field Detail

IN_PAUSE

public static final java.lang.String IN_PAUSE
String returned by getStatus
See Also:
getStatus()

FINISHED

public static final java.lang.String FINISHED
String returned by getStatus
See Also:
getStatus()

RUNNING

public static final java.lang.String RUNNING
String returned by getStatus
See Also:
getStatus()

NOT_STARTED

public static final java.lang.String NOT_STARTED
String returned by getStatus
See Also:
getStatus()
Method Detail

getTiming

public Timing getTiming()
Returns the current timing related with this task

getStatus

public java.lang.String getStatus()
Returns a string saying the state. State can be compared to this static constants:

signalPlayPause

public void signalPlayPause(java.lang.String comment)
Receives a play/pause signal (ignored if task is finished yet)

signalStop

public void signalStop()
Receives a stop signal, which ends the task

getTimeUnit

public long getTimeUnit()
Sets the number of milliseconds which represents each unit of time

setTimeUnit

public void setTimeUnit(long units)
Returns the number of milliseconds which represents each unit of time.

isFinished

public boolean isFinished()
Returns if the task is already finished

getEstimatedProjectTime

public long getEstimatedProjectTime()
Return the estimated time must be used to complete the task

getMaximumProjectTime

public long getMaximumProjectTime()
Return the estimated maximum time must be used to complete the task

getMinimumProjectTime

public long getMinimumProjectTime()
Return the estimated minimum time must be used to complete the task

getEstimatedTotalTime

public long getEstimatedTotalTime()
Return the estimated time to complete the task

getEstimatedMaximumTotalTime

public long getEstimatedMaximumTotalTime()
Return the estimated maximum time to complete the task

getEstimatedMinimumTotalTime

public long getEstimatedMinimumTotalTime()
Return the minimum estimated total time to complete the task

getUsedProjectTime

public long getUsedProjectTime()
Total project used time

getUsedTotalTime

public long getUsedTotalTime()
Total used time

setEstimation

public void setEstimation(Estimation estimation)
Changes the estimation


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