forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #176 from Fallman2/branch-DGEdits2
DG Edits
- Loading branch information
Showing
4 changed files
with
103 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":UniMateParser" as UniMateParser LOGIC_COLOR | ||
participant ":ClearEventsCommandParser" as ClearEventsCommandParser LOGIC_COLOR | ||
participant "d:ClearEventsCommand" as ClearEventsCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":Calendar" as Calendar MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("clearEvents ts/2023-02-03 12:00 \nte/2023-02-03 14:00") | ||
activate LogicManager | ||
|
||
LogicManager -> UniMateParser : parseCommand("clearEvents ts/2023-02-03 12:00 \nte/2023-02-03 14:00") | ||
activate UniMateParser | ||
|
||
create ClearEventsCommandParser | ||
UniMateParser -> ClearEventsCommandParser | ||
activate ClearEventsCommandParser | ||
|
||
ClearEventsCommandParser --> UniMateParser | ||
deactivate ClearEventsCommandParser | ||
|
||
UniMateParser -> ClearEventsCommandParser : parse("ts/2023-02-03 12:00 \nte/2023-02-03 14:00") | ||
activate ClearEventsCommandParser | ||
|
||
create ClearEventsCommand | ||
ClearEventsCommandParser -> ClearEventsCommand : new ClearEventsCommand(EventPeriod) | ||
activate ClearEventsCommand | ||
|
||
ClearEventsCommand --> ClearEventsCommandParser : d | ||
deactivate ClearEventsCommand | ||
|
||
ClearEventsCommandParser --> UniMateParser : d | ||
deactivate ClearEventsCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
ClearEventsCommandParser -[hidden]-> UniMateParser | ||
destroy ClearEventsCommandParser | ||
|
||
UniMateParser --> LogicManager : d | ||
deactivate UniMateParser | ||
|
||
LogicManager -> ClearEventsCommand : execute() | ||
activate ClearEventsCommand | ||
|
||
ClearEventsCommand -> Model : findEventsInRange(EventPeriod) | ||
activate Model | ||
|
||
Model -> Calendar : getEventsInRange((EventPeriod) | ||
activate Calendar | ||
|
||
Calendar --> Model | ||
deactivate Calendar | ||
|
||
Model --> ClearEventsCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
ClearEventsCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> ClearEventsCommand | ||
deactivate CommandResult | ||
|
||
ClearEventsCommand --> LogicManager : result | ||
deactivate ClearEventsCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@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
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