forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from nicleongyj/update_dg
Add remind command implementation in developer guide
- Loading branch information
Showing
6 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as Logic LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser ADDRESS_BOOK_PARSER_COLOR | ||
participant ":RemindCommandParser" as RemindCommandParser REMIND_COMMAND_PARSER_COLOR | ||
participant "bp:BirthdayWithinDaysPredicate" as BirthdayWithinDays BIRTHDAY_WITHIN_DAYS_COLOR | ||
participant "ep:EventWithinDaysPredicate" as EventWithinDays EVENT_WITHIN_DAYS_COLOR | ||
participant "r:RemindCommand" as RemindCommand REMIND_COMMAND_COLOR | ||
participant ":CommandResult" as CommandResult COMMAND_RESULT_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> Logic : execute("delete 1") | ||
activate Logic | ||
|
||
Logic -[LOGIC_COLOR]> AddressBookParser : parseCommand("remind 1") | ||
activate AddressBookParser | ||
|
||
create RemindCommandParser | ||
AddressBookParser -[ADDRESS_BOOK_PARSER_COLOR]> RemindCommandParser | ||
activate RemindCommandParser | ||
|
||
RemindCommandParser --> AddressBookParser | ||
deactivate RemindCommandParser | ||
|
||
AddressBookParser -[ADDRESS_BOOK_PARSER_COLOR]> RemindCommandParser : parse("1') | ||
activate RemindCommandParser | ||
|
||
create BirthdayWithinDays | ||
RemindCommandParser -[REMIND_COMMAND_PARSER_COLOR]> BirthdayWithinDays | ||
activate BirthdayWithinDays | ||
|
||
BirthdayWithinDays --> RemindCommandParser | ||
deactivate BirthdayWithinDays | ||
|
||
create EventWithinDays | ||
RemindCommandParser -[REMIND_COMMAND_PARSER_COLOR]> EventWithinDays | ||
activate EventWithinDays | ||
|
||
EventWithinDays --> RemindCommandParser | ||
deactivate EventWithinDays | ||
|
||
create RemindCommand | ||
RemindCommandParser -[REMIND_COMMAND_PARSER_COLOR]> RemindCommand : new RemindCommand(bp, ep, 1) | ||
activate RemindCommand | ||
|
||
RemindCommand --> RemindCommandParser : r | ||
deactivate RemindCommand | ||
|
||
RemindCommandParser --> AddressBookParser : r | ||
deactivate RemindCommandParser | ||
RemindCommandParser -[hidden]-> AddressBookParser | ||
destroy RemindCommandParser | ||
|
||
AddressBookParser --> Logic : r | ||
deactivate AddressBookParser | ||
|
||
Logic -> RemindCommand : execute() | ||
activate RemindCommand | ||
|
||
RemindCommand -[REMIND_COMMAND_COLOR]> Model : updateFilteredPersonList(bp) | ||
activate Model | ||
|
||
Model --> RemindCommand | ||
deactivate Model | ||
|
||
RemindCommand -[REMIND_COMMAND_COLOR]> Model : updateFilteredEventList(ep) | ||
activate Model | ||
|
||
Model --> RemindCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
RemindCommand -[REMIND_COMMAND_COLOR]> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> RemindCommand | ||
deactivate CommandResult | ||
|
||
RemindCommand --> Logic : result | ||
deactivate RemindCommand | ||
|
||
[<--Logic | ||
deactivate Logic | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters