package seedu.address.logic.commands;

import seedu.address.commons.core.EventsCenter;
import seedu.address.commons.core.Messages;
import seedu.address.commons.events.ui.IncorrectCommandAttemptedEvent;
import seedu.address.model.Model;

/**
 * Represents a command with hidden internal logic and the ability to be executed.
 */
public abstract class Command {
    protected Model model;

    /**
     * Constructs a feedback message to summarise an operation that displayed a listing of tasks.
     *
     * @param displaySize used to generate summary
     * @return summary message for tasks displayed
     */
    public static String getMessageForTaskListShownSummary(int displaySize) {
        return String.format(Messages.MESSAGE_TASKS_LISTED_OVERVIEW, displaySize);
    }

    /**
     * Executes the command and returns the result message.
     *
     * @return feedback message of the operation result for display
     */
    public abstract CommandResult execute();

    /**
     * Provides any needed dependencies to the command.
     * Commands making use of any of these should override this method to gain
     * access to the dependencies.
     */
    public void setData(Model model) {
        this.model = model;
    }

    /**
     * Raises an event to indicate an attempt to execute an incorrect command
     */
    protected void indicateAttemptToExecuteIncorrectCommand() {
        EventsCenter.getInstance().post(new IncorrectCommandAttemptedEvent(this));
    }
}

@@ -84,52 +84,8 @@
 er;%0A
-import seedu.address.commons.core.Messages;%0A
 impo
@@ -341,399 +341,8 @@
 l;%0A%0A
-    /**%0A     * Constructs a feedback message to summarise an operation that displayed a listing of tasks.%0A     *%0A     * @param displaySize used to generate summary%0A     * @return summary message for tasks displayed%0A     */%0A    public static String getMessageForTaskListShownSummary(int displaySize) %7B%0A        return String.format(Messages.MESSAGE_TASKS_LISTED_OVERVIEW, displaySize);%0A    %7D%0A%0A
     

remove unused methods