Skip to content

Commit 5c94294

Browse files
committed
Update the diagram for Filter Customer
1 parent c0b346b commit 5c94294

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

docs/diagrams/FilterCustomerSequenceDiagram.puml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR
77
participant ":FilterCustomerCommandParser" as FilterCustomerCommandParser LOGIC_COLOR
88
participant ":Budget" as Budget LOGIC_COLOR
99
participant ":Tag" as Tag LOGIC_COLOR
10+
participant "descriptor:FilterCustomerDescriptor" as FilterCustomerDescriptor LOGIC_COLOR
1011
participant ":BudgetAndTagsInRangePredicate" as BudgetAndTagsInRangePredicate LOGIC_COLOR
1112
participant "command:FilterCustomerCommand" as FilterCustomerCommand LOGIC_COLOR
1213
participant ":CommandResult" as CommandResult LOGIC_COLOR
@@ -32,27 +33,48 @@ deactivate FilterCustomerCommandParser
3233
AddressBookParser -> FilterCustomerCommandParser : parse("b/100000 c/pink")
3334
activate FilterCustomerCommandParser
3435

36+
create FilterCustomerDescriptor
37+
FilterCustomerCommandParser -> FilterCustomerDescriptor: new FilterCustomerDescriptor
38+
activate FilterCustomerDescriptor
39+
40+
FilterCustomerDescriptor --> FilterCustomerCommandParser: descriptor
41+
deactivate FilterCustomerDescriptor
42+
3543
create Budget
3644
FilterCustomerCommandParser -> Budget: new Budget(100000)
3745
activate Budget
3846

3947
Budget --> FilterCustomerCommandParser: budget
4048
deactivate Budget
4149

50+
FilterCustomerCommandParser -> FilterCustomerDescriptor: setBudget(budget)
51+
activate FilterCustomerDescriptor
52+
deactivate FilterCustomerDescriptor
53+
4254
create Tag
4355
FilterCustomerCommandParser -> Tag: new Tag("pink")
4456
activate Tag
4557

4658
Tag --> FilterCustomerCommandParser: tag
4759
deactivate Tag
4860

61+
FilterCustomerCommandParser -> FilterCustomerDescriptor: setTags(tags)
62+
activate FilterCustomerDescriptor
63+
deactivate FilterCustomerDescriptor
64+
65+
FilterCustomerCommandParser -> FilterCustomerDescriptor: getPredicate()
66+
activate FilterCustomerDescriptor
67+
4968
create BudgetAndTagsInRangePredicate
50-
FilterCustomerCommandParser -> BudgetAndTagsInRangePredicate: new BudgetAndTagsInRangePredicate(budget, tags)
69+
FilterCustomerDescriptor -> BudgetAndTagsInRangePredicate: new BudgetAndTagsInRangePredicate(budget, tags)
5170
activate BudgetAndTagsInRangePredicate
5271

53-
BudgetAndTagsInRangePredicate --> FilterCustomerCommandParser: budgetAndTagsInRangePredicate
72+
BudgetAndTagsInRangePredicate --> FilterCustomerDescriptor: budgetAndTagsInRangePredicate
5473
deactivate BudgetAndTagsInRangePredicate
5574

75+
FilterCustomerDescriptor --> FilterCustomerCommandParser: budgetAndTagsInRangePredicate
76+
deactivate FilterCustomerDescriptor
77+
5678
create FilterCustomerCommand
5779
FilterCustomerCommandParser -> FilterCustomerCommand : new FilterCustomerCommand(budgetAndTagsInRangePredicate)
5880
activate FilterCustomerCommand
22.8 KB
Loading

0 commit comments

Comments
 (0)