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 pull request #161 from mingyuanc/152-update-DG-mingyuan
152 update dg mingyuan
- Loading branch information
Showing
45 changed files
with
738 additions
and
571 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,46 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Command LOGIC_COLOR_T1 | ||
participant ":CreateTodoCommand" as CreateTodoCommand LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":ModelManager" as ModelManagerStatic MODEL_COLOR | ||
participant "opr:TaskOperation" as TaskOperation MODEL_COLOR | ||
participant "g:Group" as Group MODEL_COLOR | ||
end box | ||
|
||
[-> CreateTodoCommand : execute() | ||
activate CreateTodoCommand | ||
|
||
CreateTodoCommand -> ModelManagerStatic : taskOperation(new Path("~/grp-001")) | ||
activate ModelManagerStatic | ||
|
||
create TaskOperation | ||
ModelManagerStatic -> TaskOperation | ||
activate TaskOperation | ||
|
||
TaskOperation --> ModelManagerStatic : opr | ||
deactivate TaskOperation | ||
|
||
ModelManagerStatic --> CreateTodoCommand :opr | ||
deactivate ModelManagerStatic | ||
|
||
CreateTodoCommand -> TaskOperation : addTask(task) | ||
activate TaskOperation | ||
|
||
TaskOperation -> Group : addTask(task) | ||
activate Group | ||
|
||
Group --> TaskOperation | ||
deactivate Group | ||
|
||
TaskOperation --> CreateTodoCommand | ||
|
||
destroy TaskOperation | ||
|
||
[<--CreateTodoCommand | ||
destroy CreateTodoCommand | ||
@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,51 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam arrowThickness 1.1 | ||
skinparam arrowColor MODEL_COLOR | ||
skinparam classBackgroundColor MODEL_COLOR | ||
|
||
Package ProfBook as ProfBookPackage <<Rectangle>>{ | ||
Class "ChildrenManager" as ChildrenManager | ||
Class "TaskListManager" as TaskListManager | ||
Class "<<interface>>\nIChildElement" as IChildElement | ||
Class "{abstract}\nChildrenAndTaskListManager" as ChildrenAndTaskListManager | ||
Class Root | ||
Class Group | ||
Class Student | ||
Class Id | ||
Class Name | ||
Class Address | ||
Class Email | ||
Class Phone | ||
|
||
Class I #FFFFFF | ||
} | ||
|
||
Class HiddenOutside #FFFFFF | ||
|
||
HiddenOutside .down.> ChildrenManager | ||
|
||
ChildrenAndTaskListManager .up.|> IChildElement | ||
Student -up-|> TaskListManager | ||
Student .up.|> IChildElement | ||
|
||
Group *--> Id | ||
Student *--> Id | ||
|
||
Group *--> Name | ||
Student *--> Name | ||
|
||
Student *--> Email | ||
Student *--> Address | ||
Student *--> Phone | ||
|
||
ChildrenAndTaskListManager -left-> TaskListManager | ||
ChildrenAndTaskListManager -right-> ChildrenManager | ||
|
||
TaskListManager -up-> TaskList | ||
|
||
Root -up-|> ChildrenManager | ||
Group -up-|> ChildrenAndTaskListManager | ||
Root -left-> "*" Group : Parent of > | ||
Group -left-> "*" Student : Parent of > | ||
@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
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
Oops, something went wrong.