forked from nus-cs2103-AY2122S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 6
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 #132 from AY2122S1-CS2103T-W15-3/update-documentation
Update documentation: EList, architecture, storage
- Loading branch information
Showing
9 changed files
with
235 additions
and
13 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,26 @@ | ||
@startuml | ||
'https://plantuml.com/activity-diagram-beta | ||
|
||
start | ||
:User enters elist command in the command box; | ||
:EListCommandParser parses the command; | ||
if () then (arguements are valid) | ||
|
||
if () then (prefix present) | ||
:set corresponding fields | ||
to be displayed; | ||
|
||
else (no prefix present) | ||
:set all fields to display; | ||
endif | ||
|
||
else (false) | ||
:throw ParseException with invalid command | ||
format message and command usage; | ||
endif | ||
|
||
:returns feedback to user; | ||
|
||
stop | ||
|
||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":EListCommand" as eListCommand LOGIC_COLOR | ||
participant ":EListCommandParser" as eListCommandParser LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":Event" as Event MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute(elist at/ end/) | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand(elist at/ end/) | ||
activate AddressBookParser | ||
|
||
create eListCommandParser | ||
AddressBookParser -> eListCommandParser | ||
activate eListCommandParser | ||
|
||
eListCommandParser -> eListCommandParser : parse(at/ end/) | ||
|
||
eListCommandParser -> Event : setAllDisplayToFalse() \n setWillDisplayStartDateTime(true) \n setWillDisplayEndDateTime(true) | ||
|
||
create eListCommand | ||
eListCommandParser -> eListCommand | ||
activate eListCommand | ||
|
||
eListCommandParser --> AddressBookParser | ||
deactivate eListCommandParser | ||
|
||
AddressBookParser --> LogicManager : eListCommand | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> eListCommand : execute() | ||
|
||
eListCommand -> Model : updateFilteredEventList(PREDICATE_HIDE_ALL_EVENTS) \n updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS); | ||
activate Model | ||
|
||
Model --> eListCommand | ||
deactivate Model | ||
|
||
eListCommand --> LogicManager : result | ||
deactivate eListCommand | ||
eListCommand -[hidden]-> LogicManager : result | ||
destroy eListCommand | ||
|
||
[<--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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.