forked from nus-cs2103-AY2021S1/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 nus-cs2103-AY2021S1#107 from gabztcr/gabriel-devel…
…oper-guide-implementation Add Overall Completion Percentage feature to DG Implementation
- Loading branch information
Showing
4 changed files
with
101 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":DeliverableModel" as Mod MODEL_COLOR | ||
end box | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":TotalNumDeliverables" as Total LOGIC_COLOR | ||
participant ":NumCompletedDeliverables" as Com LOGIC_COLOR | ||
participant ":OCP" as OCP LOGIC_COLOR | ||
end box | ||
|
||
[-> Mod: add(deliverable) | ||
activate Mod | ||
Mod -> Total : add(1) | ||
activate Total | ||
Total -> OCP : update() | ||
activate OCP | ||
OCP --> Total | ||
deactivate OCP | ||
Total --> Mod | ||
deactivate Total | ||
[<-- Mod | ||
deactivate Mod | ||
|
||
[-> Mod: done(deliverable) | ||
activate Mod | ||
Mod -> Com : add(1) | ||
activate Com | ||
Com -> ":OCP" as OCP: update() | ||
activate OCP | ||
OCP --> Com | ||
deactivate OCP | ||
Com --> Mod | ||
deactivate Com | ||
[<-- Mod | ||
deactivate Mod | ||
|
||
[-> Mod: delete(deliverable) | ||
activate Mod | ||
|
||
opt isCompleted(deliverable) | ||
|
||
Mod -> Com : sub(1) | ||
activate Com | ||
Com -> ":OCP" as OCP: update() | ||
activate OCP | ||
OCP --> Com | ||
deactivate OCP | ||
Com --> Mod | ||
deactivate Com | ||
|
||
end | ||
|
||
Mod -> Total : sub(1) | ||
activate Total | ||
Total -> ":OCP" as OCP: update() | ||
activate OCP | ||
OCP --> Total | ||
deactivate OCP | ||
Total --> Mod | ||
deactivate Total | ||
|
||
[<-- Mod | ||
deactivate Mod | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.