forked from nus-cs2103-AY2324S2/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 #159 from AY2324S2-CS2103T-W12-3/update-dg-assets
Update DG for v1.4 release
- Loading branch information
Showing
22 changed files
with
565 additions
and
295 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,62 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
skinparam SequenceReferenceBackgroundColor white | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant "command:AddCommand" as AddCommand LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "person:Person" as Person MODEL_COLOR | ||
participant "assets:Assets" as Assets MODEL_COLOR | ||
participant "model:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("add ... A\\pen") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("add ... A\\pen") | ||
activate AddressBookParser | ||
|
||
' Abstracted factory method call | ||
AddressBookParser -> AddressBookParser : createCommandUsingFactory("add ... A\\pen") | ||
note right : createCommandUsingFactory() is the same \n fictitious command as explained in Logic | ||
activate AddressBookParser | ||
|
||
|
||
create AddCommand | ||
AddressBookParser -> AddCommand | ||
activate AddCommand | ||
|
||
ref over AddCommand, Person, Assets: create person with assets | ||
|
||
AddCommand --> AddressBookParser : command | ||
deactivate AddCommand | ||
|
||
AddressBookParser --> AddressBookParser : command | ||
deactivate AddressBookParser | ||
|
||
AddressBookParser --> LogicManager : command | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> AddCommand : execute(model) | ||
activate AddCommand | ||
|
||
AddCommand -> Model : addPerson(person) | ||
activate Model | ||
|
||
Model --> AddCommand | ||
deactivate Model | ||
|
||
AddCommand --> LogicManager : result | ||
deactivate AddCommand | ||
|
||
AddCommand -[hidden]-> LogicManager | ||
destroy AddCommand | ||
|
||
[<--LogicManager : result | ||
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
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,51 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant "<<class>>\nCommandType" as CommandTypeClass LOGIC_COLOR | ||
participant "type:CommandType" as CommandType LOGIC_COLOR | ||
participant "<<class>>\nDeleteCommand" as DeleteCommandClass LOGIC_COLOR | ||
participant "command:DeleteCommand" as DeleteCommand LOGIC_COLOR | ||
end box | ||
|
||
[-> AddressBookParser : parseCommand("delete 1") | ||
activate AddressBookParser | ||
|
||
AddressBookParser -> CommandTypeClass : valueOf("DELETE") | ||
activate CommandTypeClass | ||
|
||
create CommandType | ||
CommandTypeClass -> CommandType | ||
activate CommandType | ||
|
||
CommandType -> CommandTypeClass : type | ||
deactivate CommandType | ||
|
||
CommandTypeClass -> AddressBookParser : type | ||
deactivate CommandTypeClass | ||
|
||
AddressBookParser -> CommandType : createCommand(" 1") | ||
activate CommandType | ||
|
||
CommandType -> DeleteCommandClass : of(" 1") | ||
activate DeleteCommandClass | ||
|
||
create DeleteCommand | ||
DeleteCommandClass -> DeleteCommand | ||
activate DeleteCommand | ||
|
||
DeleteCommand --> DeleteCommandClass : command | ||
deactivate DeleteCommand | ||
|
||
DeleteCommandClass --> CommandType : command | ||
deactivate DeleteCommandClass | ||
|
||
CommandType --> AddressBookParser : command | ||
deactivate CommandType | ||
|
||
[<-- AddressBookParser : command | ||
deactivate AddressBookParser | ||
|
||
@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,22 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":CommandHistory" as CommandHistory LOGIC_COLOR | ||
end box | ||
|
||
-> LogicManager : execute(commandText) | ||
activate LogicManager | ||
|
||
LogicManager -> CommandHistory : add(commandText) | ||
activate CommandHistory | ||
|
||
CommandHistory --> LogicManager | ||
deactivate CommandHistory | ||
|
||
<-- LogicManager : commandResult | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box UI UI_COLOR_T1 | ||
participant ":CommandBox" as CommandBox UI_COLOR | ||
participant ":RecordedCommandExecutor" as RecordedCommandExecutor UI_COLOR | ||
end box | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":CommandHistory" as CommandHistory LOGIC_COLOR | ||
end box | ||
|
||
-> CommandBox : handleKeyPressed(event) | ||
activate CommandBox | ||
|
||
CommandBox -> RecordedCommandExecutor : getPreviousCommandText() | ||
activate RecordedCommandExecutor | ||
|
||
RecordedCommandExecutor -> LogicManager : getPreviousCommandText() | ||
activate LogicManager | ||
|
||
LogicManager -> CommandHistory : getPrevious() | ||
activate CommandHistory | ||
|
||
CommandHistory --> LogicManager : commandText | ||
deactivate CommandHistory | ||
|
||
LogicManager --> RecordedCommandExecutor : commandText | ||
deactivate LogicManager | ||
|
||
RecordedCommandExecutor --> CommandBox : commandText | ||
deactivate RecordedCommandExecutor | ||
|
||
CommandBox -> CommandBox : setText(commandText) | ||
note right : CommandBox#setText() is a\nfictitious command to improve brevity | ||
<-- CommandBox | ||
deactivate CommandBox | ||
|
||
@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
Oops, something went wrong.