Open GlendaChong opened 11 months ago
MenuContainsKeywordPredicate is under our model package in our code structure, thus it should be under Model instead of Logic.
Team chose [response.Rejected
]
Reason for disagreement: According to the forum issue #398, Prof Damith mentioned that
As the object added is created inside the Logic component (i.e., by the Parser), it should appear inside the Logic component (i.e., similar to the second diagram)
Even though MenuContainsKeyWordPredicate
is under your model package, it is created inside the FindItemCommandParser
class at line 40, which is inside the Logic component. Therefore, I believe that the sequence diagram is incorrect for the predicate, as MenuContainsKeyWordPredicate
object should appear inside the Logic component.
The relevant code for creation of the predicate in the parser class is shown below:
predicate should be initialised in Logic component instead of Model component. This confuses the reader on the implementation of the feature.