java.lang.Object
no.ntnu.principes.domain.task.TaskAssignment
Represents a task assignment with an identifier, task ID, member ID, timestamps for assignment,
due date, completion date, and status.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the task assignment has been cancelled.booleanChecks if the task assignment is marked as completed.booleanChecks if the current task assignment is in a "pending" state.
-
Constructor Details
-
TaskAssignment
public TaskAssignment()
-
-
Method Details
-
isCompleted
public boolean isCompleted()Checks if the task assignment is marked as completed.- Returns:
trueif the task status isTaskStatus.DONE, otherwisefalse.
-
isPending
public boolean isPending()Checks if the current task assignment is in a "pending" state.- Returns:
trueif the task assignment's status isTODO;falseotherwise.
-
isCancelled
public boolean isCancelled()Checks if the task assignment has been cancelled.- Returns:
- true if the task status is
TaskStatus.CANCELLED; false otherwise.
-