forked from nus-cs2103-AY1920S1/addressbook-level3
-
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
Showing
12 changed files
with
292 additions
and
50 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
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,20 @@ | ||
@startuml | ||
start | ||
:User executes `viewC 10` command; | ||
|
||
:Checks if there is Customer ID 10 | ||
in the Customer list; | ||
|
||
if () then ([has customer ID in the list]) | ||
:Filters the completed to tasks | ||
delivered to the customer; | ||
stop | ||
|
||
else ([else]) | ||
:Notify user that | ||
the taskID | ||
is invalid; | ||
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,69 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":CommandParser" as CommandParser LOGIC_COLOR | ||
participant ":ViewCustomerTaskCommandParser" as ViewCustomerTaskCommandParser LOGIC_COLOR | ||
participant "v:ViewCustomerTaskCommand" as ViewCustomerTaskCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("viewC 1") | ||
activate LogicManager | ||
|
||
LogicManager -> CommandParser : parseCommand("viewC 1") | ||
activate CommandParser | ||
|
||
create ViewCustomerTaskCommandParser | ||
CommandParser -> ViewCustomerTaskCommandParser | ||
activate ViewCustomerTaskCommandParser | ||
|
||
ViewCustomerTaskCommandParser --> CommandParser | ||
deactivate ViewCustomerTaskCommandParser | ||
|
||
CommandParser -> ViewCustomerTaskCommandParser : parse("1") | ||
activate ViewCustomerTaskCommandParser | ||
|
||
create ViewCustomerTaskCommand | ||
ViewCustomerTaskCommandParser -> ViewCustomerTaskCommand | ||
activate ViewCustomerTaskCommand | ||
|
||
ViewCustomerTaskCommand --> ViewCustomerTaskCommandParser : v | ||
deactivate ViewCustomerTaskCommand | ||
|
||
ViewCustomerTaskCommandParser --> CommandParser : v | ||
deactivate ViewCustomerTaskCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
ViewCustomerTaskCommandParser -[hidden]-> CommandParser | ||
destroy ViewCustomerTaskCommandParser | ||
|
||
CommandParser --> LogicManager : v | ||
deactivate CommandParser | ||
|
||
LogicManager -> ViewCustomerTaskCommand : execute() | ||
activate ViewCustomerTaskCommand | ||
|
||
ViewCustomerTaskCommand -> Model : viewCustomerTask(1) | ||
activate Model | ||
|
||
Model --> ViewCustomerTaskCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
ViewCustomerTaskCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> ViewCustomerTaskCommand | ||
deactivate CommandResult | ||
|
||
ViewCustomerTaskCommand --> LogicManager : result | ||
deactivate ViewCustomerTaskCommand | ||
|
||
[<--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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":CommandParser" as CommandParser LOGIC_COLOR | ||
participant ":ViewDriverTaskCommandParser" as ViewDriverTaskCommandParser LOGIC_COLOR | ||
participant "v:ViewDriverTaskCommand" as ViewDriverTaskCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("viewD 2") | ||
activate LogicManager | ||
|
||
LogicManager -> CommandParser : parseCommand("viewD 2") | ||
activate CommandParser | ||
|
||
create ViewDriverTaskCommandParser | ||
CommandParser -> ViewDriverTaskCommandParser | ||
activate ViewDriverTaskCommandParser | ||
|
||
ViewDriverTaskCommandParser --> CommandParser | ||
deactivate ViewDriverTaskCommandParser | ||
|
||
CommandParser -> ViewDriverTaskCommandParser : parse("2") | ||
activate ViewDriverTaskCommandParser | ||
|
||
create ViewDriverTaskCommand | ||
ViewDriverTaskCommandParser -> ViewDriverTaskCommand | ||
activate ViewDriverTaskCommand | ||
|
||
ViewDriverTaskCommand --> ViewDriverTaskCommandParser : v | ||
deactivate ViewDriverTaskCommand | ||
|
||
ViewDriverTaskCommandParser --> CommandParser : v | ||
deactivate ViewDriverTaskCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
ViewDriverTaskCommandParser -[hidden]-> CommandParser | ||
destroy ViewDriverTaskCommandParser | ||
|
||
CommandParser --> LogicManager : v | ||
deactivate CommandParser | ||
|
||
LogicManager -> ViewDriverTaskCommand : execute() | ||
activate ViewDriverTaskCommand | ||
|
||
ViewDriverTaskCommand -> Model : ViewDriverTask(2) | ||
activate Model | ||
|
||
Model --> ViewDriverTaskCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
ViewDriverTaskCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> ViewDriverTaskCommand | ||
deactivate CommandResult | ||
|
||
ViewDriverTaskCommand --> LogicManager : result | ||
deactivate ViewDriverTaskCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.