forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Branch-v1.4' of https://github.com/AY2324S1-CS2103T-T10…
…-3/tp into v1.4c
- Loading branch information
Showing
18 changed files
with
254 additions
and
526 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
@startuml | ||
'https://plantuml.com/activity-diagram-beta | ||
|
||
start | ||
:Start FindFreeTime of Group 2103 for duration 60 minutes; | ||
:Check if duration is valid; | ||
if () then ([Duration valid]) | ||
:Check if group exists; | ||
if () then ([Group exists]) | ||
:Check that all group members have free time slot; | ||
if () then ([All Members have time slot keyed in]) | ||
:Find free time of members in Group 2103; | ||
if () then ([Members common time slot allow 60 minutes]) | ||
:Add common timeslot to list; | ||
else ([else]) | ||
:Don't add common timeslot to list; | ||
endif | ||
else ([else]) | ||
:ProjectPRO throws Error; | ||
endif | ||
else ([else]) | ||
:ProjectPRO throws Error; | ||
endif | ||
else ([else]) | ||
:ProjectPRO throws Error; | ||
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,79 @@ | ||
@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 ":FindFreeTimeParser" as FindFreeTimeParser LOGIC_COLOR | ||
participant "a:FindFreeTimeCommand" as FindFreeTimeCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":AddressBook" as AddressBook MODEL_COLOR | ||
participant ":Group" as Group MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute(findfreetime g/CS2100 d/60) | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand(findfreetime g/CS2100 d/60 ...) | ||
activate AddressBookParser | ||
|
||
create FindFreeTimeParser | ||
AddressBookParser -> FindFreeTimeParser | ||
activate FindFreeTimeParser | ||
|
||
FindFreeTimeParser --> AddressBookParser | ||
deactivate FindFreeTimeParser | ||
|
||
|
||
AddressBookParser -> FindFreeTimeParser: parse("n/personName g/groupName") | ||
activate FindFreeTimeParser | ||
|
||
create FindFreeTimeCommand | ||
FindFreeTimeParser -> FindFreeTimeCommand | ||
activate FindFreeTimeCommand | ||
|
||
FindFreeTimeCommand --> FindFreeTimeParser : f | ||
deactivate FindFreeTimeCommand | ||
|
||
FindFreeTimeParser --> AddressBookParser : f | ||
deactivate FindFreeTimeParser | ||
|
||
|
||
LogicManager -> FindFreeTimeCommand : execute() | ||
activate FindFreeTimeCommand | ||
|
||
FindFreeTimeCommand -> Model : findGroup("CS2100") | ||
activate Model | ||
|
||
Model -> AddressBook : findGroup("CS2100") | ||
activate AddressBook | ||
|
||
AddressBook --> Model : g | ||
deactivate AddressBook | ||
|
||
Model -> Group : areallfree(...) | ||
activate Group | ||
Group --> Model | ||
deactivate Group | ||
|
||
Model -> Group :findfreetime(..) | ||
activate Group | ||
Group --> Model : TimeIntervalList t | ||
deactivate Group | ||
|
||
Model -> FindFreeTimeCommand : TimeIntervalList t | ||
deactivate Model | ||
|
||
create CommandResult | ||
FindFreeTimeCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> FindFreeTimeCommand | ||
deactivate CommandResult | ||
|
||
@enduml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.