forked from nus-cs2103-AY2324S2/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.
- Loading branch information
1 parent
c65455e
commit c5852a1
Showing
5 changed files
with
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,8 @@ shadowJar { | |
archiveFileName = 'tp_new.jar' | ||
} | ||
|
||
run { | ||
enableAssertions = true | ||
} | ||
|
||
defaultTasks 'clean', 'test' |
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,70 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":AddProjectCommandParser" as AddProjectCommandParser LOGIC_COLOR | ||
participant "d:AddProjectCommand" as AddProjectCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("add project Duke") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("add project Duke") | ||
activate AddressBookParser | ||
|
||
create AddProjectCommandParser | ||
AddressBookParser -> AddProjectCommandParser | ||
activate AddProjectCommandParser | ||
|
||
AddProjectCommandParser --> AddressBookParser | ||
deactivate AddProjectCommandParser | ||
|
||
AddressBookParser -> AddProjectCommandParser : parse("Duke") | ||
activate AddProjectCommandParser | ||
|
||
create AddProjectCommand | ||
AddProjectCommandParser -> AddProjectCommand | ||
activate AddProjectCommand | ||
|
||
AddProjectCommand --> AddProjectCommandParser : | ||
deactivate AddProjectCommand | ||
|
||
AddProjectCommandParser --> AddressBookParser : d | ||
deactivate AddProjectCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
AddProjectCommandParser -[hidden]-> AddressBookParser | ||
destroy AddProjectCommandParser | ||
|
||
AddressBookParser --> LogicManager : d | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> AddProjectCommand : execute(m) | ||
activate AddProjectCommand | ||
|
||
AddProjectCommand -> Model : addProject(Duke) | ||
activate Model | ||
|
||
Model --> AddProjectCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
AddProjectCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> AddProjectCommand | ||
deactivate CommandResult | ||
|
||
AddProjectCommand --> LogicManager : r | ||
deactivate AddProjectCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.