Description
ICT340 Application Analysis and Design Tutor-Marked Assignment
Contains the solution to answer the following
- Appraising the association
Class being modified | searchPosts |
Association being implemented | searches |
Direction of navigation | Form searchPosts to Posts |
Multiplicity | One-to-many |
Instance variable added | Posts |
Value of the instance variable | Either null or a hashmap/dictionary of topics using the postID as the key |
Justification | An instance variable is added to the class searchPosts because we need a result of the search. We used a dictionary/hashmap because search results may return null or several posts. The application will need to locate the posts using post ID. Therefore, topic ID is used as the key. |
- Dynamic model of the system using a walkthrough
Objective: To find all posts for a target word
Given: A search string