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 #190 from siqirua/branch-WrapUp
Add implementation of stats to DG
- Loading branch information
Showing
9 changed files
with
206 additions
and
41 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@startuml | ||
'https://plantuml.com/activity-diagram-beta | ||
|
||
start | ||
:User executes compStats command; | ||
if () then ([given graded component exists\nand there is at least a valid score]) | ||
:all relevant statistics calculated; | ||
:a summary of all statistics displayed; | ||
else ([else]) | ||
:a error message shows up; | ||
endif | ||
|
||
:Execution completed; | ||
|
||
stop | ||
|
||
@enduml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":ModuLightParser" as ModuLightParser LOGIC_COLOR | ||
participant ":CompStatsCommandParser" as CompStatsCommandParser LOGIC_COLOR | ||
participant "a:CompStatsCommand" as CompStatsCommand LOGIC_COLOR | ||
participant ":StatsCalculator" as StatsCalculator LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute(compStats c/Midterm) | ||
activate LogicManager | ||
|
||
LogicManager -> ModuLightParser : parseCommand(compStats c/Midterm) | ||
activate ModuLightParser | ||
|
||
create CompStatsCommandParser | ||
ModuLightParser -> CompStatsCommandParser :CompStatsCommandParser() | ||
activate CompStatsCommandParser | ||
|
||
CompStatsCommandParser --> ModuLightParser | ||
deactivate CompStatsCommandParser | ||
|
||
ModuLightParser -> CompStatsCommandParser : parse(" c/Midterm") | ||
activate CompStatsCommandParser | ||
|
||
create CompStatsCommand | ||
CompStatsCommandParser -> CompStatsCommand | ||
activate CompStatsCommand | ||
|
||
CompStatsCommand --> CompStatsCommandParser : c | ||
deactivate CompStatsCommand | ||
|
||
CompStatsCommandParser --> ModuLightParser : c | ||
deactivate CompStatsCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
CompStatsCommandParser -[hidden]-> ModuLightParser | ||
destroy CompStatsCommandParser | ||
|
||
ModuLightParser --> LogicManager : c | ||
deactivate ModuLightParser | ||
|
||
LogicManager -> CompStatsCommand : execute() | ||
activate CompStatsCommand | ||
|
||
CompStatsCommand -> Model : getStudentList() | ||
activate Model | ||
|
||
Model --> CompStatsCommand | ||
deactivate Model | ||
|
||
create StatsCalculator | ||
CompStatsCommand ->StatsCalculator : generateOverallStatsSummary(List<Student> students) | ||
activate StatsCalculator | ||
|
||
|
||
StatsCalculator --> CompStatsCommand | ||
deactivate StatsCalculator | ||
StatsCalculator -[hidden]-> CompStatsCommand | ||
destroy StatsCalculator | ||
|
||
CompStatsCommand --> LogicManager : result | ||
deactivate CompStatsCommand | ||
CompStatsCommand -[hidden]-> LogicManager : result | ||
destroy CompStatsCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
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
Oops, something went wrong.