Skip to content

Commit

Permalink
Merge pull request #235 from ChenKangg/master
Browse files Browse the repository at this point in the history
update tag sequence diagram
  • Loading branch information
ChinYanXu committed Apr 14, 2024
2 parents f86bd6d + 4788b25 commit 683bb3c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docs/plantUML diagrams/TagSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 683bb3c

Please sign in to comment.