forked from nus-cs2103-AY2324S2/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 pull request #175 from Benson15912/branch-updateDG
Update DG
- Loading branch information
Showing
11 changed files
with
653 additions
and
159 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User assigns a volunteer; | ||
:Parse arguments; | ||
if () then ([Invalid arguments]) | ||
#red:Shows error message; | ||
else ([Valid Arguments]) | ||
:Check whether volunteer is available on that day; | ||
if () then ([Volunteer not available]) | ||
#red:Shows error message; | ||
|
||
else ([Volunteer available]) | ||
:Check whether volunteer already has an assignment on that day; | ||
if () then ([Already has an assignment]) | ||
#red:Shows error message; | ||
|
||
else ([No assignments]) | ||
:Check for duplicate assignments; | ||
if () then ([Duplicate assignments]) | ||
#red:Shows error message; | ||
|
||
else ([No duplicate assignments]) | ||
#green:Create assignment and add; | ||
endif | ||
endif | ||
endif | ||
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,17 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam arrowThickness 1.1 | ||
skinparam arrowColor MODEL_COLOR | ||
skinparam classBackgroundColor MODEL_COLOR | ||
|
||
Package Assignment as ModelPackage <<Rectangle>>{ | ||
Class Person | ||
Class Availability | ||
Class Assignment | ||
Class AssignmentDetails | ||
Class I #FFFFFF | ||
} | ||
Assignment *--> "1" Person | ||
Assignment *--> "1" AssignmentDetails | ||
Assignment *--> "1" Availability | ||
@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
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,25 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam arrowThickness 1.1 | ||
skinparam arrowColor MODEL_COLOR | ||
skinparam classBackgroundColor MODEL_COLOR | ||
|
||
Package Person as ModelPackage <<Rectangle>>{ | ||
Class Person | ||
Class Email | ||
Class Name | ||
Class Phone | ||
Class Availability | ||
Class Tag | ||
Class I #FFFFFF | ||
} | ||
|
||
Person *--> "1"Name | ||
Person *--> "1"Phone | ||
Person *--> "1"Email | ||
Person *--> "*" Availability | ||
Person *--> "*" Tag | ||
Name -[hidden]right-> Phone | ||
Phone -[hidden]right-> Email | ||
Email -[hidden]right-> Availability | ||
@enduml |
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