Skip to content

Commit

Permalink
Merge pull request #120 from Kyomian/new
Browse files Browse the repository at this point in the history
Added collated folder and removed AppInterface.png
  • Loading branch information
Kyomian authored Apr 4, 2018
2 parents c980110 + e235910 commit f28ef79
Show file tree
Hide file tree
Showing 11 changed files with 4,681 additions and 1 deletion.
679 changes: 679 additions & 0 deletions collated/functional/Kyomian.md

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions collated/functional/YuanQLLer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# YuanQLLer
###### \java\seedu\address\model\util\SampleDataUtil.java
``` java
/**
* Contains utility methods for populating {@code DeskBoard} with sample data.
*/
public class SampleDataUtil {
public static Activity[] getSampleActivity() {
return new Activity[] {
new Task(new Name("Task 1"), new DateTime("01/01/2018 23:59"),
new Remark("Submit through ivle"), getTagSet("Completed")),
new Task (new Name("Task 2"), new DateTime("02/02/2018 23:59"),
new Remark("Submit through ivle"), getTagSet("Completed")),
new Task (new Name("Task 3"), new DateTime("03/03/2018 23:59"),
new Remark("Submit through ivle"), getTagSet("Completed")),
new Task (new Name("Task 4"), new DateTime("04/04/2018 23:59"),
new Remark("Submit through ivle"), getTagSet("Uncompleted")),
new Task (new Name("Task 5"), new DateTime("05/05/2018 23:59"),
new Remark("Submit through ivle"), getTagSet("Unompleted")),
new Task (new Name("Task 6"), new DateTime("06/06/2018 23:59"),
new Remark("Submit through ivle"), getTagSet("Completed")),
new Event(new Name("Event 1"), new DateTime("01/01/2018 07:00"),
new DateTime("01/01/2018 08:00"), new Location("TBC"), new Remark("Remark"),
getTagSet("Finished")),
new Event (new Name("Event 2"), new DateTime("02/02/2018 07:00"),
new DateTime("02/02/2018 08:00"), new Location("TBC"), new Remark("Remark"),
getTagSet("Finished")),
new Event (new Name("Event 3"), new DateTime("03/03/2018 07:00"),
new DateTime("03/03/2018 08:00"), new Location("TBC"), new Remark("Remark"),
getTagSet("Cancelled")),
new Event (new Name("Event 4"), new DateTime("04/04/2018 07:00"),
new DateTime("04/04/2018 08:00"), new Location("TBC"), new Remark("Remark"),
getTagSet("Important")),
new Event (new Name("Event 5"), new DateTime("05/05/2018 07:00"),
new DateTime("05/05/2018 08:00"), new Location("TBC"), new Remark("Remark"),
getTagSet("Important")),
new Event (new Name("Event 6"), new DateTime("06/06/2018 07:00"),
new DateTime("06/06/2018 08:00"), new Location("TBC"), new Remark("Remark"),
getTagSet("Compulsory"))
};
}

public static ReadOnlyDeskBoard getSampleDeskBoard() {
try {
DeskBoard sampleAb = new DeskBoard();
for (Activity sampleActivity : getSampleActivity()) {
sampleAb.addActivity(sampleActivity);
}
return sampleAb;
} catch (DuplicateActivityException e) {
throw new AssertionError("sample data cannot contain duplicate activities", e);
}
}

/**
* Returns a tag set containing the list of strings given.
*/
public static Set<Tag> getTagSet(String ... strings) {
HashSet<Tag> tags = new HashSet<>();
for (String s : strings) {
tags.add(new Tag(s));
}

return tags;
}

}
```
Loading

0 comments on commit f28ef79

Please sign in to comment.