From 4788b25183abb923ea963d2d440ea4e0ae3a2cf8 Mon Sep 17 00:00:00 2001 From: ChenKangg Date: Sun, 14 Apr 2024 17:28:38 +0800 Subject: [PATCH] update sequence diagram --- docs/plantUML diagrams/TagSequenceDiagram.puml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/plantUML diagrams/TagSequenceDiagram.puml b/docs/plantUML diagrams/TagSequenceDiagram.puml index c47a14fa02..601899934e 100644 --- a/docs/plantUML diagrams/TagSequenceDiagram.puml +++ b/docs/plantUML diagrams/TagSequenceDiagram.puml @@ -11,15 +11,29 @@ User -> tagCommandMethod: tagCommand(line, list) activate tagCommandMethod tagCommandMethod -> tagCommandMethod: line.split(" ") + alt command.length == 3 && isNumeric(command[1]) tagCommandMethod -> tagCommandMethod: int listNumber = Integer.parseInt(command[1]) + activate tagCommandMethod + tagCommandMethod -> tagCommandMethod: String tag = command[2] + activate tagCommandMethod tagCommandMethod -> TravelActivityListInstance: tagActivity(listNumber, tag) + activate TravelActivityListInstance + TravelActivityListInstance --> tagCommandMethod: + deactivate TravelActivityListInstance + deactivate tagCommandMethod + else command.length == 2 tagCommandMethod -> OmniExceptionInstance: OmniException("Please specify a tag name") + activate OmniExceptionInstance + deactivate OmniExceptionInstance + deactivate tagCommandMethod + else tagCommandMethod -> OmniExceptionInstance: OmniException("Please specify which task to tag") + activate OmniExceptionInstance + deactivate OmniExceptionInstance + deactivate tagCommandMethod end - -deactivate tagCommandMethod @enduml \ No newline at end of file