Skip to content

Commit

Permalink
Add //@@author
Browse files Browse the repository at this point in the history
  • Loading branch information
e0003801 committed Oct 26, 2016
1 parent a37fa41 commit 8063708
Show file tree
Hide file tree
Showing 39 changed files with 48 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.commons.events.model;

import seedu.savvytasker.commons.events.BaseEvent;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/seedu/savvytasker/logic/LogicManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public ObservableList<ReadOnlyTask> getFilteredTaskList() {
return model.getFilteredTaskList();
}

//@@author A0139916U
private void registerAllDefaultCommandParsers() {
parser.registerCommandParser(new AddCommandParser());
parser.registerCommandParser(new DeleteCommandParser());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.commands;

import seedu.savvytasker.logic.Logic;
Expand Down Expand Up @@ -61,6 +62,7 @@ public void setLogic(Logic logic) {
this.logic = logic;
}

//@@author A0139916U
/**
* Checks if a command can perform undo operations
* @return true if the command supports undo, false otherwise
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/seedu/savvytasker/logic/commands/Command.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ protected void indicateAttemptToExecuteIncorrectCommand() {
EventsCenter.getInstance().post(new IncorrectCommandAttemptedEvent(this));
}

//@@author A0139916U
/**
* Checks if a command can perform undo operations
* @return true if the command supports undo, false otherwise
Expand All @@ -65,7 +66,8 @@ protected void indicateAttemptToExecuteIncorrectCommand() {
* @return true if the operation completed successfully, false otherwise
*/
public abstract boolean undo();


//@@author
/**
* Check if command is an undo command
* @return true if the command is an undo operation, false otherwise
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.commands;

import seedu.savvytasker.commons.exceptions.IllegalValueException;
Expand Down Expand Up @@ -55,7 +56,7 @@ public CommandResult execute() {
return new CommandResult(MESSAGE_UNREGOGNIZED_ALIAS);
}
}
//@@author
/**
* Checks if a command can perform undo operations
* @return true if the command supports undo, false otherwise
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.regex.Matcher;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.regex.Matcher;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import seedu.savvytasker.commons.core.Messages;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import seedu.savvytasker.logic.commands.Command;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.Date;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.regex.Matcher;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import seedu.savvytasker.commons.core.Messages;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import seedu.savvytasker.commons.core.Messages;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.regex.Matcher;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.regex.Matcher;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import static seedu.savvytasker.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.regex.Matcher;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import seedu.savvytasker.commons.core.Messages;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import seedu.savvytasker.logic.parser.DateParser.InferredDate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.regex.Matcher;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import seedu.savvytasker.commons.core.Messages;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import java.util.regex.Matcher;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/savvytasker/model/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public interface Model {

/** Updates the filter of the filtered task list to filter by the given keywords*/
void updateFilteredTaskList(FindType findType, String[] keywords);
//@@author A0139915W
//@@author A0139916U

/** Adds the given AliasSymbol */
void addAliasSymbol(AliasSymbol symbol) throws DuplicateSymbolKeywordException;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/savvytasker/model/ModelManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public ReadOnlySavvyTasker getSavvyTasker() {
private void indicateSavvyTaskerChanged() {
raise(new SavvyTaskerChangedEvent(savvyTasker));
}
//@@author A0139915W
//@@author A0139916U

private void indicateAliasSymbolAdded(AliasSymbol symbol) {
raise(new AliasSymbolChangedEvent(symbol, AliasSymbolChangedEvent.Action.Added));
Expand Down Expand Up @@ -111,7 +111,7 @@ public synchronized void addTask(Task t) throws DuplicateTaskException, InvalidD
updateFilteredListToShowActive();
indicateSavvyTaskerChanged();
}
//@@author A0139915W
//@@author A0139916U

@Override
public synchronized void addAliasSymbol(AliasSymbol symbol) throws DuplicateSymbolKeywordException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public interface ReadOnlySavvyTasker {
* Returns a defensively copied task list.
*/
TaskList getTaskList();
//@@author A0139915W
//@@author A0139916U

/**
* Returns a defensively copied alias symbol list.
Expand All @@ -28,7 +28,7 @@ public interface ReadOnlySavvyTasker {
* Returns an unmodifiable view of task list
*/
List<ReadOnlyTask> getReadOnlyListOfTasks();
//@@author A0139915W
//@@author A0139916U

/**
* Returns unmodifiable view of symbols list
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/seedu/savvytasker/model/SavvyTasker.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public class SavvyTasker implements ReadOnlySavvyTasker {

//@@author A0139915W
private final TaskList tasks;
//@@author A0139915W
private final AliasSymbolList symbols;

public SavvyTasker() {
Expand Down Expand Up @@ -105,7 +104,7 @@ public boolean removeTask(ReadOnlyTask key) throws TaskNotFoundException {
public boolean replaceTask(ReadOnlyTask key, Task replacement) throws TaskNotFoundException, InvalidDateException {
return tasks.replace(key, replacement);
}
//@@author A0139915W
//@@author A0139916U

/**
* Adds an alias symbol to savvy tasker.
Expand All @@ -124,7 +123,7 @@ public void addAliasSymbol(AliasSymbol symbol) throws DuplicateSymbolKeywordExce
public void removeAliasSymbol(AliasSymbol symbol) throws SymbolKeywordNotFoundException {
symbols.removeAliasSymbol(symbol);
}

//@@author A0139915W

//// util methods

Expand All @@ -146,6 +145,7 @@ public TaskList getTaskList() {
return defensiveCopy;
}

//@@author A0139916U
@Override
public List<AliasSymbol> getReadOnlyListOfAliasSymbols() {
return symbols.asReadonly();
Expand All @@ -156,6 +156,7 @@ public AliasSymbolList getAliasSymbolList() {
return new AliasSymbolList(symbols);
}

//@@author A0139915W
@Override
public boolean equals(Object other) {
return other == this // short circuit if same object
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.model.alias;

import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.model.alias;

import java.util.Iterator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.model.alias;

import seedu.savvytasker.commons.exceptions.IllegalValueException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.model.alias;

import seedu.savvytasker.commons.exceptions.IllegalValueException;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/seedu/savvytasker/model/task/FindType.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.model.task;

/**
Expand Down
1 change: 1 addition & 0 deletions src/main/java/seedu/savvytasker/model/task/ListType.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.model.task;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.model.task;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.model.task;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.storage;

import javax.xml.bind.annotation.XmlElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author A0139916U
package seedu.savvytasker.logic.parser;

import static org.junit.Assert.assertFalse;
Expand Down

0 comments on commit 8063708

Please sign in to comment.