forked from AY2324S1-CS2103T-F12-4/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.
- Loading branch information
Showing
11 changed files
with
365 additions
and
126 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
docs/diagrams/mark/CreateMarkMeetingCommandSequenceDiagram.puml
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,41 @@ | ||
@startuml CreateMarkMeetingCommand | ||
!include ../style.puml | ||
|
||
title Create MarkMeetingCommand | ||
|
||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":MarkMeetingCommandParser" as MarkMeetingCommandParser LOGIC_COLOR | ||
participant "command:MarkMeetingCommand" as MarkMeetingCommand LOGIC_COLOR | ||
|
||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("mark 1") | ||
activate AddressBookParser | ||
|
||
create MarkMeetingCommandParser | ||
AddressBookParser -> MarkMeetingCommandParser | ||
activate MarkMeetingCommandParser | ||
|
||
MarkMeetingCommandParser --> AddressBookParser | ||
deactivate MarkMeetingCommandParser | ||
|
||
AddressBookParser -> MarkMeetingCommandParser : parse("1") | ||
activate MarkMeetingCommandParser | ||
|
||
create MarkMeetingCommand | ||
MarkMeetingCommandParser -> MarkMeetingCommand | ||
activate MarkMeetingCommand | ||
|
||
MarkMeetingCommand --> MarkMeetingCommandParser : command | ||
deactivate MarkMeetingCommand | ||
|
||
MarkMeetingCommandParser --> AddressBookParser : command | ||
deactivate MarkMeetingCommandParser | ||
|
||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
MarkMeetingCommandParser -[hidden]-> AddressBookParser | ||
destroy MarkMeetingCommandParser | ||
|
||
AddressBookParser --> LogicManager : command | ||
deactivate AddressBookParser |
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,40 @@ | ||
@startuml Execute MarkMeetingCommand | ||
!include ../style.puml | ||
|
||
title Execute MarkMeetingCommand | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant "command:MarkMeetingCommand" as MarkMeetingCommand LOGIC_COLOR | ||
participant "result:CommandResult" as CommandResult LOGIC_COLOR | ||
endbox | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("mark 1") | ||
activate LogicManager | ||
|
||
ref over LogicManager, MarkMeetingCommand : Create MarkMeetingCommand | ||
|
||
LogicManager -> MarkMeetingCommand : execute(model) | ||
activate MarkMeetingCommand | ||
|
||
ref over MarkMeetingCommand, Model : Mark Meeting | ||
|
||
ref over MarkMeetingCommand, Model : Update Attendee LastContactedTime | ||
|
||
create CommandResult | ||
MarkMeetingCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> MarkMeetingCommand | ||
deactivate CommandResult | ||
|
||
MarkMeetingCommand --> LogicManager : result | ||
deactivate MarkMeetingCommand | ||
|
||
[<--LogicManager : result | ||
deactivate LogicManager | ||
@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,34 @@ | ||
@startuml MarkMeeting | ||
!include ../style.puml | ||
|
||
title Mark Meeting | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant "command:MarkMeetingCommand" as MarkMeetingCommand LOGIC_COLOR | ||
endbox | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant "markedMeeting:Meeting" as Meeting MODEL_COLOR | ||
end box | ||
|
||
activate MarkMeetingCommand | ||
|
||
MarkMeetingCommand -> MarkMeetingCommand : markMeeting(meeting) | ||
activate MarkMeetingCommand | ||
|
||
create Meeting | ||
MarkMeetingCommand -> Meeting | ||
activate Meeting | ||
|
||
Meeting --> MarkMeetingCommand : markedMeeting | ||
deactivate Meeting | ||
|
||
MarkMeetingCommand --> MarkMeetingCommand : markedMeeting | ||
deactivate MarkMeetingCommand | ||
|
||
MarkMeetingCommand -> Model : setMeeting(meeting, markedMeeting) | ||
activate Model | ||
|
||
Model --> MarkMeetingCommand | ||
deactivate Model |
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,44 @@ | ||
@startuml Update Attendee LastContactedTime | ||
!include ../style.puml | ||
|
||
title Update Attendee LastContactedTime | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant "command:MarkMeetingCommand" as MarkMeetingCommand LOGIC_COLOR | ||
endbox | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "updatedPerson:Person" as Person MODEL_COLOR | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
activate MarkMeetingCommand | ||
|
||
loop for each attendee | ||
|
||
MarkMeetingCommand -> Model : getPerson(attendee) | ||
activate Model | ||
|
||
Model --> MarkMeetingCommand : person | ||
deactivate Model | ||
|
||
MarkMeetingCommand -> MarkMeetingCommand : updateLastContactedTime(person, time) | ||
activate MarkMeetingCommand | ||
|
||
create Person | ||
MarkMeetingCommand -> Person | ||
activate Person | ||
|
||
Person -> MarkMeetingCommand : updatedPerson | ||
deactivate Person | ||
|
||
MarkMeetingCommand --> MarkMeetingCommand : updatedPerson | ||
deactivate MarkMeetingCommand | ||
|
||
MarkMeetingCommand -> Model : setPerson(person, updatedPerson) | ||
activate Model | ||
|
||
Model --> MarkMeetingCommand | ||
deactivate Model | ||
|
||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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