diff --git a/src/seedu/addressbook/data/AddressBook.java b/src/seedu/addressbook/data/AddressBook.java index 6a37d752d..f6088775e 100644 --- a/src/seedu/addressbook/data/AddressBook.java +++ b/src/seedu/addressbook/data/AddressBook.java @@ -5,6 +5,7 @@ import seedu.addressbook.data.tag.UniqueTagList; import seedu.addressbook.data.tag.UniqueTagList.*; import seedu.addressbook.data.tag.Tag; +import seedu.addressbook.data.tag.Tagging; import java.util.HashMap; import java.util.HashSet; @@ -22,7 +23,7 @@ public class AddressBook { private final UniquePersonList allPersons; private final UniqueTagList allTags; // can contain tags not attached to any person - + private Tagging[] taggings; /** * Creates an empty address book. */ diff --git a/src/seedu/addressbook/data/tag/Tagging.java b/src/seedu/addressbook/data/tag/Tagging.java new file mode 100644 index 000000000..fbd07fa31 --- /dev/null +++ b/src/seedu/addressbook/data/tag/Tagging.java @@ -0,0 +1,21 @@ +package seedu.addressbook.data.tag; + +import seedu.addressbook.data.person.Person; + +public class Tagging { + Person person; + Tag tag; + + public Tagging(Person person,Tag tag){ + this.person = person; + this.tag = tag; + } + + Person getPerson(){ + return this.person; + } + + Tag getTag(){ + return this.tag; + } +}