forked from AY2324S2-CS2103T-T08-1/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 'backup' into developer-guide-3
- Loading branch information
Showing
11 changed files
with
306 additions
and
45 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
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,82 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
box Logic LOGIC_COLOR_T1 | ||
participant "l:Logic" as CreateCommand LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":ModelManager" as ModelManager MODEL_COLOR | ||
participant ":ImmuniMate" as ImmuniMate MODEL_COLOR | ||
participant ":UniquePersonList" as UniquePersonList MODEL_COLOR | ||
participant "internalList: ObservableList<Person>" as internalList MODEL_COLOR | ||
participant "p1:Person" as p1 MODEL_COLOR | ||
participant "p1:Person" as p MODEL_COLOR | ||
end box | ||
|
||
[-> CreateCommand : execute() | ||
activate CreateCommand | ||
|
||
CreateCommand -> ModelManager : hasPerson(...) | ||
activate ModelManager | ||
|
||
ModelManager -> ImmuniMate: hasPerson(p1) | ||
activate ImmuniMate | ||
|
||
ImmuniMate -> UniquePersonList : contains(p1) | ||
activate UniquePersonList | ||
|
||
UniquePersonList -> internalList : stream().anyMatch(p1::isSamePerson) | ||
activate internalList | ||
|
||
internalList -> p1 : isSamePerson(p1) | ||
activate p1 | ||
|
||
p1 --> internalList | ||
deactivate p1 | ||
|
||
internalList --> UniquePersonList | ||
deactivate internalList | ||
|
||
UniquePersonList --> ImmuniMate | ||
deactivate UniquePersonList | ||
|
||
ImmuniMate --> ModelManager | ||
deactivate ImmuniMate | ||
|
||
ModelManager --> CreateCommand | ||
deactivate ModelManager | ||
|
||
CreateCommand -> ModelManager : setEmail(...) | ||
activate ModelManager | ||
|
||
ModelManager -> ImmuniMate: getPerson(...) | ||
activate ImmuniMate | ||
|
||
ImmuniMate -> UniquePersonList : get(...) | ||
activate UniquePersonList | ||
|
||
UniquePersonList -> internalList : get(...) | ||
activate internalList | ||
|
||
internalList --> UniquePersonList : p | ||
deactivate internalList | ||
|
||
UniquePersonList --> ImmuniMate : p | ||
deactivate UniquePersonList | ||
|
||
ImmuniMate -> p : setEmail(null) | ||
activate p | ||
p --> ImmuniMate : set email to null | ||
deactivate p | ||
|
||
ImmuniMate --> ModelManager | ||
deactivate ImmuniMate | ||
|
||
ModelManager --> CreateCommand | ||
deactivate ModelManager | ||
|
||
[<--CreateCommand | ||
deactivate CreateCommand | ||
|
||
@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,74 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":ImmuniMateParser" as ImmuniMateParser LOGIC_COLOR | ||
participant ":DeleteInfoCommandParser" as DeleteInfoCommandParser LOGIC_COLOR | ||
participant "d:DeleteInfoCommand" as DeleteInfoCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("deleteinfo S1234567X e/") | ||
activate LogicManager | ||
|
||
LogicManager -> ImmuniMateParser : parseCommand("deleteinfo S1234567X e/") | ||
activate ImmuniMateParser | ||
|
||
create DeleteInfoCommandParser | ||
ImmuniMateParser -> DeleteInfoCommandParser | ||
activate DeleteInfoCommandParser | ||
|
||
DeleteInfoCommandParser --> ImmuniMateParser | ||
deactivate DeleteInfoCommandParser | ||
|
||
ImmuniMateParser -> DeleteInfoCommandParser : parse("S1234567X e/") | ||
activate DeleteInfoCommandParser | ||
|
||
create DeleteInfoCommand | ||
DeleteInfoCommandParser -> DeleteInfoCommand | ||
activate DeleteInfoCommand | ||
|
||
DeleteInfoCommand --> DeleteInfoCommandParser : | ||
deactivate DeleteInfoCommand | ||
|
||
DeleteInfoCommandParser --> ImmuniMateParser : d | ||
deactivate DeleteInfoCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
DeleteInfoCommandParser -[hidden]-> ImmuniMateParser | ||
destroy DeleteInfoCommandParser | ||
|
||
ImmuniMateParser --> LogicManager : d | ||
deactivate ImmuniMateParser | ||
|
||
LogicManager -> DeleteInfoCommand : execute(m) | ||
activate DeleteInfoCommand | ||
|
||
DeleteInfoCommand -> Model : hasPerson(...) | ||
activate Model | ||
Model --> DeleteInfoCommand : false | ||
deactivate Model | ||
|
||
DeleteInfoCommand -> Model : setEmail(...) | ||
activate Model | ||
Model --> DeleteInfoCommand : set email of specified person to null | ||
deactivate Model | ||
|
||
create CommandResult | ||
DeleteInfoCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> DeleteInfoCommand | ||
deactivate CommandResult | ||
|
||
DeleteInfoCommand --> LogicManager : r | ||
deactivate DeleteInfoCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
Oops, something went wrong.