Skip to content

Commit

Permalink
Update the diagram for Filter Customer
Browse files Browse the repository at this point in the history
  • Loading branch information
FerdiHS committed Oct 31, 2023
1 parent c0b346b commit 5c94294
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions docs/diagrams/FilterCustomerSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR
participant ":FilterCustomerCommandParser" as FilterCustomerCommandParser LOGIC_COLOR
participant ":Budget" as Budget LOGIC_COLOR
participant ":Tag" as Tag LOGIC_COLOR
participant "descriptor:FilterCustomerDescriptor" as FilterCustomerDescriptor LOGIC_COLOR
participant ":BudgetAndTagsInRangePredicate" as BudgetAndTagsInRangePredicate LOGIC_COLOR
participant "command:FilterCustomerCommand" as FilterCustomerCommand LOGIC_COLOR
participant ":CommandResult" as CommandResult LOGIC_COLOR
Expand All @@ -32,27 +33,48 @@ deactivate FilterCustomerCommandParser
AddressBookParser -> FilterCustomerCommandParser : parse("b/100000 c/pink")
activate FilterCustomerCommandParser

create FilterCustomerDescriptor
FilterCustomerCommandParser -> FilterCustomerDescriptor: new FilterCustomerDescriptor
activate FilterCustomerDescriptor

FilterCustomerDescriptor --> FilterCustomerCommandParser: descriptor
deactivate FilterCustomerDescriptor

create Budget
FilterCustomerCommandParser -> Budget: new Budget(100000)
activate Budget

Budget --> FilterCustomerCommandParser: budget
deactivate Budget

FilterCustomerCommandParser -> FilterCustomerDescriptor: setBudget(budget)
activate FilterCustomerDescriptor
deactivate FilterCustomerDescriptor

create Tag
FilterCustomerCommandParser -> Tag: new Tag("pink")
activate Tag

Tag --> FilterCustomerCommandParser: tag
deactivate Tag

FilterCustomerCommandParser -> FilterCustomerDescriptor: setTags(tags)
activate FilterCustomerDescriptor
deactivate FilterCustomerDescriptor

FilterCustomerCommandParser -> FilterCustomerDescriptor: getPredicate()
activate FilterCustomerDescriptor

create BudgetAndTagsInRangePredicate
FilterCustomerCommandParser -> BudgetAndTagsInRangePredicate: new BudgetAndTagsInRangePredicate(budget, tags)
FilterCustomerDescriptor -> BudgetAndTagsInRangePredicate: new BudgetAndTagsInRangePredicate(budget, tags)
activate BudgetAndTagsInRangePredicate

BudgetAndTagsInRangePredicate --> FilterCustomerCommandParser: budgetAndTagsInRangePredicate
BudgetAndTagsInRangePredicate --> FilterCustomerDescriptor: budgetAndTagsInRangePredicate
deactivate BudgetAndTagsInRangePredicate

FilterCustomerDescriptor --> FilterCustomerCommandParser: budgetAndTagsInRangePredicate
deactivate FilterCustomerDescriptor

create FilterCustomerCommand
FilterCustomerCommandParser -> FilterCustomerCommand : new FilterCustomerCommand(budgetAndTagsInRangePredicate)
activate FilterCustomerCommand
Expand Down
Binary file modified docs/images/FilterCustomerSequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5c94294

Please sign in to comment.