public class Task extends Object implements Cloneable, org.jfree.util.PublicCloneable, Serializable
Constructor and Description |
---|
Task(String description,
Date start,
Date end)
Creates a new task.
|
Task(String description,
TimePeriod duration)
Creates a new task.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubtask(Task subtask)
Adds a sub-task to the task.
|
Object |
clone()
Returns a clone of the task.
|
boolean |
equals(Object object)
Tests this object for equality with an arbitrary object.
|
String |
getDescription()
Returns the task description.
|
TimePeriod |
getDuration()
Returns the duration (actual or estimated) of the task.
|
Double |
getPercentComplete()
Returns the percentage complete for this task.
|
Task |
getSubtask(int index)
Returns a sub-task.
|
int |
getSubtaskCount()
Returns the sub-task count.
|
void |
removeSubtask(Task subtask)
Removes a sub-task from the task.
|
void |
setDescription(String description)
Sets the task description.
|
void |
setDuration(TimePeriod duration)
Sets the task duration (actual or estimated).
|
void |
setPercentComplete(double percent)
Sets the percentage complete for the task.
|
void |
setPercentComplete(Double percent)
Sets the percentage complete for the task.
|
public Task(String description, TimePeriod duration)
description
- the task description (null
not
permitted).duration
- the task duration (null
permitted).public String getDescription()
null
).public void setDescription(String description)
description
- the description (null
not permitted).public TimePeriod getDuration()
null
).public void setDuration(TimePeriod duration)
duration
- the duration (null
permitted).public Double getPercentComplete()
null
).public void setPercentComplete(Double percent)
percent
- the percentage (null
permitted).public void setPercentComplete(double percent)
percent
- the percentage.public void addSubtask(Task subtask)
subtask
- the subtask (null
not permitted).public void removeSubtask(Task subtask)
subtask
- the subtask.public int getSubtaskCount()
public Task getSubtask(int index)
index
- the index.public boolean equals(Object object)
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class Object
CloneNotSupportedException
- never thrown by this class, but
subclasses may not support cloning.Jas4pp 1.5 © Java Analysis Studio for Particle Physics