From da02a449588e5e6d206ee343961cce03a8188aa2 Mon Sep 17 00:00:00 2001 From: RCPilot1604 Date: Thu, 14 Nov 2024 12:50:38 +0800 Subject: [PATCH 1/2] Modify puml diagram --- docs/diagrams/ArchitectureSequenceGrouped.puml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/diagrams/ArchitectureSequenceGrouped.puml b/docs/diagrams/ArchitectureSequenceGrouped.puml index 90c3d69eda..0c4f133767 100644 --- a/docs/diagrams/ArchitectureSequenceGrouped.puml +++ b/docs/diagrams/ArchitectureSequenceGrouped.puml @@ -1 +1 @@ -@startuml !include Style.puml participant ":TutorLink" as TL LOGIC_COLOR_5 participant ":Ui" as UI LOGIC_COLOR_6 participant ":Parser" as P LOGIC_COLOR_7 participant ":XYZCommand" as C LOGIC_COLOR_3 participant ":AppState" as A LOGIC_COLOR_2 participant ":XYZStorage" as S LOGIC_COLOR_4 [->TL activate TL ref over TL, UI : setup loop until exit command issued TL -> UI: getUserInput() activate UI TL <-- UI: line deactivate UI TL -> P : getCommand(line) activate P create C P -> C activate C P <-- C : XYZCommand deactivate C TL <-- P: XYZCommand deactivate P TL -> C : getArgumentPrefixes() activate C TL <-- C : argumentPrefixes deactivate C TL -> P: getArguments(argumentPrefixes, line) activate P TL <-- P : HashMap deactivate P TL -> C : execute(appState, arguments) activate C ref over C, A : specific command execution alt command execution success TL <-- C : CommandResult deactivate C destroy C TL -> UI : displayResult() activate UI TL <-- UI deactivate UI else TutorLinkException TL -> UI : displayException(exception) activate UI TL <-- UI deactivate UI end TL -> TL : saveAllLists() activate TL TL -> S : save Student, Component and Grade Lists activate S TL <-- S deactivate S TL --> TL deactivate TL end TL->UI: displayGoodbyeMessage() activate UI TL <-- UI deactivate UI [<--TL deactivate TL @enduml \ No newline at end of file +@startuml !include Style.puml participant ":TutorLink" as TL LOGIC_COLOR_5 participant ":Ui" as UI LOGIC_COLOR_6 participant ":Parser" as P LOGIC_COLOR_7 participant ":XYZCommand" as C LOGIC_COLOR_3 participant ":AppState" as A LOGIC_COLOR_2 participant ":XYZStorage" as S LOGIC_COLOR_4 [->TL activate TL ref over TL, UI : setup loop until exit command issued TL -> UI: getUserInput() activate UI TL <-- UI: line deactivate UI TL -> P : getCommand(line) activate P create C P -> C activate C P <-- C : XYZCommand deactivate C TL <-- P: XYZCommand deactivate P TL -> C : getArgumentPrefixes() activate C TL <-- C : argumentPrefixes deactivate C TL -> P: getArguments(argumentPrefixes, line) activate P TL <-- P : HashMap deactivate P TL -> C : execute(appState, arguments) activate C ref over C, A : specific command execution alt command execution success TL <-- C : CommandResult deactivate C destroy C TL -> UI : displayResult() activate UI TL <-- UI deactivate UI else TutorLinkException TL -> UI : displayException(exception) activate UI TL <-- UI deactivate UI end TL -> TL : saveAllLists() activate TL TL -> S : save Student, Component and Grade Lists activate S TL <-- S deactivate S TL --> TL deactivate TL end TL->UI: displayGoodbyeMessage() activate UI TL <-- UI deactivate UI [<--TL deactivate TL @endum \ No newline at end of file From a881cbf8cb23dd4aa8c9aae946fad6cc261eb926 Mon Sep 17 00:00:00 2001 From: RCPilot1604 Date: Thu, 14 Nov 2024 12:52:30 +0800 Subject: [PATCH 2/2] Fix puml diagram (CRLF to LF) --- .../diagrams/ArchitectureSequenceGrouped.puml | 67 ++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/docs/diagrams/ArchitectureSequenceGrouped.puml b/docs/diagrams/ArchitectureSequenceGrouped.puml index 0c4f133767..677f54e91e 100644 --- a/docs/diagrams/ArchitectureSequenceGrouped.puml +++ b/docs/diagrams/ArchitectureSequenceGrouped.puml @@ -1 +1,66 @@ -@startuml !include Style.puml participant ":TutorLink" as TL LOGIC_COLOR_5 participant ":Ui" as UI LOGIC_COLOR_6 participant ":Parser" as P LOGIC_COLOR_7 participant ":XYZCommand" as C LOGIC_COLOR_3 participant ":AppState" as A LOGIC_COLOR_2 participant ":XYZStorage" as S LOGIC_COLOR_4 [->TL activate TL ref over TL, UI : setup loop until exit command issued TL -> UI: getUserInput() activate UI TL <-- UI: line deactivate UI TL -> P : getCommand(line) activate P create C P -> C activate C P <-- C : XYZCommand deactivate C TL <-- P: XYZCommand deactivate P TL -> C : getArgumentPrefixes() activate C TL <-- C : argumentPrefixes deactivate C TL -> P: getArguments(argumentPrefixes, line) activate P TL <-- P : HashMap deactivate P TL -> C : execute(appState, arguments) activate C ref over C, A : specific command execution alt command execution success TL <-- C : CommandResult deactivate C destroy C TL -> UI : displayResult() activate UI TL <-- UI deactivate UI else TutorLinkException TL -> UI : displayException(exception) activate UI TL <-- UI deactivate UI end TL -> TL : saveAllLists() activate TL TL -> S : save Student, Component and Grade Lists activate S TL <-- S deactivate S TL --> TL deactivate TL end TL->UI: displayGoodbyeMessage() activate UI TL <-- UI deactivate UI [<--TL deactivate TL @endum \ No newline at end of file +@startuml +!include Style.puml +participant ":TutorLink" as TL LOGIC_COLOR_5 +participant ":Ui" as UI LOGIC_COLOR_6 +participant ":Parser" as P LOGIC_COLOR_7 +participant ":XYZCommand" as C LOGIC_COLOR_3 +participant ":AppState" as A LOGIC_COLOR_2 +participant ":XYZStorage" as S LOGIC_COLOR_4 +[->TL +activate TL +ref over TL, UI : setup +loop until exit command issued + TL -> UI: getUserInput() + activate UI + TL <-- UI: line + deactivate UI + TL -> P : getCommand(line) + activate P + create C + P -> C + activate C + P <-- C : XYZCommand + deactivate C + TL <-- P: XYZCommand + deactivate P + TL -> C : getArgumentPrefixes() + activate C + TL <-- C : argumentPrefixes + deactivate C + TL -> P: getArguments(argumentPrefixes, line) + activate P + TL <-- P : HashMap + deactivate P + TL -> C : execute(appState, arguments) + activate C + ref over C, A : specific command execution + alt command execution success + TL <-- C : CommandResult + deactivate C + destroy C + TL -> UI : displayResult() + activate UI + TL <-- UI + deactivate UI + else TutorLinkException + TL -> UI : displayException(exception) + activate UI + TL <-- UI + deactivate UI + end + TL -> TL : saveAllLists() + activate TL + TL -> S : save Student, Component and Grade Lists + activate S + TL <-- S + deactivate S + TL --> TL + deactivate TL +end +TL->UI: displayGoodbyeMessage() +activate UI +TL <-- UI +deactivate UI +[<--TL +deactivate TL +@enduml \ No newline at end of file