|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwatch.Commentable
watch.Task
class Task
Task model class.
Field Summary | |
---|---|
static int |
SCHEDULING_AT_END
"At-end" scheduling. |
static int |
SCHEDULING_LINEAR
Linear scheduling. |
static int |
SCHEDULING_NONE
No scheduling. |
Constructor Summary | |
---|---|
Task(java.lang.String J_TaskId,
Date W_ReferenceStartDate,
double D_Reference,
double D_ReferenceRisks,
double D_ReferenceOpportunities,
Date W_PlannedStartDate,
Date W_PlannedEndDate,
int E_SchedulingMode)
Constructor. |
Method Summary | |
---|---|
void |
addImputation(Imputation W_Imputation)
Imputation addition. |
void |
addRevision(Revision W_Revision)
Revision addition. |
void |
addSubTask(Task W_Task)
Sub-task addition. |
void |
compute(User.Map W_Users,
Date W_ReferenceDate,
Date W_StartDate,
Date W_EndDate,
java.lang.String J_TraceOffset)
Recursive computation method. |
Task |
findTask(java.lang.String J_TaskId)
Task or sub-task research. |
Computation |
getComputation(Date W_UpTo,
boolean B_Cumulative)
Get the (cumulative) computation of the task up to a given date. |
Date |
getComputedEndDate()
Computed end date accessor. |
Date |
getComputedStartDate()
Computed start date accessor. |
java.lang.String |
getId()
Identifier accessor. |
Computation |
getLastComputation()
Last computation accessor. |
Date |
getLockEndDate()
Lock end date accessor. |
Task |
getParent()
Parent task accessor. |
Date |
getPlannedEndDate()
Planned end date accessor. |
Date |
getPlannedStartDate()
Planned start date accessor. |
double |
getReference()
Reference value accessor. |
double |
getReferenceOpportunities()
Reference opportunities value accessor. |
double |
getReferenceRisks()
Reference risks value accessor. |
Date |
getReferenceStartDate()
Reference start date accessor. |
int |
getSchedulingMode()
Scheduling mode accessor. |
java.util.Iterator<Task> |
getSubTaskIterator()
Sub-tasks iterator accessor. |
boolean |
isFinal()
Final characteristic accessor. |
boolean |
isLocked()
Lock attribute accessor. |
void |
lock(Date W_LockDate)
Lock operation. |
Computation |
mkXmlResult(org.w3c.dom.Element W_ParentNode,
boolean B_SumImputationsOnly)
Create the XML computation result. |
void |
setParent(Task W_Parent)
Task/sub-task relation management. |
java.lang.String |
toString()
String representation of the task. |
Methods inherited from class watch.Commentable |
---|
getComments |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SCHEDULING_NONE
public static final int SCHEDULING_AT_END
public static final int SCHEDULING_LINEAR
Constructor Detail |
---|
public Task(java.lang.String J_TaskId, Date W_ReferenceStartDate, double D_Reference, double D_ReferenceRisks, double D_ReferenceOpportunities, Date W_PlannedStartDate, Date W_PlannedEndDate, int E_SchedulingMode)
J_TaskId
- Identifier of the task.D_Reference
- Reference value of the task. If negative, the task should not be checked against this value.D_ReferenceRisks
- Reference risks value of the task.D_ReferenceOpportunities
- Reference opportunities value of the task.W_ReferenceStartDate
- Reference starting date of the task.
Can be null.
If set, the reference value takes effect from this start date only.
If set, imputations and revisions cannot be applied before that date neither.W_PlannedStartDate
- Planned starting date of the task.
Can be null.
Useful with W_PlannedEndDate for BCWS computation.W_PlannedEndDate
- Planned ending date of the task.
Can be null.
Useful with W_PlannedStartDate for BCWS computation.E_SchedulingMode
- Scheduling mode. Either SCHEDULING_NONE, SCHEDULING_AT_END or SCHEDULING_LINEAR.Method Detail |
---|
public java.lang.String getId()
public java.lang.String toString()
toString
in class java.lang.Object
public double getReference()
public double getReferenceRisks()
public double getReferenceOpportunities()
public void setParent(Task W_Parent)
W_Parent
- Parent task reference.public Task getParent()
public boolean isFinal()
public java.util.Iterator<Task> getSubTaskIterator()
public void addSubTask(Task W_Task)
W_Task
- Sub-task added.public Task findTask(java.lang.String J_TaskId)
J_TaskId
- Identifier of the task researched.public void addImputation(Imputation W_Imputation)
W_Imputation
- Imputation added.public void addRevision(Revision W_Revision)
W_Revision
- Revision added.public boolean isLocked()
public void lock(Date W_LockDate)
W_LockDate
- Lock date.public void compute(User.Map W_Users, Date W_ReferenceDate, Date W_StartDate, Date W_EndDate, java.lang.String J_TraceOffset)
W_Users
- List of users to focus the computation onto.W_ReferenceDate
- Reference date for the computation.W_StartDate
- Start date of the computation.W_EndDate
- End date of the computation.J_TraceOffset
- Useful for recursion debugging only.Watch.execute(java.lang.String, java.util.Collection, java.lang.String, java.lang.String, java.lang.String, boolean, boolean, watch.Transformation, java.lang.String)
public Computation getLastComputation()
compute(watch.User.Map, watch.Date, watch.Date, watch.Date, java.lang.String)
public Computation getComputation(Date W_UpTo, boolean B_Cumulative)
W_UpTo
- Computation up to a given date.B_Cumulative
- Cumulative computation or not over the sub-tasks.
public Date getReferenceStartDate()
public Date getPlannedStartDate()
public Date getPlannedEndDate()
public int getSchedulingMode()
public Date getComputedStartDate()
public Date getComputedEndDate()
public Date getLockEndDate()
public Computation mkXmlResult(org.w3c.dom.Element W_ParentNode, boolean B_SumImputationsOnly)
W_ParentNode
- Parent node to place the task computation result into. Either the root XML node, or the parent task XML result node.B_SumImputationsOnly
- When true, limits the XML result at the sum of imputations.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |