Class TaskAssignment

java.lang.Object
no.ntnu.principes.domain.task.TaskAssignment

public class TaskAssignment extends Object
Represents a task assignment with an identifier, task ID, member ID, timestamps for assignment, due date, completion date, and status.
  • Constructor Details

    • TaskAssignment

      public TaskAssignment()
  • Method Details

    • isCompleted

      public boolean isCompleted()
      Checks if the task assignment is marked as completed.
      Returns:
      true if the task status is TaskStatus.DONE, otherwise false.
    • isPending

      public boolean isPending()
      Checks if the current task assignment is in a "pending" state.
      Returns:
      true if the task assignment's status is TODO; false otherwise.
    • isCancelled

      public boolean isCancelled()
      Checks if the task assignment has been cancelled.
      Returns:
      true if the task status is TaskStatus.CANCELLED; false otherwise.