Skip to content

Commit

Permalink
Merge pull request #116 from CYX22222003/update-uml
Browse files Browse the repository at this point in the history
Update UML for deleteTag
  • Loading branch information
KrashKart authored Oct 22, 2024
2 parents 7e4b119 + 94af784 commit 27a28b5
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/diagrams/CommandClasses.puml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package "Command Classes" as CommandClasses {
Class "FindByPhoneCommand" as FPC
Class "HelpCommand" as HC
Class "ListCommand" as LC
Class "DeleteTagCommand" as DTC
}
}
HiddenOutside ..> Command
Expand All @@ -42,6 +43,7 @@ FEC -[hidden]u- CC

DC -u-|> Command
DC -[hidden]right- EdC
DTC -u-|> Command
FEC -[hidden]u- DC

EdC -u-|> Command
Expand Down
80 changes: 80 additions & 0 deletions docs/diagrams/DeleteTagSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
@startuml
!include style.puml
skinparam ArrowFontStyle plain

box Logic LOGIC_COLOR_T1
participant ":LogicManager" as LogicManager LOGIC_COLOR
participant ":CampusConnectParser" as CampusConnectParser LOGIC_COLOR
participant ":DeleteTagCommandParser" as DeleteTagCommandParser LOGIC_COLOR
participant "d:DeleteTagCommand" as DeleteTagCommand 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("deletetag 1 t/test")
activate LogicManager

LogicManager -> CampusConnectParser : parseCommand("deletetag 1 t/test")
activate CampusConnectParser

create DeleteTagCommandParser
CampusConnectParser -> DeleteTagCommandParser
activate DeleteTagCommandParser

DeleteTagCommandParser --> CampusConnectParser
deactivate DeleteTagCommandParser

CampusConnectParser -> DeleteTagCommandParser: parse("1 t/test")
activate DeleteTagCommandParser

create DeleteTagCommand
DeleteTagCommandParser -> DeleteTagCommand
activate DeleteTagCommand

DeleteTagCommand --> DeleteTagCommandParser :
deactivate DeleteTagCommand

DeleteTagCommandParser --> CampusConnectParser : d
DeleteTagCommandParser -[hidden]-> CampusConnectParser
destroy DeleteTagCommandParser

CampusConnectParser --> LogicManager : d
deactivate CampusConnectParser

LogicManager -> DeleteTagCommand : execute(m)
activate DeleteTagCommand

DeleteTagCommand -> Model : getFilteredPersonList()
activate Model

Model --> DeleteTagCommand : lastShownList
deactivate Model

DeleteTagCommand -> Model : get(index)
activate Model

Model --> DeleteTagCommand : person
deactivate Model

DeleteTagCommand -> Model : deletePersonTag(person, tag)
activate Model

Model --> DeleteTagCommand
deactivate Model

create CommandResult
DeleteTagCommand -> CommandResult
activate CommandResult

CommandResult --> DeleteTagCommand : r
deactivate CommandResult

DeleteTagCommand --> LogicManager
deactivate DeleteTagCommand

[<-- LogicManager
deactivate LogicManager
@enduml

0 comments on commit 27a28b5

Please sign in to comment.