statistics monitor of spmsii -high level and detailed design warrior team pu su heng tan kening...

11
Statistics Monitor of SPMSII Statistics Monitor of SPMSII -High level and detailed design -High level and detailed design Warrior Warrior Team Team Pu Su Pu Su Heng Tan Heng Tan Kening Zhang Kening Zhang

Upload: harold-allison

Post on 19-Jan-2018

212 views

Category:

Documents


0 download

DESCRIPTION

High Level Design –Reuse current components efficiently as much as possible (Including the web pages and database operations ), since our system is developed under an existing one. –Keep the same coding style to the current system, with code comment and description in more detail to get the better maintainability –Verify the evaluation algorithm by prototype, since in previous phase it is very ambiguous –Web browser/ Web Server/ DB Server

TRANSCRIPT

Page 1: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

Statistics Monitor of SPMSIIStatistics Monitor of SPMSII-High level and detailed design-High level and detailed design

WarriorWarrior TeamTeamPu SuPu Su

Heng TanHeng TanKening ZhangKening Zhang

Page 2: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

OverviewOverview• High level design

– High level architecture– Design issues

• Detailed design– Design issues– Detailed design description

Page 3: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

High Level DesignHigh Level Design– Reuse current components efficiently as much as

possible (Including the web pages and database operations ), since our system is developed under an existing one.

– Keep the same coding style to the current system, with code comment and description in more detail to get the better maintainability

– Verify the evaluation algorithm by prototype, since in previous phase it is very ambiguous

– Web browser/ Web Server/ DB Server

Page 4: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

Three-tier Client-server ArchitectureThree-tier Client-server Architecture

First TierClient(browser, part ofapplication logic layers)

Second TierApplication server(application logic,connection layers)

Third TierDatabase server(DBMS layer)

Tasks:• User interface

Tasks:• Application logic• Data processing logic• connection

Tasks: • DBMS functions

Page 5: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

High level ArchitectureHigh level Architecture

Page 6: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

Detailed Design IssuesDetailed Design Issues• Store every project as an object and construct extra two

counters for it. One counter is to tag the total number of the same activities, the other counter is just to sum up all the previous counters and get the total number of its all different activities for this project.

• To use SQL query to compare and select all the data.• To pass the statistical data to the target web page.

Page 7: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

Detailed Design DiagramsDetailed Design Diagrams

Page 8: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

Details DescriptionsDetails Descriptions• Update the proper counter for every project’s activities

– If onsite Hits == some activity of a certain project, use SQL query to query the project.

• Set the $counter (single for every activity) increasing by 1 for this project.• Set the $total_counter (overall activities for this project ) increasing by 1 for this

• Analyze data from databaseAnalyze data from database– If onsite Hits ==overall statisticsIf onsite Hits ==overall statistics

• Use SQL query to get the all the projects’ Use SQL query to get the all the projects’ $total_counter$total_counter, then by comparing these , then by comparing these counters sort all the projects.counters sort all the projects.

• Create percentage data for every project according to all the projects’ overall Create percentage data for every project according to all the projects’ overall statisticsstatistics

• Add the percentage data as an attribute to the corresponding projectAdd the percentage data as an attribute to the corresponding project– If onsite Hits ==separate statistics for certain projectIf onsite Hits ==separate statistics for certain project

• Use SQL query to get this projects’ Use SQL query to get this projects’ $counter$counter for every activity for every activity

Page 9: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

Details Descriptions (contd)Details Descriptions (contd)

• Display the data– If onsite Hits ==overall statistics

• Pass the every project’s percentage data and the project name to the target web page.

• Display the project by rank according to their percentage data.– If onsite Hits ==separate statistics for certain project

• Pass this project’s every activity name and its corresponding counter to the target web page.

• Display the project’s all activities statistics

Page 10: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

Details Descriptions (contd)Details Descriptions (contd)

Overall statistics Separate statistics

Page 11: Statistics Monitor of SPMSII -High level and detailed design Warrior Team Pu Su Heng Tan Kening Zhang

Questions ?Questions ?