forked from nus-cs2103-AY1920S1/addressbook-level3
-
Notifications
You must be signed in to change notification settings - Fork 4
/
ViewCustomerTaskCommand.puml
69 lines (51 loc) · 1.94 KB
/
ViewCustomerTaskCommand.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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