forked from AY2324S2-CS2103T-F10-3/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.
Merge pull request AY2324S2-CS2103T-F10-3#106 from xuelinglow/v1.3-up…
…date-docs Update developer guide with mark app implementation
- Loading branch information
Showing
6 changed files
with
139 additions
and
25 deletions.
There are no files selected for viewing
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
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
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,15 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User executes MarkApptCommand; | ||
|
||
if () then ([Appt with NRIC, Date, StartTime found]) | ||
:Mark Appointment in | ||
AppointmentList in AddressBook; | ||
else ([Appt not found])) | ||
: CommandException; | ||
endif | ||
stop | ||
@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,71 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":MarkCommandParser" as MarkCommandParser LOGIC_COLOR | ||
participant "a:MarkCommand" as MarkCommand 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("mark i/ T0123456A...") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("mark i/ T0123456A...") | ||
activate AddressBookParser | ||
|
||
create MarkCommandParser | ||
AddressBookParser -> MarkCommandParser | ||
activate MarkCommandParser | ||
|
||
MarkCommandParser --> AddressBookParser | ||
deactivate MarkCommandParser | ||
|
||
AddressBookParser -> MarkCommandParser : parse("i/ T0123456A...") | ||
activate MarkCommandParser | ||
|
||
create MarkCommand | ||
MarkCommandParser -> MarkCommand | ||
activate MarkCommand | ||
|
||
MarkCommand --> MarkCommandParser : | ||
deactivate MarkCommand | ||
|
||
MarkCommandParser --> AddressBookParser : a | ||
deactivate MarkCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
MarkCommandParser -[hidden]-> AddressBookParser | ||
destroy MarkCommandParser | ||
|
||
AddressBookParser --> LogicManager : a | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> MarkCommand : execute(m) | ||
activate MarkCommand | ||
|
||
MarkCommand -> Model : getMatchingAppointment(targetNric, targetDate, targetStartTime) | ||
Model --> MarkCommand | ||
MarkCommand -> Model : setAppointment(Appointment, markedAppointment) | ||
activate Model | ||
Model --> MarkCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
MarkCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> MarkCommand | ||
deactivate CommandResult | ||
|
||
MarkCommand --> LogicManager : r | ||
deactivate MarkCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |