yi-kiat / ICT2106_P3-5

MIT License
0 stars 0 forks source link

[D2] 5.1 Design Pattern 1 #94

Closed gohguanlin closed 1 year ago

gohguanlin commented 1 year ago

To be completed on:

gohguanlin commented 1 year ago

Strategy Pattern identified for QuarterlyReport.

Extract iAnalysisMethod interface from DataAnalysis Have separate classes that inherits iAnalysisMethod and override the method with their own algorithm for data analysis.

Extract iReportFormat interface from ReportGenerator Have separate classes that inherits iReportFormat and override the method individually with their own implementation of how the report should be exported.

The additional classes and interface is highlighted in green.

Amended class diagram:

Image

gohguanlin commented 1 year ago

Reviewed and acknowledged by team members:

jiaxinlarhh commented 1 year ago

Completed and closed on 16/3