package seedu.tasklist.model.task;

import seedu.tasklist.commons.util.CollectionUtil;
import seedu.tasklist.model.tag.UniqueTagList;

/**
 * Represents a Floating Task in the task list.
 * Guarantees: details are present and not null, field values are validated.
 */
public class FloatingTask implements ReadOnlyFloatingTask {

    private Name name;
    private Comment comment;
    private Priority priority;
    private Status status; 
    
    private UniqueTagList tags;
    
    /**
     * Every field must be present and not null.
     */
    public FloatingTask(Name name, Comment comment, Priority priority, Status status, UniqueTagList tags) {
        assert !CollectionUtil.isAnyNull(name, comment, priority,status, tags);
        this.name = name;
        this.comment = comment;
        this.priority = priority;
        this.status = status;
        this.tags = new UniqueTagList(tags); // protect internal tags from changes in the arg list
    }

    /**
     * Creates a copy of the given ReadOnlyTask.
     */
    public FloatingTask(ReadOnlyFloatingTask source) {
        this(source.getName(), source.getComment(), source.getPriority(), source.getStatus(), source.getTags());
    }
    
    @Override
    public Name getName() {
        return name;
    }

    @Override
    public Comment getComment() {
        return comment;
    }

    @Override
    public UniqueTagList getTags() {
        return tags;
    }
    
    public Priority getPriority() {
        return priority;
    }
   
    public Status getStatus() {
        return status;
    }


}

@@ -1208,367 +1208,1456 @@
     
-@Override%0A    public Name getName() %7B%0A        return name;%0A    %7D%0A%0A    @Override%0A    public Comment getComment() %7B%0A        return comment;%0A    %7D%0A%0A    @Override%0A    public UniqueTagList getTags() %7B%0A        return tags;%0A    %7D%0A    %0A    public Priority getPriority() %7B%0A        return priority;%0A    %7D%0A   %0A    public Status getStatus() %7B%0A        return status;%0A    %7D
+public void setName(Name name) %7B%0A        assert name != null;%0A        this.name = name;%0A    %7D%0A    %0A    @Override%0A    public Name getName() %7B%0A        return name;%0A    %7D%0A    %0A    public void setComment(Comment comment) %7B%0A        assert comment != null;%0A        this.comment = comment;%0A    %7D%0A%0A    @Override%0A    public Comment getComment() %7B%0A        return comment;%0A    %7D%0A%0A    @Override%0A    public UniqueTagList getTags() %7B%0A        return tags;%0A    %7D%0A    %0A    public void setPriority(Priority priority)%7B%0A        assert priority != null;%0A        this.priority = priority;%0A    %7D%0A    %0A    public Priority getPriority() %7B%0A        return priority;%0A    %7D%0A   %0A    public void setStatus(Status status)%7B%0A        assert status != null;%0A        this.status = status;%0A    %7D%0A%0A    %0A    public Status getStatus() %7B%0A        return status;%0A    %7D%0A    %0A    /**%0A     * Replaces this person's tags with the tags in the argument tag list.%0A     */%0A    public void setTags(UniqueTagList replacement) %7B%0A        tags.setTags(replacement);%0A    %7D%0A%0A    /**%0A     * Updates this person with the details of %7B@code replacement%7D.%0A     */%0A    public void resetData(ReadOnlyFloatingTask replacement) %7B%0A        assert replacement != null;%0A%0A        this.setName(replacement.getName());%0A        this.setComment(replacement.getComment());%0A        this.setPriority(replacement.getPriority());%0A        this.setStatus(replacement.getStatus());%0A        this.setTags(replacement.getTags());%0A    %7D%0A
 %0A%0A%0A%7D

Update FloatingTask.java methods