|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lcanals.tc.model.PlanTaskBean
Bean which represents a line in the plan.
Contains the difficulty, risk, description, estimated time,
estimated maximum time, used time to complete it and if it's
completed or not and functions to change the status.
Two beans of this type are equal if and only if they have the same id
Fields inherited from interface lcanals.tc.core.PlanTask |
FINISHED, IN_PAUSE, NOT_STARTED, RUNNING |
Constructor Summary | |
PlanTaskBean(int id,
Task taskDescription,
Estimation taskEstimation,
Timing taskTiming,
long timeUnit)
Builds a new task bean description. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Two beans of this type are equals if and only if their ids are the same |
java.lang.String |
getDescription()
|
int |
getDifficulty()
|
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 |
int |
getId()
|
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 |
int |
getRisk()
|
java.lang.String |
getStatus()
Returns a string saying the state. |
long |
getTimeUnit()
Returns the unit of milliseconds in that the time functions of this bean return their values |
Timing |
getTiming()
Returns the 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)
Updates estimation |
void |
setTimeUnit(long timeUnit)
Sets the unit of milliseconds in that the time functions of this bean will return their values |
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 class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlanTaskBean(int id, Task taskDescription, Estimation taskEstimation, Timing taskTiming, long timeUnit)
Method Detail |
public int getId()
getId
in interface Task
public int getDifficulty()
getDifficulty
in interface Task
public int getRisk()
getRisk
in interface Task
public java.lang.String getDescription()
getDescription
in interface Task
public long getEstimatedProjectTime()
PlanTask
getEstimatedProjectTime
in interface PlanTask
public long getMaximumProjectTime()
PlanTask
getMaximumProjectTime
in interface PlanTask
public long getMinimumProjectTime()
PlanTask
getMinimumProjectTime
in interface PlanTask
public long getEstimatedTotalTime()
PlanTask
getEstimatedTotalTime
in interface PlanTask
public long getEstimatedMaximumTotalTime()
PlanTask
getEstimatedMaximumTotalTime
in interface PlanTask
public long getEstimatedMinimumTotalTime()
PlanTask
getEstimatedMinimumTotalTime
in interface PlanTask
public long getUsedProjectTime()
PlanTask
getUsedProjectTime
in interface PlanTask
public long getUsedTotalTime()
PlanTask
getUsedTotalTime
in interface PlanTask
public boolean isFinished()
PlanTask
isFinished
in interface PlanTask
public java.lang.String getStatus()
PlanTask
PlanTask.NOT_STARTED
PlanTask.RUNNING
PlanTask.IN_PAUSE
PlanTask.FINISHED
getStatus
in interface PlanTask
public long getTimeUnit()
getTimeUnit
in interface PlanTask
public void setTimeUnit(long timeUnit)
setTimeUnit
in interface PlanTask
public Timing getTiming()
getTiming
in interface PlanTask
public void signalPlayPause(java.lang.String comment)
signalPlayPause
in interface PlanTask
public void signalStop()
signalStop
in interface PlanTask
public void setEstimation(Estimation estimation)
setEstimation
in interface PlanTask
public boolean equals(java.lang.Object other)
equals
in interface Task
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |