forked from nus-cs2103-AY2122S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 3
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 add-new-class-diagrams
- Loading branch information
Showing
98 changed files
with
1,637 additions
and
966 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":FindCommandParser" as FindCommandParser LOGIC_COLOR | ||
participant ":FindCommand" as FindCommand LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":NameContainsKeywordsPredicate" as NameContainsKeywordsPredicate MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute(sort n/) | ||
activate LogicManager | ||
|
||
|
||
LogicManager -> AddressBookParser : parseCommand(sort n/) | ||
activate AddressBookParser | ||
|
||
create FindCommandParser | ||
AddressBookParser -> FindCommandParser | ||
deactivate FindCommand | ||
|
||
create FindCommand | ||
FindCommandParser -> FindCommand : parse(n/chocolate) | ||
activate FindCommand | ||
|
||
create NameContainsKeywordsPredicate | ||
FindCommandParser -> NameContainsKeywordsPredicate : parse(n/chocolate) | ||
activate NameContainsKeywordsPredicate | ||
|
||
NameContainsKeywordsPredicate --> FindCommand | ||
deactivate NameContainsKeywordsPredicate | ||
|
||
FindCommand --> LogicManager | ||
deactivate FindCommand | ||
|
||
LogicManager -> FindCommand : execute() | ||
activate FindCommand | ||
|
||
FindCommand -> Model : updateFilteredItemList() | ||
activate Model | ||
|
||
Model -> NameContainsKeywordsPredicate : test() | ||
activate NameContainsKeywordsPredicate | ||
|
||
NameContainsKeywordsPredicate --> Model | ||
deactivate NameContainsKeywordsPredicate | ||
|
||
Model --> FindCommand | ||
deactivate Model | ||
|
||
FindCommand --> LogicManager : result | ||
deactivate FindCommand | ||
|
||
[<--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,32 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ClassFontColor #000000 | ||
skinparam ClassBorderColor #000000 | ||
|
||
title iorder state 2 | ||
|
||
Class modelManager as "__modelManager:ModelManager__" | ||
|
||
Class optionalOrder as "__optionalOrder:OptionalOrder__" | ||
|
||
Class trans2 as "__transactionRecord2:TransactionRecord__" | ||
Class item1 as "__banana:Item__" | ||
Class item2 as "__strawberry:Item__" | ||
item2 -up-> trans2 | ||
item1 -up-> trans2 | ||
|
||
Class transactions as "__transactions:List<TransactionRecord>__" | ||
|
||
Class trans1 as "__transactionRecord1:TransactionRecord__" | ||
Class item1Trans1 as "__pencil:Item__" | ||
Class item2Trans2 as "__pen:Item__" | ||
item2Trans2 -up-> trans1 | ||
item1Trans1 -up-> trans1 | ||
|
||
|
||
transactions -up-> modelManager | ||
trans1 -up-> transactions | ||
trans2 -up-> transactions | ||
optionalOrder -up-> modelManager | ||
|
||
@end |
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,25 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ClassFontColor #000000 | ||
skinparam ClassBorderColor #000000 | ||
|
||
title Initial state | ||
|
||
Class modelManager as "__modelManager:ModelManager__" | ||
|
||
Class optionalOrder as "__optionalOrder:OptionalOrder__" | ||
|
||
Class transactions as "__transactions:List<TransactionRecord>__" | ||
|
||
Class trans1 as "__transactionRecord1:TransactionRecord__" | ||
Class item1Trans1 as "__pencil:Item__" | ||
Class item2Trans2 as "__pen:Item__" | ||
item2Trans2 -up-> trans1 | ||
item1Trans1 -up-> trans1 | ||
|
||
|
||
transactions -up-> modelManager | ||
optionalOrder -up-> modelManager | ||
trans1 -up-> transactions | ||
|
||
@end |
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,28 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ClassFontColor #000000 | ||
skinparam ClassBorderColor #000000 | ||
|
||
title iorder state 1 | ||
|
||
Class modelManager as "__modelManager:ModelManager__" | ||
|
||
Class optionalOrder as "__optionalOrder:OptionalOrder__" | ||
Class ord as "__order:Order__" | ||
Class item1 as "__banana:Item__" | ||
|
||
Class transactions as "__transactions:List<TransactionRecord>__" | ||
|
||
Class trans1 as "__transactionRecord1:TransactionRecord__" | ||
Class item1Trans1 as "__pencil:Item__" | ||
Class item2Trans2 as "__pen:Item__" | ||
item2Trans2 -up-> trans1 | ||
item1Trans1 -up-> trans1 | ||
|
||
transactions -up-> modelManager | ||
trans1 -up-> transactions | ||
item1 -up-> ord | ||
ord -up-> optionalOrder | ||
optionalOrder -up-> modelManager | ||
|
||
@end |
Oops, something went wrong.