forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Update-DG
- Loading branch information
Showing
63 changed files
with
3,940 additions
and
96 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,72 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":EditCustomerCommandParser" as EditCustomerCommandParser LOGIC_COLOR | ||
participant "command:EditCustomerCommand" as EditCustomerCommand 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("editcust 1 n/Janet") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("edistcust 1 n/Janet") | ||
activate AddressBookParser | ||
|
||
create EditCustomerCommandParser | ||
AddressBookParser -> EditCustomerCommandParser : new EditCustomerCommandParser("1 n/Janet") | ||
activate EditCustomerCommandParser | ||
|
||
EditCustomerCommandParser --> AddressBookParser | ||
deactivate EditCustomerCommandParser | ||
|
||
AddressBookParser -> EditCustomerCommandParser : parse("1 n/Janet") | ||
activate EditCustomerCommandParser | ||
|
||
create EditCustomerCommand | ||
EditCustomerCommandParser -> EditCustomerCommand : new EditCustomerCommand(1, editCustomerDescriptor) | ||
activate EditCustomerCommand | ||
|
||
EditCustomerCommand --> EditCustomerCommandParser : command | ||
deactivate EditCustomerCommand | ||
|
||
EditCustomerCommandParser --> AddressBookParser : command | ||
deactivate EditCustomerCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
EditCustomerCommandParser -[hidden]-> AddressBookParser | ||
destroy EditCustomerCommandParser | ||
|
||
AddressBookParser --> LogicManager : command | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> EditCustomerCommand : execute() | ||
activate EditCustomerCommand | ||
|
||
EditCustomerCommand -> EditCustomerCommand : createEditedCustomer(customerToEdit, editCustomerDescriptor) | ||
activate EditCustomerCommand | ||
EditCustomerCommand --> EditCustomerCommand : editedCustomer | ||
deactivate EditCustomerCommand | ||
|
||
EditCustomerCommand -> Model : setCustomer(CustomerToEdit, editedCustomer) | ||
|
||
EditCustomerCommand -> Model : updateFilteredCustomerList(PREDICATE_SHOW_ALL_CUSTOMERS) | ||
|
||
create CommandResult | ||
EditCustomerCommand -> CommandResult : new CommandResult("Edited customer: " + editedCustomer) | ||
activate CommandResult | ||
|
||
CommandResult --> EditCustomerCommand | ||
deactivate CommandResult | ||
|
||
EditCustomerCommand --> LogicManager : commandResult | ||
deactivate EditCustomerCommand | ||
|
||
[<--LogicManager : commandResult | ||
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,89 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
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 ":BudgetAndTagsInRangePredicate" as BudgetAndTagsInRangePredicate LOGIC_COLOR | ||
participant "command:FilterCustomerCommand" as FilterCustomerCommand 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("filtercust b/100000 c/pink") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("filtercust b/100000 c/pink") | ||
activate AddressBookParser | ||
|
||
create FilterCustomerCommandParser | ||
AddressBookParser -> FilterCustomerCommandParser : new FilterCustomerCommandParser("b/100000 c/pink") | ||
activate FilterCustomerCommandParser | ||
|
||
FilterCustomerCommandParser --> AddressBookParser | ||
deactivate FilterCustomerCommandParser | ||
|
||
AddressBookParser -> FilterCustomerCommandParser : parse("b/100000 c/pink") | ||
activate FilterCustomerCommandParser | ||
|
||
create Budget | ||
FilterCustomerCommandParser -> Budget: new Budget(100000) | ||
activate Budget | ||
|
||
Budget --> FilterCustomerCommandParser: budget | ||
deactivate Budget | ||
|
||
create Tag | ||
FilterCustomerCommandParser -> Tag: new Tag("pink") | ||
activate Tag | ||
|
||
Tag --> FilterCustomerCommandParser: tag | ||
deactivate Tag | ||
|
||
create BudgetAndTagsInRangePredicate | ||
FilterCustomerCommandParser -> BudgetAndTagsInRangePredicate: new BudgetAndTagsInRangePredicate(budget, tags) | ||
activate BudgetAndTagsInRangePredicate | ||
|
||
BudgetAndTagsInRangePredicate --> FilterCustomerCommandParser: budgetAndTagsInRangePredicate | ||
deactivate BudgetAndTagsInRangePredicate | ||
|
||
create FilterCustomerCommand | ||
FilterCustomerCommandParser -> FilterCustomerCommand : new FilterCustomerCommand(budgetAndTagsInRangePredicate) | ||
activate FilterCustomerCommand | ||
|
||
FilterCustomerCommand --> FilterCustomerCommandParser : command | ||
deactivate FilterCustomerCommand | ||
|
||
FilterCustomerCommandParser --> AddressBookParser : command | ||
deactivate FilterCustomerCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
FilterCustomerCommandParser -[hidden]-> AddressBookParser | ||
destroy FilterCustomerCommandParser | ||
|
||
AddressBookParser --> LogicManager : command | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> FilterCustomerCommand : execute() | ||
activate FilterCustomerCommand | ||
|
||
FilterCustomerCommand -> Model : updateFilteredCustomerList(budgetAndTagsInRangePredicate) | ||
|
||
create CommandResult | ||
FilterCustomerCommand -> CommandResult : new CommandResult(numberOfFilteredCustomer + " customers listed!") | ||
activate CommandResult | ||
|
||
CommandResult --> FilterCustomerCommand | ||
deactivate CommandResult | ||
|
||
FilterCustomerCommand --> LogicManager : commandResult | ||
deactivate FilterCustomerCommand | ||
|
||
[<--LogicManager : commandResult | ||
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,65 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":FindCustomerCommandParser" as FindCustomerCommandParser LOGIC_COLOR | ||
participant "command:FindCustomerCommand" as FindCustomerCommand 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("findcust Jack") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("findcust Jack") | ||
activate AddressBookParser | ||
|
||
create FindCustomerCommandParser | ||
AddressBookParser -> FindCustomerCommandParser : new FindCustomerCommandParser() | ||
activate FindCustomerCommandParser | ||
|
||
FindCustomerCommandParser --> AddressBookParser | ||
deactivate FindCustomerCommandParser | ||
|
||
AddressBookParser -> FindCustomerCommandParser : parse("Jack") | ||
activate FindCustomerCommandParser | ||
|
||
create FindCustomerCommand | ||
FindCustomerCommandParser -> FindCustomerCommand : new FindCustomerCommand(predicate) | ||
activate FindCustomerCommand | ||
|
||
FindCustomerCommand --> FindCustomerCommandParser : command | ||
deactivate FindCustomerCommand | ||
|
||
FindCustomerCommandParser --> AddressBookParser : command | ||
deactivate FindCustomerCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
FindCustomerCommandParser -[hidden]-> AddressBookParser | ||
destroy FindCustomerCommandParser | ||
|
||
AddressBookParser --> LogicManager : command | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> FindCustomerCommand : execute() | ||
activate FindCustomerCommand | ||
|
||
FindCustomerCommand -> Model : updateFilteredCustomerList(predicate) | ||
|
||
create CommandResult | ||
FindCustomerCommand -> CommandResult : new CommandResult(num + "customers listed!") | ||
activate CommandResult | ||
|
||
CommandResult --> FindCustomerCommand | ||
deactivate CommandResult | ||
|
||
FindCustomerCommand --> LogicManager | ||
deactivate FindCustomerCommand | ||
|
||
[<--LogicManager : commandResult | ||
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.
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
Oops, something went wrong.