forked from AY2324S1-CS2103T-T13-0/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.
- Loading branch information
Showing
4 changed files
with
155 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":ModulePlanParser" as ModulePlanParser LOGIC_COLOR | ||
participant "c:CalculateCapCommand" as CalculateCapCommand LOGIC_COLOR | ||
participant "result:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "model:Model" as Model MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute(calculateCAP) | ||
activate LogicManager | ||
|
||
LogicManager -> ModulePlanParser : parseCommand(calculateCAP) | ||
activate ModulePlanParser | ||
|
||
create CalculateCapCommand | ||
ModulePlanParser -> CalculateCapCommand | ||
activate CalculateCapCommand | ||
|
||
CalculateCapCommand --> ModulePlanParser | ||
deactivate CalculateCapCommand | ||
|
||
ModulePlanParser --> LogicManager : c | ||
deactivate ModulePlanParser | ||
|
||
LogicManager -> CalculateCapCommand : execute(model) | ||
activate CalculateCapCommand | ||
|
||
CalculateCapCommand -> Model : getCap() | ||
activate Model | ||
|
||
Model --> CalculateCapCommand : calculatedCapValue | ||
deactivate Model | ||
|
||
create CommandResult | ||
CalculateCapCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> CalculateCapCommand | ||
deactivate CommandResult | ||
|
||
CalculateCapCommand --> LogicManager : result | ||
deactivate CalculateCapCommand | ||
CalculateCapCommand -[hidden]-> LogicManager : result | ||
destroy CalculateCapCommand | ||
|
||
[<--LogicManager : result | ||
deactivate LogicManager | ||
@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,54 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":ModulePlanParser" as ModulePlanParser LOGIC_COLOR | ||
participant "c:CalculateMcCommand" as CalculateMcCommand LOGIC_COLOR | ||
participant "result:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "model:Model" as Model MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute(calculateMC) | ||
activate LogicManager | ||
|
||
LogicManager -> ModulePlanParser : parseCommand(calculateMC) | ||
activate ModulePlanParser | ||
|
||
create CalculateMcCommand | ||
ModulePlanParser -> CalculateMcCommand | ||
activate CalculateMcCommand | ||
|
||
CalculateMcCommand --> ModulePlanParser | ||
deactivate CalculateMcCommand | ||
|
||
ModulePlanParser --> LogicManager : c | ||
deactivate ModulePlanParser | ||
|
||
LogicManager -> CalculateMcCommand : execute(model) | ||
activate CalculateMcCommand | ||
|
||
CalculateMcCommand -> Model : totalModularCredits() | ||
activate Model | ||
|
||
Model --> CalculateMcCommand : modularCredits | ||
deactivate Model | ||
|
||
create CommandResult | ||
CalculateMcCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> CalculateMcCommand | ||
deactivate CommandResult | ||
|
||
CalculateMcCommand --> LogicManager : result | ||
deactivate CalculateMcCommand | ||
CalculateMcCommand -[hidden]-> LogicManager : result | ||
destroy CalculateMcCommand | ||
|
||
[<--LogicManager : result | ||
deactivate LogicManager | ||
@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