forked from AY2324S1-CS2103-T16-3/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 pull request AY2324S1-CS2103-T16-3#214 from sp4ce-cowboy/UniCas…
…h-1.4/finalizeDeveloperGuide [Documentation] DG Update with Delete, Clear, Reset, Get, Find, StyleSheet and UI Overview
- Loading branch information
Showing
24 changed files
with
920 additions
and
152 deletions.
There are no files selected for viewing
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
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
47 changes: 47 additions & 0 deletions
47
docs/diagrams/unicash/FindTransactionsActivityDiagram.puml
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,47 @@ | ||
@startuml | ||
!pragma useVerticalIf on | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
|
||
: User enters find command; | ||
|
||
if () then ( | ||
|
||
[command not followed by any parameters]) | ||
:Error: Invalid command format; | ||
stop | ||
|
||
|
||
elseif () then ( | ||
|
||
|
||
|
||
[command followed by multiple | ||
instances of the same parameter]) | ||
|
||
:Error: Multiple values specified for single-valued field ; | ||
stop | ||
|
||
elseif () then ( | ||
|
||
|
||
[command followed by | ||
invalid parameters]) | ||
|
||
:Error: Invalid command format; | ||
stop | ||
|
||
|
||
else ( | ||
|
||
[else] | ||
) | ||
:Transaction retrieved successfully; | ||
|
||
endif | ||
|
||
stop | ||
|
||
@enduml |
73 changes: 73 additions & 0 deletions
73
docs/diagrams/unicash/FindTransactionsSequenceDiagram.puml
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,73 @@ | ||
|
||
@startuml | ||
!include ../style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":UniCashParser" as UniCashParser LOGIC_COLOR | ||
participant ":FindCommandParser" as FindCommandParser LOGIC_COLOR | ||
participant "command:FindCommand" as FindCommand LOGIC_COLOR | ||
participant "commandResult:CommandResult" as CommandResult LOGIC_COLOR | ||
|
||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("find c/food") | ||
activate LogicManager | ||
|
||
LogicManager -> UniCashParser : parseCommand("find c/food") | ||
activate UniCashParser | ||
|
||
create FindCommandParser | ||
UniCashParser -> FindCommandParser | ||
activate FindCommandParser | ||
|
||
FindCommandParser --> UniCashParser | ||
deactivate FindCommandParser | ||
|
||
UniCashParser -> FindCommandParser : parse("c/food") | ||
activate FindCommandParser | ||
|
||
|
||
create FindCommand | ||
FindCommandParser -> FindCommand | ||
activate FindCommand | ||
|
||
FindCommand --> FindCommandParser | ||
deactivate FindCommand | ||
|
||
FindCommandParser --> UniCashParser : command | ||
deactivate FindCommandParser | ||
|
||
FindCommandParser -[hidden]-> UniCashParser | ||
destroy FindCommandParser | ||
|
||
UniCashParser --> LogicManager : command | ||
deactivate UniCashParser | ||
|
||
LogicManager -> FindCommand : command.execute(model) | ||
activate FindCommand | ||
|
||
|
||
FindCommand -> Model : updateFilteredTransactionList(transactionPredicate) | ||
activate Model | ||
|
||
Model --> FindCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
FindCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> FindCommand | ||
deactivate CommandResult | ||
|
||
FindCommand --> LogicManager : commandResult | ||
deactivate FindCommand | ||
|
||
[<--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,20 @@ | ||
@startuml | ||
|
||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
|
||
: User enters get command; | ||
|
||
if () then ([else]) | ||
:Parse exception thrown; | ||
stop | ||
else ([command argument is a valid number]) | ||
:Transaction successfully retrieved ; | ||
endif | ||
|
||
|
||
stop | ||
|
||
@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,70 @@ | ||
@startuml | ||
!include ../style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":UniCashParser" as UniCashParser LOGIC_COLOR | ||
participant ":GetCommandParser" as GetCommandParser LOGIC_COLOR | ||
participant "d:GetCommand" as GetCommand 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("get 1") | ||
activate LogicManager | ||
|
||
LogicManager -> UniCashParser : parseCommand("get 1") | ||
activate UniCashParser | ||
|
||
create GetCommandParser | ||
UniCashParser -> GetCommandParser | ||
activate GetCommandParser | ||
|
||
GetCommandParser --> UniCashParser | ||
deactivate GetCommandParser | ||
|
||
UniCashParser -> GetCommandParser : parse("1") | ||
activate GetCommandParser | ||
|
||
create GetCommand | ||
GetCommandParser -> GetCommand | ||
activate GetCommand | ||
|
||
GetCommand --> GetCommandParser : | ||
deactivate GetCommand | ||
|
||
GetCommandParser --> UniCashParser : | ||
deactivate GetCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
GetCommandParser -[hidden]-> UniCashParser | ||
destroy GetCommandParser | ||
|
||
UniCashParser --> LogicManager : | ||
deactivate UniCashParser | ||
|
||
LogicManager -> GetCommand : execute(model) | ||
activate GetCommand | ||
|
||
GetCommand -> Model : get(1) | ||
activate Model | ||
|
||
Model --> GetCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
GetCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> GetCommand | ||
deactivate CommandResult | ||
|
||
GetCommand --> LogicManager : result | ||
deactivate GetCommand | ||
|
||
[<--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,21 @@ | ||
@startuml | ||
|
||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
|
||
: User enters reset_unicash command; | ||
|
||
if () then ([command followed with trailing characters]) | ||
:Parse exception thrown; | ||
stop | ||
|
||
else ([else]) | ||
:UniCa$h successfully reset; | ||
|
||
endif | ||
|
||
stop | ||
|
||
@enduml |
Oops, something went wrong.